Ankita Kalra 7f0e35f130 Final iteration making the layout compatible,tags showing the functionality of redirection 6 vuotta sitten
..
migrations 958dc856bf runserver warned me null has no effect on m2m - removed null=True from project.users and project.admins 6 vuotta sitten
static d9f61044b9 Final iteration making the layout compatible,tags showing the functionality of redirection 6 vuotta sitten
templates 7f0e35f130 Final iteration making the layout compatible,tags showing the functionality of redirection 6 vuotta sitten
tests 5237139b23 Added M2M relation between tags and ideas. Altered view functions to make use of these. remove_tag now removes the current idea from the current tag's idea_set. Delete still removes the tag in its entirety. Add still checks for a tag's existence before creating one. Add and remove tag functions return every tag, every tag's canvas_set and every tag's idea_set to make the updating of these sets on the front-end relatively straightforward. Delete only returns the tag so that the callback can just find its location in its array and remove it. 6 vuotta sitten
__init__.py 10bda0b652 Added canvas models (merge --squash) 6 vuotta sitten
admin.py dd85c2f8a2 Added (very untested) project functionality. Users, admins, owner are all moved from Canvas to Project. All canvasses in a project are visible to every user in the project. The same user / admin permissions required as before, but check user in project.users instead of canvas.users. Went ahead with tags existing for all canvasses in a given project (also quite untested). When a tag is created it (should) add itself to any other canvas in the project containing the label as a substring of an idea. Deletion deletes the tag object outright, it doesn't check occurrences in other canvasses. 6 vuotta sitten
apps.py 10bda0b652 Added canvas models (merge --squash) 6 vuotta sitten
changes.txt 10bda0b652 Added canvas models (merge --squash) 6 vuotta sitten
consumers.py c79440e2ed No longer require AJAX request results to be propagated by front-end code. Now the views receive AJAX POST, do modification, and send to the sockets. 6 vuotta sitten
forms.py 350743df15 Added idea add/remove/edit operations, comment add/remove/resolve operations, and add user to canvas. Permissions have not been created yet, nor has removal of users or canvasses, promotion / demotion of users to / from admin status. 6 vuotta sitten
models.py 8edc10289d Added 404 codes for the '<Object> does not exist' exceptions, added (UNTESTED) functionality to send errors only to the connection making the erroneous request instead of broadcasting it (worked for a tag that doesn't actually exist, testing for all models to follow). Updated API documentation to reflect this change, and added documentation for delete_canvas and delete_project views, which I forgot. Finally, modified delete_project to only allow the owner to delete the project - admins of a project may still delete individual canvases. 6 vuotta sitten
routing.py c79440e2ed No longer require AJAX request results to be propagated by front-end code. Now the views receive AJAX POST, do modification, and send to the sockets. 6 vuotta sitten
urls.py 54713faf90 Changed database-modifying requests to now use AJAX POST requests instead of using WebSockets. The results from these are then propagated by WebSockets. Not broadcasting error messages solved itself by returning error-coded HTTP responses to erronous AJAX requests. Tested only as far as seeing normal non-erronous requests being serviced, the results propagated, and remaining on refresh. Added new TODO for consumers.py as there now exist redundant consumers. Changed API documentation to reflect AJAX POST usage. 6 vuotta sitten
views.py 15da3810ff Final iteration making the layout compatible,tags showing the functionality of redirection 6 vuotta sitten