Send Dev-flock mailing list submissions to dev-flock@mit.edu To subscribe or unsubscribe via the World Wide Web, visit http://mailman.mit.edu/mailman/listinfo/dev-flock or, via email, send a message with subject or body 'help' to dev-flock-requ...@mit.edu
You can reach the person managing the list at dev-flock-ow...@mit.edu When replying, please edit your Subject line so it is more specific than "Re: Contents of Dev-flock digest..." Today's Topics: 1. r1034 - in huginmunin/trunk/web/hm: app/media/css app/media/js app/templates/admin app/templates/forms app/templates/graph app/templates/models app/templates/node app/views db (s...@thoughtandmemory.org) 2. r1035 - in huginmunin/trunk/web/hm: app/templates/node app/views db (s...@thoughtandmemory.org) 3. r1036 - in huginmunin/trunk/web/hm: app/media/css app/media/js app/templates/admin app/templates/browse app/templates/forms app/templates/graph app/templates/node app/views db (s...@thoughtandmemory.org) 4. r1037 - in huginmunin/trunk/web/hm: app/media/js app/views db (s...@thoughtandmemory.org) 5. sources and citations added to staging (Lucy Mendel) ---------------------------------------------------------------------- Message: 1 Date: Fri, 19 Dec 2008 18:21:26 -0500 (EST) From: s...@thoughtandmemory.org Subject: [Dev-flock] r1034 - in huginmunin/trunk/web/hm: app/media/css app/media/js app/templates/admin app/templates/forms app/templates/graph app/templates/models app/templates/node app/views db To: dev-flock@mit.edu Message-ID: <20081219232126.f336775...@thoughtandmemory.org> Content-Type: text/plain; charset=UTF-8 Author: lucy Date: 2008-12-19 18:21:26 -0500 (Fri, 19 Dec 2008) New Revision: 1034 Commit message: * ADDED MANYTOMANY FIELD TO BEHAVIORS citations link from behaviors to articles * cleaned up citation, author, source, article stuff a bunch. citations show up on node view in each behavior * Added Article model, which are entries in sources (which are just Nodes, so need to make a NodeType for them) * fixed UserInterestPercent delete bug, but don't think that was responsible for server portfolio problems. * publish() now returns self so can chain it with add(). add should probably default to publishing... didn't want to make all those changes everywhere now. * added API for registering and logging in a user. logging in requires a request object, so external scrips still have to use REST api for logging in. did not add REST api for registration. refactored registration and login code for code re-use. * refactored forms to make use of exec. now we have NewXForm, EditXForm and AdminXForm, where X is any model in ALL_MODELS. * added nodetype and tag additions to node creation on browse page. woot. fit into edit/js/py framework seamlessly. did try to create new form that simply subclassed all the other relevant forms, but the tag addition is pretty specific (and also reusable elsewhere), and the nodetype wil likely be formset or ajaxy eventually. overwrote forms/node_type.html as part of this. yeah...we still have files hanging around we don't use anymore... * disabled sorting from last commit because hangs on large datasets (duh - need to compute and store calculations separately) * we don't need hidden node.id on node_info.html anymore, right? it's not hidden anymore, either. Added: huginmunin/trunk/web/hm/app/templates/admin/manual_import.html huginmunin/trunk/web/hm/app/templates/forms/add_tag.html huginmunin/trunk/web/hm/app/templates/forms/node_extra.html huginmunin/trunk/web/hm/app/templates/models/article.html Removed: huginmunin/trunk/web/hm/db/citation.py Modified: huginmunin/trunk/web/hm/app/media/css/general.css huginmunin/trunk/web/hm/app/media/js/main.js huginmunin/trunk/web/hm/app/templates/admin/admin.html huginmunin/trunk/web/hm/app/templates/forms/node_type.html huginmunin/trunk/web/hm/app/templates/forms/object_form.html huginmunin/trunk/web/hm/app/templates/graph/list.html huginmunin/trunk/web/hm/app/templates/node/behavior_info.html huginmunin/trunk/web/hm/app/templates/node/citation.html huginmunin/trunk/web/hm/app/templates/node/node_info.html huginmunin/trunk/web/hm/app/views/account.py huginmunin/trunk/web/hm/app/views/forms.py huginmunin/trunk/web/hm/app/views/main.py huginmunin/trunk/web/hm/app/views/main_urls.py huginmunin/trunk/web/hm/db/graph.py huginmunin/trunk/web/hm/db/log.py huginmunin/trunk/web/hm/db/models.py huginmunin/trunk/web/hm/db/rating.py huginmunin/trunk/web/hm/db/search.py huginmunin/trunk/web/hm/db/state.py huginmunin/trunk/web/hm/db/tag.py huginmunin/trunk/web/hm/db/user.py huginmunin/trunk/web/hm/db/utils.py ------------------------------ Message: 2 Date: Fri, 19 Dec 2008 20:02:39 -0500 (EST) From: s...@thoughtandmemory.org Subject: [Dev-flock] r1035 - in huginmunin/trunk/web/hm: app/templates/node app/views db To: dev-flock@mit.edu Message-ID: <20081220010239.d70e475...@thoughtandmemory.org> Content-Type: text/plain; charset=UTF-8 Author: lucy Date: 2008-12-19 20:02:39 -0500 (Fri, 19 Dec 2008) New Revision: 1035 Commit message: added Citation model instead of adding ManyToMany field to Behaviors. eit. Modified: huginmunin/trunk/web/hm/app/templates/node/behavior_info.html huginmunin/trunk/web/hm/app/views/main.py huginmunin/trunk/web/hm/db/graph.py huginmunin/trunk/web/hm/db/log.py huginmunin/trunk/web/hm/db/models.py huginmunin/trunk/web/hm/db/state.py ------------------------------ Message: 3 Date: Sat, 20 Dec 2008 10:39:49 -0500 (EST) From: s...@thoughtandmemory.org Subject: [Dev-flock] r1036 - in huginmunin/trunk/web/hm: app/media/css app/media/js app/templates/admin app/templates/browse app/templates/forms app/templates/graph app/templates/node app/views db To: dev-flock@mit.edu Message-ID: <20081220153949.593f675...@thoughtandmemory.org> Content-Type: text/plain; charset=UTF-8 Author: lucy Date: 2008-12-20 10:39:49 -0500 (Sat, 20 Dec 2008) New Revision: 1036 Commit message: * refactored source/article html so used in three places: * manual import, add citation to existing review, new revew * python needs to be refactored. right now, three python handlers. handlers just need to return locals() and add that to locals * if node is source, display articles after reviews * "Write first review" only if no reviews have been written yet * added extra to replace_form js * prettified node scores Added: huginmunin/trunk/web/hm/app/templates/forms/add_article_and_source.html huginmunin/trunk/web/hm/app/templates/forms/add_article_and_source_wrapper.html huginmunin/trunk/web/hm/app/templates/node/article.html huginmunin/trunk/web/hm/app/templates/node/article_add.html huginmunin/trunk/web/hm/app/templates/node/articles.html huginmunin/trunk/web/hm/app/templates/node/citation_add.html Removed: huginmunin/trunk/web/hm/app/templates/browse/wooo.html huginmunin/trunk/web/hm/app/templates/forms/node_extra.html huginmunin/trunk/web/hm/app/templates/node/page.html Modified: huginmunin/trunk/web/hm/app/media/css/general.css huginmunin/trunk/web/hm/app/media/js/main.js huginmunin/trunk/web/hm/app/templates/admin/manual_import.html huginmunin/trunk/web/hm/app/templates/browse/node_listing_expanded.html huginmunin/trunk/web/hm/app/templates/graph/list.html huginmunin/trunk/web/hm/app/templates/node/behavior_add.html huginmunin/trunk/web/hm/app/templates/node/behavior_info.html huginmunin/trunk/web/hm/app/templates/node/node_info.html huginmunin/trunk/web/hm/app/views/main.py huginmunin/trunk/web/hm/app/views/main_urls.py huginmunin/trunk/web/hm/db/graph.py ------------------------------ Message: 4 Date: Sat, 20 Dec 2008 10:49:46 -0500 (EST) From: s...@thoughtandmemory.org Subject: [Dev-flock] r1037 - in huginmunin/trunk/web/hm: app/media/js app/views db To: dev-flock@mit.edu Message-ID: <20081220154946.61d8a75...@thoughtandmemory.org> Content-Type: text/plain; charset=UTF-8 Author: lucy Date: 2008-12-20 10:49:46 -0500 (Sat, 20 Dec 2008) New Revision: 1037 Commit message: removed airline bug. still having rte issues, so trying to fail gracefully by checking for function presence Modified: huginmunin/trunk/web/hm/app/media/js/main.js huginmunin/trunk/web/hm/app/views/main.py huginmunin/trunk/web/hm/db/graph.py ------------------------------ Message: 5 Date: Sat, 20 Dec 2008 11:20:10 -0500 From: "Lucy Mendel" <l...@bilumi.org> Subject: [Dev-flock] sources and citations added to staging To: Dev-Flock <dev-flock@mit.edu> Message-ID: <c570b9dc0812200820l616a54b2o36ead4f9a29ea...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 yo, Just a heads up: I added sources, citations and articles to staging (http://staging.thoughtandmemory.org/Main) Source = A Node with NodeType "Source". Any organization or person that "publishes" "articles" (terms used loosely :-) Article = new model. These reference articles and media published by the source Citation = many-to-many link between Behaviors (aka reviews) and Articles. For an example check out http://staging.thoughtandmemory.org/Main/node/390/ See how there is a citation on the first review? Try adding citations for the other reviews-- you can select the Ethiscore source since it already exists. you can also select the Mars report article published in Ethiscore, if that applies to multiple reviews. Try creating a review--now you can give the citation then and there. Right now it is not optional. Should be? Try clicking on the Ethiscore source. See how it is just a node like any other? Except the template checks for if the node has the "Source" NodeType, and if so, it shows the Articles associated with that node. Whoa, the UI needs help. Anyone interested in doing some html/css/js? For instance, clicking on an existing source should use ajax to populate the existing articles for that source. Let me know if you have an problems or feedback. I'm going to add this to the API. Pepe-- this should help you. I also added login and registration internal APIs, but I think now that we have sources we don't need users-as-sources so I'm not going to externalize that. Yeah? cheers, Lucy. ------------------------------ _______________________________________________ Dev-flock mailing list Dev-flock@mit.edu http://mailman.mit.edu/mailman/listinfo/dev-flock End of Dev-flock Digest, Vol 16, Issue 5 ****************************************