Skip to content

Commit 17707ae

Browse files
author
Eugene Baumstein
committed
Merge branch 'master' of git://github.com/flinkIBE/flink into ui
2 parents dc68931 + 8ef495e commit 17707ae

File tree

5 files changed

+70
-28
lines changed

5 files changed

+70
-28
lines changed

README.md

+46-13
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,69 @@
1-
To install:
1+
# Flink
22

3-
# On some systems, easy_install might be easy_install.py
4-
$ sudo easy_install fabric
5-
# If asked about facebook-sdk, say wipe(w) to proceed
6-
$ fab setup
3+
This is intended to be deployed on a *nix system.
4+
5+
All commands starting with 'fab' use python fabric and run the method
6+
('setup', 'deploy', etc.) that is in fabfile.py. You will need an internet
7+
connection to install the app's dependencies.
8+
9+
## Dependencies
10+
Installing dependencies for your system varies by package manager. Yum, Apt,
11+
Pacman, etc. are a few you can use. Some of the more important dependencies that
12+
need to be installed on your *nix system:
713

8-
Dependencies that need to be installed:
14+
* python 2.7+
15+
* not django (the app will take care of installing a specific version of
16+
django on your system: 1.3rc1)
17+
* Firefox 3.6+.
18+
* python-dev (aka python-devel in some repos)
919
* ffmpeg
1020
This might require the use of 3rd party repos. Fedora, for example, will
1121
only have packages in the official repo that are completely open source.
1222
The RPM Fusion repository comes in useful here. Ubuntu makes this easier.
1323
* libvorbis
1424
* libtheora
25+
26+
Video conversion will not be handled correctly if ffmpeg, libvorbis and
27+
libtheora aren't installed.
28+
29+
## Install
30+
31+
# On some systems, easy_install might be easy_install.py
32+
$ sudo easy_install fabric
33+
34+
# If asked about facebook-sdk, say wipe(w) to proceed
35+
# If prompted to create a superuser, it is not necessary.
36+
$ fab setup
37+
38+
## Deploy
1539

16-
To deploy:
1740
$ fab deploy
1841

19-
Then go to http://localhost:8000, or whatever server it started, in your
20-
browser.
42+
Then go to http://localhost:8000, or whatever server it started, in your browser.
2143
Not a bug: when you signup, the app tries to send a confirmation email.
22-
if your laptop isnt running a mailserver, it will fail, but just ignore it:
23-
Your account has been successfully created
44+
If your laptop isnt running a mailserver, it will fail, but just ignore it:
45+
Your account has been successfully created.
2446

25-
Testing:
47+
There is test media (such as pictures, audio and video) in the test-media directory
48+
that you can use to upload to the app.
49+
50+
## Testing
2651

2752
To load the test data:
53+
2854
$ python manage.py loaddata app/fixtures/test_fixture.json
55+
2956
Unit tests will load the test data on its own, but you can load the test data to probe the database.
3057

3158
To just run the unit tests + selenium test:
59+
3260
$ fab test
3361

3462
To get the coverage report for the unit test only:
63+
3564
$ coverage run --source=app/lib.py,app/views.py,app/decorators.py,urls.py ./manage.py test app.PeopleHandlerTest app.ProfileHandlerTest app.PosterboardHandlerTest app.ElementHandlerTest
36-
$ coverage report
65+
$ coverage report
66+
67+
## TODO
68+
69+
See TODO.txt. There are a bunch of features needed to be implemented in there.

TODO.txt

+6-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,14 @@
11
Modify this list with updated information.
22

3-
* Make rest of the models and forms.
4-
* Add in functionality for orientation of images.
3+
* Timeline functionality.
4+
* Add in functionality for orientation of images and opacity possibly?
55
* Defaults! And adjusting defaults and settings.
66
* Grid size (gridArray variable in posterboards/show should not be hardcoded
77
but should comprise template variables that are pulled from the DB).
88
* Default layout
9-
* User Home Page
10-
* On PB Creation, user adds it to a location on the home page.
119
* Comments
1210
* Details
1311
* Timestamps for posterboards
14-
* LOTS of validation... what if a user tries adding 50 objects to a
15-
posterboard? We should limit that right? Refer to the design doc and spec.
16-
What if the user tries making the grid size 1x1 pixels... that's not good,
17-
neither is 500x500 pixels.
1812
* Use Amazon S3 to store content such as images, audio, video and retrieve
1913
the content properly.
2014
* Use django plugins to help with this, or their native implementation
@@ -24,10 +18,11 @@ Modify this list with updated information.
2418
with a second level of hashes for the actual posterboard, so as to
2519
preserve privacy of private posterboards. Use a secret key hashed with
2620
user id and posterboard id.
21+
* More client-side and server-side validation.
2722
* Web page styling
2823
* Right now, the website looks pretty ugly. It needs to look much better.
2924
* Make posterboard page shinier. Editing toolbar needs to look better.
3025
* Header and footer especially.
31-
* Patch vlprocess for pad options.
32-
* Patch django_cron for syncdb errors.
33-
* ***********TESTS!!!!!****************
26+
* Patch vlprocess for pad options (done in our app, pull request?).
27+
* Patch django_cron for syncdb errors (done in our app, pull request?).
28+
* ***********MORE TESTS!!!!!****************

fabfile.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ def saml():
2121
# setup
2222
def setup():
2323
local('sudo easy_install pip')
24-
local('sudo apt-get install python-dev')
2524
local('sudo pip install -r requirements.txt')
2625
local('mkdir -p logs')
2726
local('python manage.py syncdb')

static/css/editbar.css

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
color:#FFFFFF;
33
font-family:arial;
44
font-size:12px;
5-
text-align:left;
5+
text-align:center;
66
}
77

88
#editbar h2{
@@ -15,6 +15,7 @@
1515
#editbar a{
1616
color:#FFFFFF;
1717
text-decoration:none;
18+
outline: none;
1819
}
1920

2021
#editbar h2 span{
@@ -34,9 +35,11 @@
3435

3536
#edit_toggle{
3637
float:right;
37-
height:350px;
38+
height:342px;
3839
width:25px;
39-
border:0;
40+
background-attachment: scroll;
41+
background-color: #330000;
42+
border: 4px outset #330000;
4043
}
4144

4245
#edit_toggle_img{

templates/posterboards/show.html

+12
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,18 @@
8282
$(document).ready(function(){
8383

8484
{% if blog_owner %}
85+
86+
/*
87+
* Editbar
88+
*/
89+
90+
$(sidebartab_id).mousedown(function(){
91+
$(sidebartab_id).css('border-style','inset');
92+
});
93+
$(sidebartab_id).mouseup(function(){
94+
$(sidebartab_id).css('border-style','outset');
95+
});
96+
8597
$(sidebartab_id).click(function(){
8698
$(sidebarcontent_id).animate({ "width":"toggle"},{duration:400,queue:false});
8799

0 commit comments

Comments
 (0)