From lucy at thoughtandmemory.org Sat Dec 1 10:43:18 2007 From: lucy at thoughtandmemory.org (Lucy Mendel) Date: Sat, 1 Dec 2007 10:43:18 -0500 Subject: [Dev-flock] Fwd: dumb question In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Lucy Mendel Date: Dec 1, 2007 10:42 AM Subject: Re: [Dev-flock] dumb question To: Mike Eggar Mike, Does nothing happen or do you get an error? In the past I've editted santa2.json directly and then done ./manage.py loaddata db/fixtures/santa2.json output: Loading 'db/fixtures/santa2' fixtures... Installing json fixture 'db/fixtures/santa2' from absolute path. Installed 530 object(s) from 1 fixture(s) l. On 11/30/07, Mike Eggar wrote: > > how can I add some data to the database, tried editing santa2.json then > build_fixtures.rb and quickstart.py, no dice. probably a typo or am I > missing something? > > Mike > > ________________________________ > Share life as it happens with the new Windows Live. Share now! > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > > From eggar at hotmail.com Sat Dec 1 14:29:34 2007 From: eggar at hotmail.com (Mike Eggar) Date: Sat, 1 Dec 2007 19:29:34 +0000 Subject: [Dev-flock] Fwd: dumb question In-Reply-To: References: Message-ID: I get an error, "node does not exist", even after loaddata.py, but the user page works. I just need to add one behavior and one argument so I can test a node with more than one behavior. can you add data from the python command line? Mike > Date: Sat, 1 Dec 2007 10:43:18 -0500 > From: lucy at thoughtandmemory.org > To: dev-flock at mit.edu > Subject: [Dev-flock] Fwd: dumb question > > ---------- Forwarded message ---------- > From: Lucy Mendel > Date: Dec 1, 2007 10:42 AM > Subject: Re: [Dev-flock] dumb question > To: Mike Eggar > > > Mike, > > Does nothing happen or do you get an error? > > In the past I've editted santa2.json directly and then done > ./manage.py loaddata db/fixtures/santa2.json > > output: > Loading 'db/fixtures/santa2' fixtures... > Installing json fixture 'db/fixtures/santa2' from absolute path. > Installed 530 object(s) from 1 fixture(s) > > l. > > On 11/30/07, Mike Eggar wrote: > > > > how can I add some data to the database, tried editing santa2.json then > > build_fixtures.rb and quickstart.py, no dice. probably a typo or am I > > missing something? > > > > Mike > > > > ________________________________ > > Share life as it happens with the new Windows Live. Share now! > > _______________________________________________ > > Dev-flock mailing list > > Dev-flock at mit.edu > > http://mailman.mit.edu/mailman/listinfo/dev-flock > > > > > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock _________________________________________________________________ Your smile counts. The more smiles you share, the more we donate.? Join in. www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.mit.edu/pipermail/dev-flock/attachments/20071201/8c1d87d8/attachment.htm From lucy at thoughtandmemory.org Sat Dec 1 17:44:00 2007 From: lucy at thoughtandmemory.org (Lucy Mendel) Date: Sat, 1 Dec 2007 17:44:00 -0500 Subject: [Dev-flock] Fwd: dumb question In-Reply-To: References: Message-ID: Mike, I edited db/fixtures/santa2.json by adding a behavior to node 34: { "pk": 12, "model": "db.behavior", "fields": { "node": 34, "description": "", "url": "", "label": "Beeeeehavior", "state": 1, "dimension": 1 } }, then I did ./manage.py loaddata db/fixtures/santa2.json node 34 now has 4 behaviors: the original one, beeeeeehavior, and both of those again. when i loaddata again the node doesn't get 8 behaviors. so... maybe ... I reset the database and then did quickstart. sadly now I get an error: at Main/node/34 that list-index is out of range. doh. On Dec 1, 2007 2:29 PM, Mike Eggar wrote: > I get an error, "node does not exist", even after loaddata.py, but the > user page works. I just need to add one behavior and one argument so I can > test a node with more than one behavior. can you add data from the python > command line? > > Mike > > > Date: Sat, 1 Dec 2007 10:43:18 -0500 > > From: lucy at thoughtandmemory.org > > To: dev-flock at mit.edu > > Subject: [Dev-flock] Fwd: dumb question > > > > > ---------- Forwarded message ---------- > > From: Lucy Mendel < lucy at thoughtandmemory.org> > > Date: Dec 1, 2007 10:42 AM > > Subject: Re: [Dev-flock] dumb question > > To: Mike Eggar > > > > > > Mike, > > > > Does nothing happen or do you get an error? > > > > In the past I've editted santa2.json directly and then done > > ./manage.py loaddata db/fixtures/santa2.json > > > > output: > > Loading 'db/fixtures/santa2' fixtures... > > Installing json fixture 'db/fixtures/santa2' from absolute path. > > Installed 530 object(s) from 1 fixture(s) > > > > l. > > > > On 11/30/07, Mike Eggar wrote: > > > > > > how can I add some data to the database, tried editing santa2.jsonthen > > > build_fixtures.rb and quickstart.py, no dice. probably a typo or am I > > > missing something? > > > > > > Mike > > > > > > ________________________________ > > > Share life as it happens with the new Windows Live. Share now! > > > _______________________________________________ > > > Dev-flock mailing list > > > Dev-flock at mit.edu > > > http://mailman.mit.edu/mailman/listinfo/dev-flock > > > > > > > > _______________________________________________ > > Dev-flock mailing list > > Dev-flock at mit.edu > > http://mailman.mit.edu/mailman/listinfo/dev-flock > > ------------------------------ > Your smile counts. The more smiles you share, the more we donate. Join in! > > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.mit.edu/pipermail/dev-flock/attachments/20071201/474b00ec/attachment.htm From clay at thoughtandmemory.org Sun Dec 2 00:07:32 2007 From: clay at thoughtandmemory.org (Clay Ward) Date: Sun, 2 Dec 2007 00:07:32 -0500 Subject: [Dev-flock] Next weekend's retreat on the cape! Message-ID: Hey folks! Next weekend's retreat will begin at noon on Saturday at 728 Palmer Ave. in Falmouth, MA. I've attached a schedule. Please let me know if you have anything that you'd like to add or if you'd like to meet with me this week to plan and lead a section of the discussion. So far we are expecting Lucy, Clay, Dan, Becca, Wayne, Sean, and Payam. Our maybe category is Shaunalynn, Charlie, Alec, Fritz, Sherri, and Mike. Zan and Ben are going to briefly skype in for some moral support from California and Canada. Unfortunately Jamie and Chia will both be out of town. Let me know if you'd like to bring any food or make a meal for us (no pressure.) If you need a ride then we can fit you in the back of my vw bus. But the windows don't roll up so expect a VERY cold ride. I'm really looking forward to this. Thanks everyone for being such a great team! And thanks to Pete and his family for letting us use their lovely house. (did I mention the hot tub?) Please bring a sleeping bag and a matt unless you're currently expecting a baby! btw, the IRS came through with our tax exempt status! (big sigh of relief.) -clay --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google "Hugin and Munin" group. To post to this group, send email to TwoRavens at googlegroups.com To unsubscribe from this group, send email to TwoRavens-unsubscribe at googlegroups.com For more options, visit this group at http://groups.google.com/group/TwoRavens?hl=en -~----------~----~----~----~------~----~------~--~--- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.mit.edu/pipermail/dev-flock/attachments/20071202/81e25bf8/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: retreatschedule.rtf Type: application/rtf Size: 2747 bytes Desc: not available Url : http://mailman.mit.edu/pipermail/dev-flock/attachments/20071202/81e25bf8/attachment.rtf From lucy at thoughtandmemory.org Tue Dec 4 19:46:36 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Tue, 4 Dec 2007 19:46:36 -0500 (EST) Subject: [Dev-flock] r400 - in huginmunin/trunk/web/hm: . app/media/js app/templates/graph app/templates/intro app/views Message-ID: <20071205004636.4239F75A70@thoughtandmemory.org> graph mucking for filtering, but not much done. updated TODO Added: huginmunin/trunk/web/hm/app/templates/graph/tags.html Modified: huginmunin/trunk/web/hm/TODO huginmunin/trunk/web/hm/app/media/js/main.js huginmunin/trunk/web/hm/app/media/js/utils.js huginmunin/trunk/web/hm/app/templates/graph/info.html huginmunin/trunk/web/hm/app/templates/intro/page.html huginmunin/trunk/web/hm/app/views/main_urls.py From eggar at thoughtandmemory.org Tue Dec 4 23:34:21 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Tue, 4 Dec 2007 23:34:21 -0500 (EST) Subject: [Dev-flock] r401 - in huginmunin/trunk/web/hm/app: media/js templates templates/node views Message-ID: <20071205043421.CD61775A70@thoughtandmemory.org> add response to argument should be working. +/- for arguments is kind of working, '+' adds a new rating, not the user's score yet just '1', minus isnt working yet Added: huginmunin/trunk/web/hm/app/media/js/arguments.js Modified: huginmunin/trunk/web/hm/app/media/js/main.js huginmunin/trunk/web/hm/app/templates/base.html huginmunin/trunk/web/hm/app/templates/node/argument.html huginmunin/trunk/web/hm/app/templates/node/argument_response.html huginmunin/trunk/web/hm/app/views/main.py huginmunin/trunk/web/hm/app/views/main_urls.py From eggar at thoughtandmemory.org Tue Dec 4 23:44:54 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Tue, 4 Dec 2007 23:44:54 -0500 (EST) Subject: [Dev-flock] r402 - huginmunin/trunk/web/hm/app/media/js Message-ID: <20071205044454.6766F75A70@thoughtandmemory.org> not sure I merged this one right Modified: huginmunin/trunk/web/hm/app/media/js/main.js From lucy at thoughtandmemory.org Tue Dec 4 23:58:35 2007 From: lucy at thoughtandmemory.org (Lucy Mendel) Date: Tue, 4 Dec 2007 23:58:35 -0500 Subject: [Dev-flock] r401 - in huginmunin/trunk/web/hm/app: media/js templates templates/node views In-Reply-To: <20071205043421.CD61775A70@thoughtandmemory.org> References: <20071205043421.CD61775A70@thoughtandmemory.org> Message-ID: Word! THe merge (re: r402) is fine. I committed a half-baked function (doh!) l. On Dec 4, 2007 11:34 PM, wrote: > add response to argument should be working. +/- for arguments is kind > of working, '+' adds a new rating, not the user's score yet just '1', > minus isnt working yet > > > Added: > huginmunin/trunk/web/hm/app/media/js/arguments.js > Modified: > huginmunin/trunk/web/hm/app/media/js/main.js > huginmunin/trunk/web/hm/app/templates/base.html > huginmunin/trunk/web/hm/app/templates/node/argument.html > huginmunin/trunk/web/hm/app/templates/node/argument_response.html > huginmunin/trunk/web/hm/app/views/main.py > huginmunin/trunk/web/hm/app/views/main_urls.py > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From dan at thoughtandmemory.org Wed Dec 5 00:16:12 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:12 -0500 (EST) Subject: [Dev-flock] r404 - in huginmunin/trunk/web/hm: . app/media/js Message-ID: <20071205051612.09C8A75A71@thoughtandmemory.org> r411 at insignificant: dan | 2007-12-04 12:38:32 -0500 Changed utils.js to fix element_is_empty. Also changed LOG/DEBUG/ERROR to use console.log/debug/error/trace. These might be Firefox specific, but I think we're all developing on Firefox? Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/utils.js From dan at thoughtandmemory.org Wed Dec 5 00:16:20 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:20 -0500 (EST) Subject: [Dev-flock] r407 - in huginmunin/trunk/web/hm: . app/media/js/django Message-ID: <20071205051620.BB3D175A76@thoughtandmemory.org> r414 at insignificant: dan | 2007-12-04 12:40:32 -0500 Removed: huginmunin/trunk/web/hm/app/media/js/django/settings.js Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:16:08 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:08 -0500 (EST) Subject: [Dev-flock] r403 - in huginmunin/trunk/web/hm: . app/media/js app/media/js/django Message-ID: <20071205051609.299EA75A70@thoughtandmemory.org> r410 at insignificant: dan | 2007-12-04 10:40:03 -0500 Added date parsing and formatting functions similar to Django's own. Not all options are implemented, but most of the useful ones are. See app/media/js/django/dates.js for details. Added: huginmunin/trunk/web/hm/app/media/js/django/ huginmunin/trunk/web/hm/app/media/js/django/dates.js huginmunin/trunk/web/hm/app/media/js/django/settings.js Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:16:29 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:29 -0500 (EST) Subject: [Dev-flock] r410 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051629.DA65275A78@thoughtandmemory.org> r417 at insignificant: dan | 2007-12-04 13:05:53 -0500 Added structures.py. Right now it contains a few exceptions and the resolve_path method, but soon it will have the structure definition code that is used in view. Added: huginmunin/trunk/web/hm/app/lib/structures.py Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:16:14 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:14 -0500 (EST) Subject: [Dev-flock] r405 - in huginmunin/trunk/web/hm: . app/media/js Message-ID: <20071205051614.C6D1475A71@thoughtandmemory.org> r412 at insignificant: dan | 2007-12-04 12:39:52 -0500 Fixed several issues with JSON templates. Error-reporting in particular is better and respects the variable DEBUG_TEMPLATES (set in settings.js). Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/json_template.js From dan at thoughtandmemory.org Wed Dec 5 00:16:35 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:35 -0500 (EST) Subject: [Dev-flock] r412 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051635.A41E075A71@thoughtandmemory.org> r419 at insignificant: dan | 2007-12-04 13:11:58 -0500 Removed some old commented out code. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/patterns.py huginmunin/trunk/web/hm/app/lib/structures.py From dan at thoughtandmemory.org Wed Dec 5 00:16:17 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:17 -0500 (EST) Subject: [Dev-flock] r406 - in huginmunin/trunk/web/hm: . app/media/js Message-ID: <20071205051617.9C1CD75A75@thoughtandmemory.org> r413 at insignificant: dan | 2007-12-04 12:40:11 -0500 Moved settings.js...makes more sense here. Added: huginmunin/trunk/web/hm/app/media/js/settings.js Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:16:23 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:23 -0500 (EST) Subject: [Dev-flock] r408 - in huginmunin/trunk/web/hm: . app/media/js Message-ID: <20071205051623.4651375A76@thoughtandmemory.org> r415 at insignificant: dan | 2007-12-04 12:42:40 -0500 Moved show_argument_responses and handle_argument_responses to behavior.js. Also updated them slightly to use jQuery. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/behavior.js From dan at thoughtandmemory.org Wed Dec 5 00:16:26 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:26 -0500 (EST) Subject: [Dev-flock] r409 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051626.DA57F75A77@thoughtandmemory.org> r416 at insignificant: dan | 2007-12-04 12:54:32 -0500 Added patterns.py to build regular expressions for json_template.py and structures.py. Added: huginmunin/trunk/web/hm/app/lib/patterns.py Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:16:32 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:32 -0500 (EST) Subject: [Dev-flock] r411 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051632.AAE0675A70@thoughtandmemory.org> r418 at insignificant: dan | 2007-12-04 13:10:43 -0500 Moved structure definition code into structures.py. The structure definitions are used to extract a specified arbitrarily deep object structure from a given base object. It's somewhat improved from the first version. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/structures.py From dan at thoughtandmemory.org Wed Dec 5 00:16:41 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:41 -0500 (EST) Subject: [Dev-flock] r413 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051641.8FA6375A71@thoughtandmemory.org> r420 at insignificant: dan | 2007-12-04 13:13:33 -0500 Improved Django-to-JSON template conversion. Someday this will use the code from structures.py, but that day is not today. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/json_template.py From dan at thoughtandmemory.org Wed Dec 5 00:16:45 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:45 -0500 (EST) Subject: [Dev-flock] r414 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051645.3343875A75@thoughtandmemory.org> r421 at insignificant: dan | 2007-12-04 13:14:13 -0500 Removed commented out code. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/json_template.py From dan at thoughtandmemory.org Wed Dec 5 00:16:47 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:47 -0500 (EST) Subject: [Dev-flock] r415 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051647.DFE5075A76@thoughtandmemory.org> r422 at insignificant: dan | 2007-12-04 13:16:20 -0500 Moved utils.py to json_utils.py, since, well, that's what it is. Added: huginmunin/trunk/web/hm/app/lib/json_utils.py Removed: huginmunin/trunk/web/hm/app/lib/utils.py Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:16:50 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:50 -0500 (EST) Subject: [Dev-flock] r416 - in huginmunin/trunk/web/hm: . app/templates Message-ID: <20071205051650.59F0D75A77@thoughtandmemory.org> r423 at insignificant: dan | 2007-12-04 13:17:06 -0500 Added django/dates.js and settings.js to included JS files in base.html. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/templates/base.html From dan at thoughtandmemory.org Wed Dec 5 00:16:53 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:16:53 -0500 (EST) Subject: [Dev-flock] r417 - in huginmunin/trunk/web/hm: . app/media/js Message-ID: <20071205051653.42B0B75A78@thoughtandmemory.org> r424 at insignificant: dan | 2007-12-04 13:19:10 -0500 Added 'load' method to Template class. This method will call Main/get_json_template to retrieve a template if it doesn't exist in the client-side cache (Template.Cache). It also takes a callback as a parameter and will trigger that callback when the template has been successfully retrieved and compiled. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/json_template.js From dan at thoughtandmemory.org Wed Dec 5 00:19:01 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:01 -0500 (EST) Subject: [Dev-flock] r420 - in huginmunin/trunk/web/hm: . app/views Message-ID: <20071205051901.2761D75A75@thoughtandmemory.org> r427 at insignificant: dan | 2007-12-04 13:31:12 -0500 Changed dependency on hm.app.lib.utils to hm.app.lib.json_utils Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/views/main.py From dan at thoughtandmemory.org Wed Dec 5 00:19:09 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:09 -0500 (EST) Subject: [Dev-flock] r423 - in huginmunin/trunk/web/hm: . app/templates/node Message-ID: <20071205051909.A37DC75A77@thoughtandmemory.org> r430 at insignificant: dan | 2007-12-04 15:17:44 -0500 Removed messages stating that the {{date|date}} filter didn't work, since it does now. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/templates/node/argument.html huginmunin/trunk/web/hm/app/templates/node/createdby.html From dan at thoughtandmemory.org Wed Dec 5 00:18:59 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:18:59 -0500 (EST) Subject: [Dev-flock] r419 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051859.13E2775A71@thoughtandmemory.org> r426 at insignificant: dan | 2007-12-04 13:30:26 -0500 Changed dependencies on hm.app.lib.utils to hm.app.lib.json_utils. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/json_template.py huginmunin/trunk/web/hm/app/lib/json_utils.py huginmunin/trunk/web/hm/app/lib/structures.py From dan at thoughtandmemory.org Wed Dec 5 00:18:55 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:18:55 -0500 (EST) Subject: [Dev-flock] r418 - in huginmunin/trunk/web/hm: . app/views Message-ID: <20071205051856.08BE875A70@thoughtandmemory.org> r425 at insignificant: dan | 2007-12-04 13:20:42 -0500 Added get_json_template, slightly changed how the default templates are generated, changed my_json_view_arguments to use the new @json_api decorator. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/views/main.py From dan at thoughtandmemory.org Wed Dec 5 00:19:03 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:03 -0500 (EST) Subject: [Dev-flock] r421 - in huginmunin/trunk/web/hm: . app/lib Message-ID: <20071205051903.97B4A75A75@thoughtandmemory.org> r428 at insignificant: dan | 2007-12-04 14:12:24 -0500 Added JSON_API and json_response to hm.app.lib.json_utils Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/json_utils.py From dan at thoughtandmemory.org Wed Dec 5 00:19:06 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:06 -0500 (EST) Subject: [Dev-flock] r422 - in huginmunin/trunk/web/hm: . app/media/js app/media/js/django Message-ID: <20071205051906.6EB2975A76@thoughtandmemory.org> r429 at insignificant: dan | 2007-12-04 14:14:57 -0500 Fixed an issue with django/dates.js. I'm not sure whether the current django/dates.js=>to_date() is cross-browser...I doubt it, actually. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/django/dates.js huginmunin/trunk/web/hm/app/media/js/json_template.js From dan at thoughtandmemory.org Wed Dec 5 00:19:12 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:12 -0500 (EST) Subject: [Dev-flock] r424 - in huginmunin/trunk/web/hm: . app/media/js app/media/js/django Message-ID: <20071205051912.42DC675A77@thoughtandmemory.org> r431 at insignificant: dan | 2007-12-04 15:19:56 -0500 Several changes. Fixed a few typos and bugs in json_template.js, added an error message to django/dates.js in case it ever gets a non-string date, and JSON wasn't eval-ing the strings returned by the server, so fixed that. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/django/dates.js huginmunin/trunk/web/hm/app/media/js/json_template.js huginmunin/trunk/web/hm/app/media/js/utils.js From dan at thoughtandmemory.org Wed Dec 5 00:19:15 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:15 -0500 (EST) Subject: [Dev-flock] r425 - in huginmunin/trunk/web/hm: . app/views Message-ID: <20071205051915.4AB5B75A78@thoughtandmemory.org> r432 at insignificant: dan | 2007-12-04 15:22:50 -0500 Moved json_response to lib.json_utils; changed a couple functions to use @json_api or JSON_API. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/views/main.py From dan at thoughtandmemory.org Wed Dec 5 00:19:45 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:45 -0500 (EST) Subject: [Dev-flock] r426 - in huginmunin/trunk/web/hm: . app/lib app/views Message-ID: <20071205051945.07CB575A70@thoughtandmemory.org> r433 at insignificant: dan | 2007-12-04 15:40:33 -0500 Removed some print statements from main.py; moved code that generates default_templates.js into lib.json_templates.py. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/json_template.py huginmunin/trunk/web/hm/app/views/main.py From dan at thoughtandmemory.org Wed Dec 5 00:19:47 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:47 -0500 (EST) Subject: [Dev-flock] r427 - in huginmunin/trunk/web/hm: . app app/views Message-ID: <20071205051947.DCCD775A71@thoughtandmemory.org> r434 at insignificant: dan | 2007-12-04 15:48:30 -0500 Added a 'test' module in the view so experimental or unneeded code can be moved there. Added: huginmunin/trunk/web/hm/app/views/test.py huginmunin/trunk/web/hm/app/views/test_urls.py Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/urls.py From dan at thoughtandmemory.org Wed Dec 5 00:19:54 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:54 -0500 (EST) Subject: [Dev-flock] r430 - in huginmunin/trunk/web/hm: . app/media/js Message-ID: <20071205051955.0610175A77@thoughtandmemory.org> r437 at insignificant: dan | 2007-12-04 17:56:06 -0500 Added 'floatformat' to available filters on client side. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/media/js/json_template.js From dan at thoughtandmemory.org Wed Dec 5 00:19:49 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:49 -0500 (EST) Subject: [Dev-flock] r428 - in huginmunin/trunk/web/hm: . db Message-ID: <20071205051949.EE26775A75@thoughtandmemory.org> r435 at insignificant: dan | 2007-12-04 15:49:15 -0500 Fixed an error in db/graph.py Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/db/graph.py From dan at thoughtandmemory.org Wed Dec 5 00:19:52 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:19:52 -0500 (EST) Subject: [Dev-flock] r429 - in huginmunin/trunk/web/hm: . app/templates/node Message-ID: <20071205051952.7444475A76@thoughtandmemory.org> r436 at insignificant: dan | 2007-12-04 17:55:37 -0500 Removed the comments from the place where "floatformat" is used in behavior_info.html, since it's now available client side as well. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/templates/node/behavior_info.html From dan at thoughtandmemory.org Wed Dec 5 00:21:03 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:21:03 -0500 (EST) Subject: [Dev-flock] r431 - in huginmunin/trunk/web/hm: . app/lib app/media/js app/templates/node app/views Message-ID: <20071205052103.B11D175A70@thoughtandmemory.org> r438 at insignificant: dan | 2007-12-04 21:13:19 -0500 Added 'withmany' and 'script' tags, but the script tags don't as expected yet. Fixed a few things with json templates. Modified: huginmunin/trunk/web/hm/ huginmunin/trunk/web/hm/app/lib/json_template.py huginmunin/trunk/web/hm/app/media/js/behavior.js huginmunin/trunk/web/hm/app/media/js/json_template.js huginmunin/trunk/web/hm/app/media/js/main.js huginmunin/trunk/web/hm/app/templates/node/argument.html huginmunin/trunk/web/hm/app/templates/node/argument_add.html huginmunin/trunk/web/hm/app/templates/node/behaviors.html huginmunin/trunk/web/hm/app/views/main.py huginmunin/trunk/web/hm/app/views/main_urls.py huginmunin/trunk/web/hm/app/views/test.py huginmunin/trunk/web/hm/app/views/test_urls.py From dan at thoughtandmemory.org Wed Dec 5 00:21:07 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:21:07 -0500 (EST) Subject: [Dev-flock] r432 - in huginmunin/trunk/web/hm: . app/templates/node Message-ID: <20071205052107.F37FD75A71@thoughtandmemory.org> r439 at insignificant: dan | 2007-12-04 21:14:04 -0500 Added argument_response_add, but it doesn't work yet. Added: huginmunin/trunk/web/hm/app/templates/node/argument_response_add.html Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:21:10 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:21:10 -0500 (EST) Subject: [Dev-flock] r433 - in huginmunin/trunk/web/hm: . app/templates app/templates/test Message-ID: <20071205052110.2087C75A75@thoughtandmemory.org> r440 at insignificant: dan | 2007-12-04 21:15:16 -0500 Added templates/test and a few test templates. Added: huginmunin/trunk/web/hm/app/templates/test/ huginmunin/trunk/web/hm/app/templates/test/base.html huginmunin/trunk/web/hm/app/templates/test/js_template.html huginmunin/trunk/web/hm/app/templates/test/tags.html Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:21:12 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:21:12 -0500 (EST) Subject: [Dev-flock] r434 - in huginmunin/trunk/web/hm: . app/lib app/lib/tags Message-ID: <20071205052112.5D3F775A76@thoughtandmemory.org> r441 at insignificant: dan | 2007-12-04 21:17:23 -0500 Added lib/tags directory, for custom tags. Added: huginmunin/trunk/web/hm/app/lib/tags/ huginmunin/trunk/web/hm/app/lib/tags/__init__.py huginmunin/trunk/web/hm/app/lib/tags/script.py huginmunin/trunk/web/hm/app/lib/tags/utils.py huginmunin/trunk/web/hm/app/lib/tags/vars.py Modified: huginmunin/trunk/web/hm/ From dan at thoughtandmemory.org Wed Dec 5 00:21:15 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 5 Dec 2007 00:21:15 -0500 (EST) Subject: [Dev-flock] r435 - in huginmunin/trunk/web/hm: . app/media/js app/templates/test Message-ID: <20071205052115.94FEC75A77@thoughtandmemory.org> r442 at insignificant: dan | 2007-12-04 21:46:43 -0500 Fixed a problem with javascript inside client-side templates. Before now, scripts inside templates could not reference themselves when rendered clientside, because the script would be executed before the HTML was inserted into the DOM. (That is, most javascript would work, but jQuery selectors could not target the template.) Now, you can enclose scripts within {% script %} and it will render correctly: - when rendered on the server, the