Activity Stream pack!

README.md -> All the dependencies that we need.
settings.py -> 'actstream' app included and ACTSTREAM_SETTINGS added
(NEW)
urls.py -> actstrems url statement included.
index.html -> notification included with bootstrap-notify.js script +
css
views.py -> User Actions catcher included + user DB updated with +2xp
notification files css + js uploaded:
alert-notification-animations.css
bootstrap-notify.js
(Model change - rebuild DB) New recompile_db + new Dump SQL script

recompile_db.py -> new name file included (hardcoded :_ )
Dump20130802.sql -> New script to populate the db with the old data
We show the totalXP on the teacher index
Login rule created

The Login rule has been refactored
views.py -> code refactored.
qubal_rules.py -> New file to declare the function rules.
index.html -> Notification text has been changed to fit the login rule.
Crash on course having no image on server, fixed

qubal_check_image library created, for checking if the file actually
exists on the server
New Qubal Use Cases
System - Notification - Updated patch

The notification system has been improved to show various notifications
at the same time in index.html
qubal_prerender.py -> now gets 1 parameter instead 2 (actions_list)
qubal_rules -> 'if' condition included to control that the user is loged
only once (if press f5/refresh doesn't work anymore as before)
index.html -> div class=notification - span5 included to avoid
truncation
notifications.inc -> for loop has been included to read more than one
notification.
views.py -> Now we get all the actor actions and save them in a var to
pass it to the function(prerender_notifications)
Notificatios filtered to show only the 2 last
Qubal rules upadated and qubal check images optimized

Qubal rules: - Rule for Xp login only triggered once per day

Qubal check image: - The function call it's been moved to only a place
when the login is done and the user is entering the system (Still very
wrong cause we call it too much. This should go to a kind of
Qubal_Init...)
New function in qubal_init.py (check_powers)

This function checks if the user has powers, if not it sets all the
powers to 1. (It should be to Zero but it's not working so far)
Notification System Pack

views.py -> The Login view checks the powers to init them if necessary.
settings.py -> The Action Stream models now has 2 models instead 4.
qubal_check_image.py -> code refactored, now the objects are extracted
using "for in"
qubal_prerender.py -> prerender_notifications now gets the user actions
list filtering if the notification has been shown or not, if not is
shown and then set to "shown"
qubal_rules.py -> User Actions filter improved thx to the data field
(mostrado = 'no')
index.html -> Code refactored.
Update for closing the no_image (default_image) crash bug on Courses, Teams and Achivements

Model has been updated with defaults for the images from Teams, Courses
and Achievements. Also the person image has been defaulted.

Templates has been updated accordingly as well as the images and views
Qubal_Check_Image library has been updated with the new checks done at
login
Data Dump 03-08-2013 (Safe till this change)

No data for tables not in qubalapp (except auth.users)
Debug menu - Integrated in the navbar

qubal_prerender.py -> New prerender_debug function to display the
server, users, students, teachers, teams, courses, quests, challenges,
tasks and achievements.
navbar.inc -> debug_placeholder (with "|safe" to be rendered properly
from python to html.
navbar.css -> New class for the debug menu text.
views.py -> "request" has been included.
debug menu bug fixed

navbar.inc -> logout icon included.
views.py -> request argument included in all prerender function calls to
avoid crash.
Fixed qubal_prerender code on Escriba local to be the same approach than sunrise

We cannot open without conscience files on the server so we treat the
files with care...
navbar.inc debug / qubal_images quality / navbar.css

qubal_images.py -> image quality increased from 70 to 100.
navbar.css -> New class for the debug to make it its position absolute.
navbar.inc -> the debug placeholder is out of the navbar to avoid
overlap bug.
Fixed a bug when the user is a teacher it used to crash cause power check was to Student

Now it checks if the person logging in is a teacher or a student and
acts accordingly
Merge pull request #25 from radicalgraphics/Activity-Stream

Activity stream