From lmendel at MIT.EDU Tue Oct 2 17:45:55 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Tue, 2 Oct 2007 17:45:55 -0400 (EDT) Subject: [Dev-flock] YUM prototype strategy Message-ID: yo, Off the main wiki page on the trac site is a new page called YUMPrototypeStrategy http://thoughtandmemory.org/trac/wiki/YUMPrototypeStrategy that lists our goals and tasks for the next two weeks. This is the real thing. At the end of these two weeks we hope to be more or less running live (alpha) for focus groups. I don't want to crowd our schedules with too many meetings, but (or because) I do want to make sure we're making steady progress. After reading the strategy page, please create/modify/accept tickets. In particular, I hope to see frequent commit messages and ticket resolution. I encourage you to break large tasks into smaller ones. This will help us not overlap on the ui, too. Please reply to this email with a brief message about your availability these next two weeks (eg, I can get down to the brass tacks immediately; or, Will make a start but can't commit until Friday). And of course, please let me know if you have any questions or concerns. Thanks, Lucy. ps - I will keep ya'll updated on coop dinners since your company would be most welcome! From dev-nest at thoughtandmemory.org Tue Oct 2 22:27:31 2007 From: dev-nest at thoughtandmemory.org (ThoughtAndMemory.org) Date: Wed, 03 Oct 2007 02:27:31 -0000 Subject: [Dev-flock] [ThoughtAndMemory.org] #9: Users can rate behaviors Message-ID: <052.115560a28c6cc175a8a73cf0366a06c7@thoughtandmemory.org> #9: Users can rate behaviors ------------------+--------------------------------------------------------- Reporter: lucy | Owner: Type: task | Status: new Priority: major | Milestone: Prototype Version: 0.22 | Keywords: ------------------+--------------------------------------------------------- The simple case is some way to click and then enter a digit. The user must have marked at least one applicable argument as contributing to their voting decision-- or perhaps the user clicks, marks contributing arguments and then votes. -- Ticket URL: ThoughtAndMemory.org <> Developer site for ThoughtAndMemory.org: Buy it like you mean it. From dev-nest at thoughtandmemory.org Tue Oct 2 22:46:05 2007 From: dev-nest at thoughtandmemory.org (ThoughtAndMemory.org) Date: Wed, 03 Oct 2007 02:46:05 -0000 Subject: [Dev-flock] [ThoughtAndMemory.org] #10: Users can evaluate behaviors, arguments, citations, sources Message-ID: <052.801b98d30dd782452d4222861a5239db@thoughtandmemory.org> #10: Users can evaluate behaviors, arguments, citations, sources ------------------+--------------------------------------------------------- Reporter: lucy | Owner: Type: task | Status: new Priority: major | Milestone: Prototype Version: 0.22 | Keywords: ui actions ------------------+--------------------------------------------------------- Simple case is thumb_up and thumb_down. Eventually we may want to create many binary (has attribute or abstain) and ternary (has attribute, lacks attribute, abstain) categories; eg, biased/objective; well written; contributed to my rating; agree/disagree; false premiss; logical fallacy. -- Ticket URL: ThoughtAndMemory.org <> Developer site for ThoughtAndMemory.org: Buy it like you mean it. From lucy at thoughtandmemory.org Wed Oct 3 11:43:27 2007 From: lucy at thoughtandmemory.org (lucy) Date: Wed, 3 Oct 2007 11:43:27 -0400 Subject: [Dev-flock] r251 - huginmunin/trunk/web/src Message-ID: <200710031543.l93FhRau001283@thoughtandmemory.org> test for diff script Modified: huginmunin/trunk/web/src/test.test From eggar at thoughtandmemory.org Wed Oct 3 21:02:57 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Wed, 3 Oct 2007 21:02:57 -0400 Subject: [Dev-flock] r252 - in huginmunin/trunk/web/src/web_app/Main: media templates views Message-ID: <200710040102.l9412vOF004109@thoughtandmemory.org> not sure why the histogram doesn't show up trying to get procedures in models.py to return json Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/templates/main.html huginmunin/trunk/web/src/web_app/Main/views/views.py From eggar at thoughtandmemory.org Thu Oct 4 22:19:00 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Thu, 4 Oct 2007 22:19:00 -0400 Subject: [Dev-flock] r253 - in huginmunin/trunk/web/src/web_app/Main: . media templates views Message-ID: <200710050219.l952J0H8008187@thoughtandmemory.org> new link on behavior to add rating function add_behavior_rating in views.py creates new rating but save() is not working yet. Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/templates/main.html huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From sean at thoughtandmemory.org Thu Oct 4 23:16:48 2007 From: sean at thoughtandmemory.org (sean@thoughtandmemory.org) Date: Thu, 4 Oct 2007 23:16:48 -0400 Subject: [Dev-flock] r254 - in huginmunin/trunk/web/src/web_app: Prototype/Main media/main Message-ID: <200710050316.l953GmR4008828@thoughtandmemory.org> Fixed child positioning bug. Added front-end for node search functionality. I've been stuck trying to get the backend to use this solution (http://info.wsisiz.edu.pl/~blizinsk/simple-django-search.html), but this seems like an ideal (though not necessarily scalable) search solution. Will continue with this when I get back next week. Modified: huginmunin/trunk/web/src/web_app/Prototype/Main/main.html huginmunin/trunk/web/src/web_app/Prototype/Main/urls.py huginmunin/trunk/web/src/web_app/Prototype/Main/views.py huginmunin/trunk/web/src/web_app/media/main/main.js huginmunin/trunk/web/src/web_app/media/main/stylesheet.css From eggar at thoughtandmemory.org Fri Oct 5 22:18:21 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Fri, 5 Oct 2007 22:18:21 -0400 Subject: [Dev-flock] r255 - in huginmunin/trunk/web/src/web_app/Main: . media templates views Message-ID: <200710060218.l962IL2S004751@thoughtandmemory.org> added 'add argument' link to each behavior, opens a form, submitting the form creates a new argument in views.add_new_argument_to_behavior save() still isnt working, not sure if its a permissions problem or bug Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/main.html huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From lmendel at MIT.EDU Fri Oct 5 22:29:52 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Fri, 5 Oct 2007 22:29:52 -0400 (EDT) Subject: [Dev-flock] r255 - in huginmunin/trunk/web/src/web_app/Main: . media templates views In-Reply-To: <200710060218.l962IL2S004751@thoughtandmemory.org> References: <200710060218.l962IL2S004751@thoughtandmemory.org> Message-ID: word. I'll have a look at the save() issue. On Fri, 5 Oct 2007, Mike Eggar wrote: > added 'add argument' link to each behavior, opens a form, submitting the form creates a new argument in views.add_new_argument_to_behavior > > save() still isnt working, not sure if its a permissions problem or bug > > > Modified: > huginmunin/trunk/web/src/web_app/Main/media/main.js > huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css > huginmunin/trunk/web/src/web_app/Main/templates/main.html > huginmunin/trunk/web/src/web_app/Main/urls.py > huginmunin/trunk/web/src/web_app/Main/views/views.py > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From eggar at thoughtandmemory.org Sat Oct 6 02:16:59 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Sat, 6 Oct 2007 02:16:59 -0400 Subject: [Dev-flock] r256 - in huginmunin/trunk/web/src/web_app/Main: media media/images templates views Message-ID: <200710060616.l966Gxwc002156@thoughtandmemory.org> Added: huginmunin/trunk/web/src/web_app/Main/media/images/ huginmunin/trunk/web/src/web_app/Main/media/images/Picture1.png huginmunin/trunk/web/src/web_app/Main/media/images/Picture2.png Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/main.html huginmunin/trunk/web/src/web_app/Main/views/views.py From eggar at thoughtandmemory.org Sat Oct 6 02:31:08 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Sat, 6 Oct 2007 02:31:08 -0400 Subject: [Dev-flock] r257 - huginmunin/trunk/web/src/web_app/Main/media Message-ID: <200710060631.l966V8L4002192@thoughtandmemory.org> Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js From eggar at thoughtandmemory.org Sat Oct 6 02:55:49 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Sat, 6 Oct 2007 02:55:49 -0400 Subject: [Dev-flock] r258 - in huginmunin/trunk/web/src/web_app/Main: media templates Message-ID: <200710060655.l966tnm4002241@thoughtandmemory.org> added agree/disagree selection to form Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/templates/main.html From danring at MIT.EDU Sat Oct 6 08:03:06 2007 From: danring at MIT.EDU (Daniel Ring) Date: Sat, 06 Oct 2007 08:03:06 -0400 Subject: [Dev-flock] r255 - in huginmunin/trunk/web/src/web_app/Main: . media templates views In-Reply-To: References: <200710060218.l962IL2S004751@thoughtandmemory.org> Message-ID: <4707797A.4040005@mit.edu> It works now on my end - it saves at least, but the form sends the wrong item_id, so it saves to the behavior with the id of whatever my rating was, so 5 by default ... in the form tag inserted after clicking "Add Argument", the parameters to the onSubmit="add_arg_to_behavior(this.drop, ...)" are wrong - the value of the dropdown becomes the beh_id parameter ... I'm going make a big database commit later today, and it should make the saving/etc much cleaner, and I'm trying to fix changes in Main/views/views.py as I go, so hopefully it will help. Dan Lucy R Mendel wrote: > word. > > I'll have a look at the save() issue. > > On Fri, 5 Oct 2007, Mike Eggar wrote: > >> added 'add argument' link to each behavior, opens a form, submitting the form creates a new argument in views.add_new_argument_to_behavior >> >> save() still isnt working, not sure if its a permissions problem or bug >> >> >> Modified: >> huginmunin/trunk/web/src/web_app/Main/media/main.js >> huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css >> huginmunin/trunk/web/src/web_app/Main/templates/main.html >> huginmunin/trunk/web/src/web_app/Main/urls.py >> huginmunin/trunk/web/src/web_app/Main/views/views.py >> _______________________________________________ >> 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 From eggar at thoughtandmemory.org Sat Oct 6 20:28:51 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Sat, 6 Oct 2007 20:28:51 -0400 Subject: [Dev-flock] r259 - in huginmunin/trunk/web/src/web_app/Main: media templates views Message-ID: <200710070028.l970Spj1005203@thoughtandmemory.org> Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/main.html huginmunin/trunk/web/src/web_app/Main/views/views.py From eggar at thoughtandmemory.org Sat Oct 6 21:37:57 2007 From: eggar at thoughtandmemory.org (Mike Eggar) Date: Sat, 6 Oct 2007 21:37:57 -0400 Subject: [Dev-flock] r260 - in huginmunin/trunk/web/src/web_app/Main: . media views Message-ID: <200710070137.l971bv3u005319@thoughtandmemory.org> Added citation to arguments Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From lmendel at MIT.EDU Sun Oct 7 18:45:07 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Sun, 7 Oct 2007 18:45:07 -0400 (EDT) Subject: [Dev-flock] for/against arguments Message-ID: We've had some informal discussion about marking arguments as for or against the behavior. This would be marked by the author. In terms of evaluations we thought to allow evaluators to mark why an argument got a thumbs up or thumbs down. eg, not objective, faulty logic, false premiss, irrelevant, biased source. For now, users have to write responding arguments to a thread to say the why, but then they can only write arguments in that particular thread. The why is useful in three ways: 1. to the argument writer to understand their thumb up/thumb downs, which effects status points; 2. to other readers of the argument trying to make votes based on th arguments; 3. analytics. If 1. is important we can allow evaluators to write comments that are only readable by the argument's writer (this prevents people from getting around the one argument per thread by writing comments everywhere else). If 2. is important-- well shoot; write a responding argument! get involved in that thread! (but what if they already wrote an argument elsewhere? well if it's a good argument it'll be The Thread that gets read anyway.) If 3. is important we might was to make actual checkboxes for the why's to make accumulating this data easier.. instead of grepping comments for 'bias' 'source' etc. ---------- Forwarded message ---------- Date: Sat, 06 Oct 2007 04:22:40 +0000 From: Mike Eggar To: lmendel at MIT.EDU Subject: Re: [Dev-flock] r255 - in huginmunin/trunk/web/src/web_app/Main: . media templates views thanks for clearing that up for me. The "for/against" thing I can put in, but there's nothing in the database yet to store it I dont think. I'll add the for/against selection, although I think parsing the argument for profanity/praise might be more accurate. Mike > From: Lucy R Mendel > To: Mike Eggar > Subject: Re: [Dev-flock] r255 - in huginmunin/trunk/web/src/web_app/Main: . > media templates views > Date: Sat, 6 Oct 2007 00:06:18 -0400 (EDT) > MIME-Version: 1.0 > Received: from biscayne-one-station.mit.edu ([18.7.7.80]) by > bay0-mc3-f9.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 5 > Oct 2007 21:06:20 -0700 > Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])by > biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id l9646JxC021206for > ; Sat, 6 Oct 2007 00:06:19 -0400 (EDT) > Received: from all-night-tool.mit.edu (ALL-NIGHT-TOOL.MIT.EDU > [18.7.18.66])(authenticated bits=56) (User authenticated as > lmendel at ATHENA.MIT.EDU)by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id > l9646I2n018095(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 > verify=NOT)for ; Sat, 6 Oct 2007 00:06:19 -0400 (EDT) > Received: (from lmendel at localhost) by all-night-tool.mit.edu > (8.12.9.20060308)id l9646INK007858; Sat, 6 Oct 2007 00:06:18 -0400 (EDT) > X-Message-Info: > JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPt3Mi6GgUSv7yYKHQgGfDe+2wCW4LegkYQqypIHu4uP4o= > References: > X-Scanned-By: MIMEDefang 2.42 > X-Spam-Flag: NO > X-Spam-Score: 0.00 > Return-Path: lmendel at MIT.EDU > X-OriginalArrivalTime: 06 Oct 2007 04:06:20.0952 (UTC) > FILETIME=[40A8C980:01C807CE] > > only behaviors are rated (assigned a vote 1-9)... though maybe the api > permits arguments to be rated eventually. a user can choose to either rate a > product OR write an argument. a user can write many arguments, but only on > one thread. users can only vote once. users can allocate a feather to take a > second action, eg voting after writing an argument or writing arguments on a > different thread. a thread is started by attaching an argument to a behavior. > arguments attached to that first argument (and subsequent arguments in that > discussion) form the thread. > > nothing should be anonymous. i think auth/auth is working in Prototype, > though it's not used there except on a test page. > > On Sat, 6 Oct 2007, Mike Eggar wrote: > >> thanks, >> also, got some questions about rating behaviors: >> do you have to post a new argument to add a rating, or can you just rate the >> argument, >> do you have to be logged in to rate it or is anon rating ok, >> and can a user rate it more than once >> >> Mike >> >> >>> From: Lucy R Mendel >>> To: Mike Eggar >>> CC: dev-flock at mit.edu >>> Subject: Re: [Dev-flock] r255 - in huginmunin/trunk/web/src/web_app/Main: . >>> media templates views >>> Date: Fri, 5 Oct 2007 22:29:52 -0400 (EDT) >>> >>> word. >>> >>> I'll have a look at the save() issue. >>> >>> On Fri, 5 Oct 2007, Mike Eggar wrote: >>> >>> > added 'add argument' link to each behavior, opens a form, submitting the >>> form creates a new argument in views.add_new_argument_to_behavior >>> > >>> > save() still isnt working, not sure if its a permissions problem or bug >>> > >>> > >>> > Modified: >>> > huginmunin/trunk/web/src/web_app/Main/media/main.js >>> > huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css >>> > huginmunin/trunk/web/src/web_app/Main/templates/main.html >>> > huginmunin/trunk/web/src/web_app/Main/urls.py >>> > huginmunin/trunk/web/src/web_app/Main/views/views.py >>> > _______________________________________________ >>> > 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 >> >> _________________________________________________________________ >> Spiderman 3 Spin to Win! Your chance to win $50,000 & many other great >> prizes! Play now! http://spiderman3.msn.com >> >> _________________________________________________________________ Capture the missing critters!   Play Search Queries and earn great prizes. http://club.live.com/search_queries.aspx?icid=sq_hotmailtextlink1_oct From lmendel at MIT.EDU Sun Oct 7 19:05:20 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Sun, 7 Oct 2007 19:05:20 -0400 (EDT) Subject: [Dev-flock] status update Message-ID: Mike and Dan: you guys are both doing excellent work! Very commendable. I'm updating the strategy page and tickets. Our goals are high, but it looks like we'll have something presentable at the festival no matter what. Let's jam pack as much work into as we can. We'll get feedback from the festival, and then use a more moderate pace to tie up the loose ends. my status: The blog was down last week from Sunday to Tuesday/Wednesday (intermittent). I updated MySql to 5.0 from pre-4.1, resulting in password incompatibilities between the client (wordpress blog) and server. The fix ended up being fairly simple, but took quite a while to figure out. During the outage the YUM newsletter featured an article on us and our (highly anticipated!) appearance at the festival this Saturday. eit. Currently I'm setting up pop mail so that staff can receive foo at ThoughtAndMemory.org via gmail or whatever. Or rather, so that clients see our domain in email addresses and thus think we are more established than working 'out of our (hotmail) garage.' Also, I'm modifying a friends script for easy online navigation of the comic book pages. Tonight I'm starting work on the user-centric view. It should show user status points, feathers, actions taken, things evaluated, impact of votes, ...? For now it will be ajax-less-- straight up django/html with links that bring up node centric views with argument tabs, etc already opened? <-- is that possible. l. From clayward at MIT.EDU Sun Oct 7 20:32:52 2007 From: clayward at MIT.EDU (Clay Ward) Date: Sun, 07 Oct 2007 20:32:52 -0400 Subject: [Dev-flock] Congrats, Mike! Message-ID: <20071007203252.n0u18wr1cr40woko@webmail.mit.edu> Well, as you all know we didn't get much of a turn out for our design sprint. Nevertheless you guys seem to have gotten (or are in the process of getting) everything done anyway! Therefore I'm happy to announce that Eggar, you are our official winner of our weekend sprint design contest! I'll give you the video ipod in person (when I can get a picture of you accepting it) soon enough. I know you're not much for the spotlight, so big props to you for winning the contest remotely! cool. And if you guys are in town for Saturday then we'll have two events that we're a part of. The first is the 100k design competition 15k 60 second pitch at MIT. The second is a Somerville Food fair where we'll have a table and will be introducing folks to our technology. I think that we'll stick with Santa, Elf, and Sons as an example and let folks do fake research using our real working system just to get their feet wet. Let me know if you're planning to be at either event. -clay From lucy at thoughtandmemory.org Sun Oct 7 21:55:45 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Sun, 7 Oct 2007 21:55:45 -0400 (EDT) Subject: [Dev-flock] r261 - huginmunin/trunk/web/src/web_app Message-ID: <20071008015545.28FC575A9F@thoughtandmemory.org> modified doc for generating epydocs on the server. epydocs can be found at http://www.thoughtandmemory.org/epydoc Modified: huginmunin/trunk/web/src/web_app/DOC From lucy at thoughtandmemory.org Sun Oct 7 22:46:33 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Sun, 7 Oct 2007 22:46:33 -0400 (EDT) Subject: [Dev-flock] r262 - huginmunin/trunk/web/doc Message-ID: <20071008024633.19A0975A9F@thoughtandmemory.org> epydoc config for var/www Modified: huginmunin/trunk/web/doc/epydoc.config From sean at thoughtandmemory.org Sun Oct 7 23:05:39 2007 From: sean at thoughtandmemory.org (sean@thoughtandmemory.org) Date: Sun, 7 Oct 2007 23:05:39 -0400 (EDT) Subject: [Dev-flock] r263 - in huginmunin/trunk/web/src: database web_app web_app/Main web_app/Main/media web_app/Main/templates web_app/Main/views Message-ID: <20071008030540.0563075A9F@thoughtandmemory.org> refactored main into node_centric and user_centric views. if click on user name in node-centric view will get to user_centric view. however, user view is just hello world. main.html now equals node_centric.html. furthermore, main.html extends the base (django) template file called base.html. Added: huginmunin/trunk/web/src/web_app/Main/templates/node_centric.html Removed: huginmunin/trunk/web/src/web_app/Main/templates/main.html Modified: huginmunin/trunk/web/src/database/hm_development.db huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py huginmunin/trunk/web/src/web_app/urls.py From sean at thoughtandmemory.org Sun Oct 7 23:07:34 2007 From: sean at thoughtandmemory.org (sean@thoughtandmemory.org) Date: Sun, 7 Oct 2007 23:07:34 -0400 (EDT) Subject: [Dev-flock] r264 - in huginmunin/trunk/web/src/web_app/Main: media/images templates Message-ID: <20071008030734.1626D75A9F@thoughtandmemory.org> the files from previous commit needed to be added first. Added: huginmunin/trunk/web/src/web_app/Main/media/images/green.gif huginmunin/trunk/web/src/web_app/Main/templates/base.html huginmunin/trunk/web/src/web_app/Main/templates/user_centric.html From sean at thoughtandmemory.org Sun Oct 7 23:28:01 2007 From: sean at thoughtandmemory.org (sean@thoughtandmemory.org) Date: Sun, 7 Oct 2007 23:28:01 -0400 (EDT) Subject: [Dev-flock] r265 - in huginmunin/trunk/web/src: database/db web_app/Main/templates web_app/Main/views Message-ID: <20071008032801.5192475A9F@thoughtandmemory.org> models.new.py has lived beyond its usefulness by far (go Dan!!) views and user_centric haven't evolved past the last commit. i realized that no UserExtended objects exist. We want each User to have a UserExtended object, too (bijection). Dan: Where are Users objects stored? How would I access them in the view? Are they your own thing or related to Auth/auth? Auth/auth should be moved (copied) somewhere more appropriate than Prototype perhaps. oh yeah. this and the last two commits were from me. Lucy. forgot I'd been testing with Sean's accound and didn't change user. will do! Removed: huginmunin/trunk/web/src/database/db/models.new.py Modified: huginmunin/trunk/web/src/web_app/Main/templates/user_centric.html huginmunin/trunk/web/src/web_app/Main/views/views.py From sean at thoughtandmemory.org Mon Oct 8 07:51:49 2007 From: sean at thoughtandmemory.org (sean@thoughtandmemory.org) Date: Mon, 8 Oct 2007 07:51:49 -0400 (EDT) Subject: [Dev-flock] r266 - huginmunin/trunk/web/src Message-ID: <20071008115149.6297775A9F@thoughtandmemory.org> test that i'm not sean Modified: huginmunin/trunk/web/src/test.test From lucy at thoughtandmemory.org Mon Oct 8 07:53:23 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Mon, 8 Oct 2007 07:53:23 -0400 (EDT) Subject: [Dev-flock] r267 - huginmunin/trunk/web/src Message-ID: <20071008115323.5EB3675A9F@thoughtandmemory.org> test that i'm not sean Modified: huginmunin/trunk/web/src/test.test From lucy at thoughtandmemory.org Mon Oct 8 07:53:56 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Mon, 8 Oct 2007 07:53:56 -0400 (EDT) Subject: [Dev-flock] r268 - huginmunin/trunk/web/src Message-ID: <20071008115356.AD70975A9F@thoughtandmemory.org> test that i'm not sean Modified: huginmunin/trunk/web/src/test.test From lucy at thoughtandmemory.org Mon Oct 8 07:55:17 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Mon, 8 Oct 2007 07:55:17 -0400 (EDT) Subject: [Dev-flock] r269 - huginmunin/trunk/web/src Message-ID: <20071008115517.0767B75A9F@thoughtandmemory.org> ok. state saved. yes! (thanks sean) Modified: huginmunin/trunk/web/src/test.test From dan at thoughtandmemory.org Mon Oct 8 08:32:56 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:32:56 -0400 (EDT) Subject: [Dev-flock] r270 - in huginmunin/trunk/web: . src/middleware Message-ID: <20071008123256.62C6875A9F@thoughtandmemory.org> r275 at insignificant: dan | 2007-10-05 20:21:28 -0400 Added logging middleware in tam_middleware.py. This allows us to record all page views, including users (if logged in), their IP address, what page/path they looked at, where they came from, and how long it took our app to process their request. Modified threadlocals.py to grab more data from the request object (needed by tam_middleware.py). Added: huginmunin/trunk/web/src/middleware/tam_middleware.py Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/middleware/threadlocals.py From dan at thoughtandmemory.org Mon Oct 8 08:32:58 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:32:58 -0400 (EDT) Subject: [Dev-flock] r271 - in huginmunin/trunk/web: . src Message-ID: <20071008123258.AE93775A9F@thoughtandmemory.org> r276 at insignificant: dan | 2007-10-05 20:24:11 -0400 Patch on Django to stop it from generating too many DROP Added: huginmunin/trunk/web/src/patches/ Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:01 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:01 -0400 (EDT) Subject: [Dev-flock] r272 - in huginmunin/trunk/web: . src/patches Message-ID: <20071008123301.8E7F775A9F@thoughtandmemory.org> r277 at insignificant: dan | 2007-10-05 20:28:31 -0400 The message on the last commit is incomplete. Here is the full message: Patch on Django to stop it from generating too many 'DROP TABLE' commands when using generic relations. This patch will probably be removed later, when a Django person fixes it for real. Added: huginmunin/trunk/web/src/patches/patch_to_fix_syncdb_with_generic_relations.diff Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:04 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:04 -0400 (EDT) Subject: [Dev-flock] r273 - in huginmunin/trunk/web: . src/patches Message-ID: <20071008123304.693FA75A9F@thoughtandmemory.org> r278 at insignificant: dan | 2007-10-05 20:34:20 -0400 Another patch on Django. This patch adds the ability to backup the original version of a model's attribute(s). This was needed to support checking and logging objects' state changes (see upcoming database/db/state.py for more details.) There is a better way to do this using SQL, but that requires more complex changes to Django. (But they're currently refactoring their database/querying internals, so it may get easier soon.) Added: huginmunin/trunk/web/src/patches/patch_adding_store_original_values.diff Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:10 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:10 -0400 (EDT) Subject: [Dev-flock] r274 - in huginmunin/trunk/web: . src/database/db/fixtures Message-ID: <20071008123310.9F7FF75A9F@thoughtandmemory.org> r279 at insignificant: dan | 2007-10-06 01:45:40 -0400 Cleaned up fixtures to match database. Added: huginmunin/trunk/web/src/database/db/fixtures/sentences_1580.txt huginmunin/trunk/web/src/database/db/fixtures/words_10000.txt Removed: huginmunin/trunk/web/src/database/db/fixtures/lorem2.txt huginmunin/trunk/web/src/database/db/fixtures/words.txt Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/fixtures/ct.json huginmunin/trunk/web/src/database/db/fixtures/node.json.rb From danring at MIT.EDU Mon Oct 8 08:34:34 2007 From: danring at MIT.EDU (Daniel Ring) Date: Mon, 08 Oct 2007 08:34:34 -0400 Subject: [Dev-flock] Imminent commit... In-Reply-To: <20071008115517.0767B75A9F@thoughtandmemory.org> References: <20071008115517.0767B75A9F@thoughtandmemory.org> Message-ID: <470A23DA.6010405@mit.edu> will be way too verbose, sorry. Don't worry about the patches on Django, everything works without them (except State, but we don't use that yet). Let me know if it doesn't work. Dan lucy at thoughtandmemory.org wrote: > ok. state saved. yes! (thanks sean) > > Modified: > huginmunin/trunk/web/src/test.test > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock From dan at thoughtandmemory.org Mon Oct 8 08:33:15 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:15 -0400 (EDT) Subject: [Dev-flock] r275 - in huginmunin/trunk/web: . src/database/db/fixtures Message-ID: <20071008123315.48F1A75A9F@thoughtandmemory.org> r280 at insignificant: dan | 2007-10-06 02:27:01 -0400 More cleanup of fixtures. Added: huginmunin/trunk/web/src/database/db/fixtures/build_fixtures.rb huginmunin/trunk/web/src/database/db/fixtures/rebuild_fixtures.rb Removed: huginmunin/trunk/web/src/database/db/fixtures/node.json.rb Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/fixtures/ct.json From dan at thoughtandmemory.org Mon Oct 8 08:33:17 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:17 -0400 (EDT) Subject: [Dev-flock] r276 - huginmunin/trunk/web Message-ID: <20071008123317.D31FA75A9F@thoughtandmemory.org> Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:19 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:19 -0400 (EDT) Subject: [Dev-flock] r277 - huginmunin/trunk/web Message-ID: <20071008123319.95D9375A9F@thoughtandmemory.org> Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:22 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:22 -0400 (EDT) Subject: [Dev-flock] r278 - huginmunin/trunk/web Message-ID: <20071008123322.78AC775A9F@thoughtandmemory.org> Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:24 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:24 -0400 (EDT) Subject: [Dev-flock] r279 - huginmunin/trunk/web Message-ID: <20071008123324.40DA975A9F@thoughtandmemory.org> Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:26 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:26 -0400 (EDT) Subject: [Dev-flock] r280 - in huginmunin/trunk/web: . src/database/db/fixtures Message-ID: <20071008123326.972EF75AEE@thoughtandmemory.org> r295 at insignificant: dan | 2007-10-08 05:19:07 -0400 More fixes to fixtures. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/fixtures/build_fixtures.rb From dan at thoughtandmemory.org Mon Oct 8 08:33:31 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:31 -0400 (EDT) Subject: [Dev-flock] r281 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071008123331.7334275A9F@thoughtandmemory.org> r296 at insignificant: dan | 2007-10-08 06:33:04 -0400 The single model file was getting way too long to handle (especially with comments everywhere.) So I split it into several modules which hopefully make sense. The model API is pretty well documented, except for full-text search and Rating aggregation, but that stuff will come soon, and a framework is there in any case (just not the internals). So hopefully the API from this point onward will only add functions, and not remove anything. Things to note (maybe?): 1. I added convenience methods to everything, so Argument.objects.get(id=1) can be Argument.get(1) ('get' is list objects.get, except with a special case for ids); Argument.find is like objects.filter, again with a special case for single or multiple ids; Argument.add maps to Argument.make(blah).save(). They all mostly pass arguments through and only exist for convenience. 2. When possible, (e.g., always, I think) use Argument.make() rather than Argument.objects.get_or_create(...), because Argument.make enforces rules on fields (like Rating). 3. Don't need to specify user when saving objects. Logging of username, IP, and time of save is handled automatically by the Log and Action classes with help from Django signals. 4. When 'tam_middleware.LogVisits' is enabled, every visit is logged unless it matches 'exclude_pattern' (which currently excludes static pages, since 21 log entries per refresh is too many.) 5. Many (most) attributes (where possible) are implemented with properties, so they should be accessible from Views without explicitly exporting them in a dict. 6. I'm sure I missed stuff, so let me know. Added: huginmunin/trunk/web/src/database/db/citation.py huginmunin/trunk/web/src/database/db/graph.py huginmunin/trunk/web/src/database/db/log.py huginmunin/trunk/web/src/database/db/rating.py huginmunin/trunk/web/src/database/db/search.py huginmunin/trunk/web/src/database/db/state.py huginmunin/trunk/web/src/database/db/tag.py huginmunin/trunk/web/src/database/db/user.py huginmunin/trunk/web/src/database/db/utils.py Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/models.py huginmunin/trunk/web/src/database/db/tests.py huginmunin/trunk/web/src/database/db/views.py From dan at thoughtandmemory.org Mon Oct 8 08:33:35 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:35 -0400 (EDT) Subject: [Dev-flock] r282 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071008123335.1C5ED75A9F@thoughtandmemory.org> r297 at insignificant: dan | 2007-10-08 06:37:21 -0400 Cleaned up models a little, removing old comments. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/graph.py huginmunin/trunk/web/src/database/db/log.py huginmunin/trunk/web/src/database/db/rating.py huginmunin/trunk/web/src/database/db/tag.py From dan at thoughtandmemory.org Mon Oct 8 08:33:38 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:38 -0400 (EDT) Subject: [Dev-flock] r283 - in huginmunin/trunk/web: . src/middleware Message-ID: <20071008123338.CA30475A9F@thoughtandmemory.org> r298 at insignificant: dan | 2007-10-08 06:39:47 -0400 Changed SQLLogMiddleware to output to a file (sql.log) rather than to the page. Added exclusion filters to tam_middleware. Added 'get_current_request' to threadlocals. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/middleware/SQLLogMiddleware.py huginmunin/trunk/web/src/middleware/tam_middleware.py huginmunin/trunk/web/src/middleware/threadlocals.py From dan at thoughtandmemory.org Mon Oct 8 08:33:41 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:41 -0400 (EDT) Subject: [Dev-flock] r284 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071008123341.C536F75AEE@thoughtandmemory.org> r299 at insignificant: dan | 2007-10-08 07:18:59 -0400 Factored out the Log class. It was just fronting for Action, Slug, and Visit anyway. Fixed a couple things in Node. Slug now uses model-create signals to generate the initial slug; default slug prefixes are now in Slug.SLUG_PREFIXES. Yay. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/graph.py huginmunin/trunk/web/src/database/db/log.py huginmunin/trunk/web/src/database/db/tag.py From dan at thoughtandmemory.org Mon Oct 8 08:33:45 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:45 -0400 (EDT) Subject: [Dev-flock] r286 - huginmunin/trunk/web Message-ID: <20071008123345.C9F0875AEE@thoughtandmemory.org> Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 08:33:43 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:43 -0400 (EDT) Subject: [Dev-flock] r285 - in huginmunin/trunk/web: . src/middleware Message-ID: <20071008123343.E9CC075A9F@thoughtandmemory.org> r300 at insignificant: dan | 2007-10-08 07:19:52 -0400 Fixed the reference to Log - now points at Visit, as it should. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/middleware/tam_middleware.py From dan at thoughtandmemory.org Mon Oct 8 08:33:49 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:49 -0400 (EDT) Subject: [Dev-flock] r287 - in huginmunin/trunk/web: . src/web_app/Main/media src/web_app/Main/templates src/web_app/Main/views Message-ID: <20071008123349.4981A75A9F@thoughtandmemory.org> r305 at insignificant: dan | 2007-10-08 08:23:55 -0400 Added a few interesting things: - to main.js, I added render() which takes a python-esque string (e.g. %s and %(blah)s placeholders) and merges either an Array or an Object into the string. This could be useful in making stuff work both with and without ajax? Also, I think it looks nicer. - to views.py, I added get_type and get_item, which interfaces with ContentTypes, so instead of guessing the item_type for Argument, you can say get_type(Argument), and get_item is backwards of that. - also to views.py, I added default_fields/get_field/get_data/get_json, which together let you specify the precise structure to be returned. Check it out in my_json_view_arguments and get_citations_per_argument. The rules are a little contrived, because I wanted to use only strings and arrays for structure (so it could work for requesting from client-side too) but, well, I like it. If you don't, feel free to revert it. Changed some view methods to work with new model structure, and changed a few things in main.html (now user_centric.html) - loading the argument list now pulls down citation information all in one request. Added 'return false' to the 'Add Argument' form so it actually has time to submit before the page turns. Changed the 'k' in the Mochikit script tag to 'K' because my computer hates me if I don't. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/templates/base.html huginmunin/trunk/web/src/web_app/Main/templates/user_centric.html huginmunin/trunk/web/src/web_app/Main/views/views.py From dan at thoughtandmemory.org Mon Oct 8 08:33:52 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:52 -0400 (EDT) Subject: [Dev-flock] r288 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071008123352.34EE875A9F@thoughtandmemory.org> r306 at insignificant: dan | 2007-10-08 08:29:34 -0400 Added the 'cached_mixin_property' decorator to utils.py. Used it in user.py to link user.profile to our UserExtended class. There should be a user.get_profile() method built-in to Django, but I can't make it work, I think because 'database.db.user.UserExtended' has too many periods. Really. Gave Argument.make a responds_to keyword, which will automatically link the right foreign key. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/graph.py huginmunin/trunk/web/src/database/db/user.py huginmunin/trunk/web/src/database/db/utils.py From dan at thoughtandmemory.org Mon Oct 8 08:33:54 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 08:33:54 -0400 (EDT) Subject: [Dev-flock] r289 - huginmunin/trunk/web Message-ID: <20071008123354.1172375A9F@thoughtandmemory.org> Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Mon Oct 8 09:08:13 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 09:08:13 -0400 (EDT) Subject: [Dev-flock] r290 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071008130813.11C7875A9F@thoughtandmemory.org> r332 at insignificant: dan | 2007-10-08 09:07:31 -0400 Added 'sign' to Argument: - positive values mean agreement/pro/yay - negative values mean against/con/boo I'm not sure we'll ever want more than +/- 1, but if we want strength of disagreement... Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/graph.py From dan at thoughtandmemory.org Mon Oct 8 09:08:16 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Mon, 8 Oct 2007 09:08:16 -0400 (EDT) Subject: [Dev-flock] r291 - in huginmunin/trunk/web: . src/web_app/Main/media src/web_app/Main/views Message-ID: <20071008130816.0FF0375A9F@thoughtandmemory.org> r333 at insignificant: dan | 2007-10-08 09:09:16 -0400 Add argument now works and saves correctly; it doesn't refresh the argument list, and the onSubmit returns false so the full page doesn't refresh. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/views/views.py From lmendel at MIT.EDU Mon Oct 8 09:17:45 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 09:17:45 -0400 (EDT) Subject: [Dev-flock] r281 - in huginmunin/trunk/web: . src/database/db In-Reply-To: <20071008123331.7334275A9F@thoughtandmemory.org> References: <20071008123331.7334275A9F@thoughtandmemory.org> Message-ID: > many model files word. > The model API is pretty well documented, except ... word. > Things to note (maybe?): most definitely! these are all good notes to give the rest of us a heads up on what methods to use, etc. good work!! I'll have to look through the logging/user stuff tonight--- I'm not sure right now how to retrieve UserExtended info (actions, status points) and logging info. I'll ask if I have questions, though. Eggar, please pipe up if you have questions, too. Yeah team! Lucy. > > > Added: > huginmunin/trunk/web/src/database/db/citation.py > huginmunin/trunk/web/src/database/db/graph.py > huginmunin/trunk/web/src/database/db/log.py > huginmunin/trunk/web/src/database/db/rating.py > huginmunin/trunk/web/src/database/db/search.py > huginmunin/trunk/web/src/database/db/state.py > huginmunin/trunk/web/src/database/db/tag.py > huginmunin/trunk/web/src/database/db/user.py > huginmunin/trunk/web/src/database/db/utils.py > Modified: > huginmunin/trunk/web/ > huginmunin/trunk/web/src/database/db/models.py > huginmunin/trunk/web/src/database/db/tests.py > huginmunin/trunk/web/src/database/db/views.py > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From lmendel at MIT.EDU Mon Oct 8 09:46:19 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 09:46:19 -0400 (EDT) Subject: [Dev-flock] epydocs updated Message-ID: http://www.thoughtandmemory.org/epydoc updated 9:46 am 10/8/07 From danring at MIT.EDU Mon Oct 8 10:43:31 2007 From: danring at MIT.EDU (Daniel Ring) Date: Mon, 08 Oct 2007 10:43:31 -0400 Subject: [Dev-flock] New fixtures Message-ID: <470A4213.1080900@mit.edu> ...can be built by running './build_fixtures.rb fixtures.json' in src/database/db/fixtures. Beware, this takes a while. If you don't have ruby or don't want to bother, download them from: http://danring.net/temp/fixtures.json (~20meg) These are again just random-text fixtures. I'll get the real-live-fake-Santa-fixtures out soon. Dan From lmendel at MIT.EDU Mon Oct 8 10:42:31 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 10:42:31 -0400 (EDT) Subject: [Dev-flock] user/userExtended Message-ID: > If you want, I can merge more properties into the User class itself, but > I'm hesitant to add too much since I don't know the internals. agreed. >As it is now, to get actions, do: > u = User.get(name="dan") > u.profile.actions[0:10] <- to get just the first 10, since there are >about 20k actions by each user in the fixtures >To get status points, its: u.profile.status word. >I haven't made any clever way to get or sort visit-logging info....if >you have any ideas/requests, I'm all ears. ok. ---------- Forwarded message ---------- Date: Mon, 08 Oct 2007 10:37:33 -0400 From: Daniel Ring To: Lucy R Mendel Subject: Re: [Dev-flock] r281 - in huginmunin/trunk/web: . src/database/db I meant to mention it - there's a Django-standard way to assign it a 'user profile', but all that does is make 'user.get_profile()' return the profile (in our case, a UserExtended instnace). I couldn't figure out how to make that work, so I added a user.profile property that will create the UserExtended object on the first access. If you want, I can merge more properties into the User class itself, but I'm hesitant to add too much since I don't know the internals. As it is now, to get actions, do: u = User.get(name="dan") u.profile.actions[0:10] <- to get just the first 10, since there are about 20k actions by each user in the fixtures To get status points, its: u.profile.status I haven't made any clever way to get or sort visit-logging info....if you have any ideas/requests, I'm all ears. Dan Lucy R Mendel wrote: >> many model files > word. > >> The model API is pretty well documented, except ... > word. > >> Things to note (maybe?): > most definitely! these are all good notes to give the rest of us a heads > up on what methods to use, etc. > good work!! > > I'll have to look through the logging/user stuff tonight--- I'm not sure > right now how to retrieve UserExtended info (actions, status points) and > logging info. I'll ask if I have questions, though. > > Eggar, please pipe up if you have questions, too. > > Yeah team! > Lucy. > >> >> Added: >> huginmunin/trunk/web/src/database/db/citation.py >> huginmunin/trunk/web/src/database/db/graph.py >> huginmunin/trunk/web/src/database/db/log.py >> huginmunin/trunk/web/src/database/db/rating.py >> huginmunin/trunk/web/src/database/db/search.py >> huginmunin/trunk/web/src/database/db/state.py >> huginmunin/trunk/web/src/database/db/tag.py >> huginmunin/trunk/web/src/database/db/user.py >> huginmunin/trunk/web/src/database/db/utils.py >> Modified: >> huginmunin/trunk/web/ >> huginmunin/trunk/web/src/database/db/models.py >> huginmunin/trunk/web/src/database/db/tests.py >> huginmunin/trunk/web/src/database/db/views.py >> _______________________________________________ >> 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 From lmendel at MIT.EDU Mon Oct 8 10:43:18 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 10:43:18 -0400 (EDT) Subject: [Dev-flock] New fixtures In-Reply-To: <470A4213.1080900@mit.edu> References: <470A4213.1080900@mit.edu> Message-ID: Excellent. We're not shooting for a chocolate db for Oct 13th-- just the fake santa data. On Mon, 8 Oct 2007, Daniel Ring wrote: > ...can be built by running './build_fixtures.rb fixtures.json' in > src/database/db/fixtures. Beware, this takes a while. If you don't > have ruby or don't want to bother, download them from: > http://danring.net/temp/fixtures.json (~20meg) > > These are again just random-text fixtures. I'll get the > real-live-fake-Santa-fixtures out soon. > > Dan > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From lmendel at MIT.EDU Mon Oct 8 11:11:14 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) Subject: [Dev-flock] New fixtures In-Reply-To: <470A4213.1080900@mit.edu> References: <470A4213.1080900@mit.edu> Message-ID: to build you need ruby and a ruby json lib (debian packages: ruby; libjson-ruby) Prototype on the web server should be up and running soon... On Mon, 8 Oct 2007, Daniel Ring wrote: > ...can be built by running './build_fixtures.rb fixtures.json' in > src/database/db/fixtures. Beware, this takes a while. If you don't > have ruby or don't want to bother, download them from: > http://danring.net/temp/fixtures.json (~20meg) > > These are again just random-text fixtures. I'll get the > real-live-fake-Santa-fixtures out soon. > > Dan > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From eggar at hotmail.com Mon Oct 8 18:07:51 2007 From: eggar at hotmail.com (Mike Eggar) Date: Mon, 08 Oct 2007 22:07:51 +0000 Subject: [Dev-flock] New fixtures In-Reply-To: Message-ID: OK, I built the fixtures but now I get "no such column: db_node.state" error for prototype and main >From: Lucy R Mendel >To: Daniel Ring >CC: dev-flock at mit.edu >Subject: Re: [Dev-flock] New fixtures >Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) > >to build you need ruby and a ruby json lib (debian packages: ruby; >libjson-ruby) > >Prototype on the web server should be up and running soon... > >On Mon, 8 Oct >2007, Daniel Ring wrote: > > > ...can be built by running './build_fixtures.rb fixtures.json' in > > src/database/db/fixtures. Beware, this takes a while. If you don't > > have ruby or don't want to bother, download them from: > > http://danring.net/temp/fixtures.json (~20meg) > > > > These are again just random-text fixtures. I'll get the > > real-live-fake-Santa-fixtures out soon. > > > > Dan > > _______________________________________________ > > 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 _________________________________________________________________ i'm making a difference. Make every IM count for the cause of your choice. Join Now. http://im.live.com/messenger/im/home/?source=TAGHM From lmendel at MIT.EDU Mon Oct 8 21:09:33 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 21:09:33 -0400 (EDT) Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: $ ./manage.py syncdb Creating table db_visit Creating table db_state Creating table db_aggregaterating Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", line 264, in execute_manager utility.execute() File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", line 215, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", line 70, in run_from_argv self.execute(*args, **options.__dict__) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", line 84, in execute output = self.handle(*args, **options) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", line 168, in handle return self.handle_noargs(**options) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", line 94, in handle_noargs emit_post_sync_signal(created_models, verbosity, interactive) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", line 457, in emit_post_sync_signal verbosity=verbosity, interactive=interactive) File "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", line 360, in send **named File "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", line 47, in robustApply return receiver(*arguments, **named) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", line 34, in update_contenttypes ct.delete() File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", line 327, in delete self._collect_sub_objects(seen_objs) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", line 319, in _collect_sub_objects for sub_obj in getattr(self, rel_opts_name).all(): File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", line 114, in __iter__ return iter(self._get_data()) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", line 482, in _get_data self._result_cache = list(self.iterator()) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", line 189, in iterator cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", line 19, in execute return self.cursor.execute(sql, params) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", line 133, in execute return Database.Cursor.execute(self, query, params) sqlite3.OperationalError: no such column: db_slug.slug On Mon, 8 Oct 2007, Mike Eggar wrote: > > OK, I built the fixtures but now I get "no such column: db_node.state" error > for prototype and main > > >> From: Lucy R Mendel >> To: Daniel Ring >> CC: dev-flock at mit.edu >> Subject: Re: [Dev-flock] New fixtures >> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >> >> to build you need ruby and a ruby json lib (debian packages: ruby; >> libjson-ruby) >> >> Prototype on the web server should be up and running soon... >> >> On Mon, 8 Oct >> 2007, Daniel Ring wrote: >> >> > ...can be built by running './build_fixtures.rb fixtures.json' in >> > src/database/db/fixtures. Beware, this takes a while. If you don't >> > have ruby or don't want to bother, download them from: >> > http://danring.net/temp/fixtures.json (~20meg) >> > >> > These are again just random-text fixtures. I'll get the >> > real-live-fake-Santa-fixtures out soon. >> > >> > Dan >> > _______________________________________________ >> > 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 > > _________________________________________________________________ > i'm making a difference. Make every IM count for the cause of your choice. > Join Now. http://im.live.com/messenger/im/home/?source=TAGHM > > From lmendel at MIT.EDU Mon Oct 8 21:13:03 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Mon, 8 Oct 2007 21:13:03 -0400 (EDT) Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: I get the same error when I runserver and try to get a page. OperationalError no such column: db_node.state /Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py in execute 19# return self.cursor.execute(sql, params) On Mon, 8 Oct 2007, Lucy R Mendel wrote: > $ ./manage.py syncdb > Creating table db_visit > Creating table db_state > Creating table db_aggregaterating > Traceback (most recent call last): > File "./manage.py", line 11, in > execute_manager(settings) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > line 264, in execute_manager > utility.execute() > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > line 215, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > line 70, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > line 84, in execute > output = self.handle(*args, **options) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > line 168, in handle > return self.handle_noargs(**options) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", > line 94, in handle_noargs > emit_post_sync_signal(created_models, verbosity, interactive) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", > line 457, in emit_post_sync_signal > verbosity=verbosity, interactive=interactive) > File > "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", > line 360, in send > **named > File > "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", > line 47, in robustApply > return receiver(*arguments, **named) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", > line 34, in update_contenttypes > ct.delete() > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", > line 327, in delete > self._collect_sub_objects(seen_objs) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", > line 319, in _collect_sub_objects > for sub_obj in getattr(self, rel_opts_name).all(): > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > line 114, in __iter__ > return iter(self._get_data()) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > line 482, in _get_data > self._result_cache = list(self.iterator()) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > line 189, in iterator > cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + > ",".join(select) + sql, params) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", > line 19, in execute > return self.cursor.execute(sql, params) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", > line 133, in execute > return Database.Cursor.execute(self, query, params) > sqlite3.OperationalError: no such column: db_slug.slug > > On Mon, 8 Oct 2007, Mike Eggar wrote: > >> >> OK, I built the fixtures but now I get "no such column: db_node.state" >> error for prototype and main >> >> >>> From: Lucy R Mendel >>> To: Daniel Ring >>> CC: dev-flock at mit.edu >>> Subject: Re: [Dev-flock] New fixtures >>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >>> >>> to build you need ruby and a ruby json lib (debian packages: ruby; >>> libjson-ruby) >>> >>> Prototype on the web server should be up and running soon... >>> >>> On Mon, 8 Oct >>> 2007, Daniel Ring wrote: >>> >>> > ...can be built by running './build_fixtures.rb fixtures.json' in >>> > src/database/db/fixtures. Beware, this takes a while. If you don't >>> > have ruby or don't want to bother, download them from: >>> > http://danring.net/temp/fixtures.json (~20meg) >>> > >>> > These are again just random-text fixtures. I'll get the >>> > real-live-fake-Santa-fixtures out soon. >>> > >>> > Dan >>> > _______________________________________________ >>> > 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 >> >> _________________________________________________________________ >> i'm making a difference. Make every IM count for the cause of your choice. >> Join Now. http://im.live.com/messenger/im/home/?source=TAGHM >> > From danring at MIT.EDU Tue Oct 9 00:11:25 2007 From: danring at MIT.EDU (Daniel Ring) Date: Tue, 09 Oct 2007 00:11:25 -0400 Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: <470AFF6D.6030005@mit.edu> Try "./manage.py reset db" Django is unable to make some column changes to existing tables - I haven't really figured out when or why this happens, but usually "reset db" works. If there's data in your database you want to keep, you can save it with "./manage dumpdata db" or something like that. (Just so you know, 'db' means our app 'db', rather than databases in general - resetting db should not reset 'auth', the user and permissions settings.) If you still get errors, send me the output as well as the output to "./manage.py sqlreset db". Dan Lucy R Mendel wrote: > I get the same error when I runserver and try to get a page. > > OperationalError > no such column: db_node.state > > /Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py > in execute > > 19# return self.cursor.execute(sql, params) > > > > On Mon, 8 Oct 2007, Lucy R Mendel wrote: > >> $ ./manage.py syncdb >> Creating table db_visit >> Creating table db_state >> Creating table db_aggregaterating >> Traceback (most recent call last): >> File "./manage.py", line 11, in >> execute_manager(settings) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> line 264, in execute_manager >> utility.execute() >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> line 215, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> line 70, in run_from_argv >> self.execute(*args, **options.__dict__) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> line 84, in execute >> output = self.handle(*args, **options) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> line 168, in handle >> return self.handle_noargs(**options) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", >> line 94, in handle_noargs >> emit_post_sync_signal(created_models, verbosity, interactive) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", >> line 457, in emit_post_sync_signal >> verbosity=verbosity, interactive=interactive) >> File >> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", >> line 360, in send >> **named >> File >> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", >> line 47, in robustApply >> return receiver(*arguments, **named) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", >> line 34, in update_contenttypes >> ct.delete() >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >> line 327, in delete >> self._collect_sub_objects(seen_objs) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >> line 319, in _collect_sub_objects >> for sub_obj in getattr(self, rel_opts_name).all(): >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> line 114, in __iter__ >> return iter(self._get_data()) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> line 482, in _get_data >> self._result_cache = list(self.iterator()) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> line 189, in iterator >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + >> ",".join(select) + sql, params) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", >> line 19, in execute >> return self.cursor.execute(sql, params) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", >> line 133, in execute >> return Database.Cursor.execute(self, query, params) >> sqlite3.OperationalError: no such column: db_slug.slug >> >> On Mon, 8 Oct 2007, Mike Eggar wrote: >> >>> >>> OK, I built the fixtures but now I get "no such column: >>> db_node.state" error for prototype and main >>> >>> >>>> From: Lucy R Mendel >>>> To: Daniel Ring >>>> CC: dev-flock at mit.edu >>>> Subject: Re: [Dev-flock] New fixtures >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >>>> >>>> to build you need ruby and a ruby json lib (debian packages: ruby; >>>> libjson-ruby) >>>> >>>> Prototype on the web server should be up and running soon... >>>> >>>> On Mon, 8 Oct >>>> 2007, Daniel Ring wrote: >>>> >>>> > ...can be built by running './build_fixtures.rb fixtures.json' in >>>> > src/database/db/fixtures. Beware, this takes a while. If you don't >>>> > have ruby or don't want to bother, download them from: >>>> > http://danring.net/temp/fixtures.json (~20meg) >>>> > >>>> > These are again just random-text fixtures. I'll get the >>>> > real-live-fake-Santa-fixtures out soon. >>>> > >>>> > Dan >>>> > _______________________________________________ >>>> > 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 >>> >>> _________________________________________________________________ >>> i'm making a difference.?Make every IM count for the cause of your >>> choice. Join Now. http://im.live.com/messenger/im/home/?source=TAGHM >>> >> > > ------------------------------------------------------------------------ > > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock From lucy at thoughtandmemory.org Tue Oct 9 09:54:44 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Tue, 9 Oct 2007 09:54:44 -0400 (EDT) Subject: [Dev-flock] r293 - in huginmunin/trunk/web/src: . database database/db middleware Message-ID: <20071009135444.EC23E75A5F@thoughtandmemory.org> middleware/SQLLogMiddleware.py had type error in timerequest, so I added a case for when self.start is None. settings is updated for server side stuff; it shouldn't effect ya'll since the media root is only for serving out of apache. fixed import path error in utils.py. However, I can't test this at work since the server site is still down unable to open database file... i hope i didn't break the build Modified: huginmunin/trunk/web/src/database/db/utils.py huginmunin/trunk/web/src/database/hm_development.db huginmunin/trunk/web/src/middleware/SQLLogMiddleware.py huginmunin/trunk/web/src/settings.py From lucy at thoughtandmemory.org Tue Oct 9 18:49:28 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Tue, 9 Oct 2007 18:49:28 -0400 (EDT) Subject: [Dev-flock] r294 - in huginmunin/trunk/web/src/web_app/Main: templates views Message-ID: <20071009224928.36FFC75A5F@thoughtandmemory.org> for http://blah/Main fixed dependence on main.html ==> node_centric.html and bug in title. Modified: huginmunin/trunk/web/src/web_app/Main/templates/node_centric.html huginmunin/trunk/web/src/web_app/Main/views/views.py From eggar at hotmail.com Tue Oct 9 18:57:43 2007 From: eggar at hotmail.com (Mike Eggar) Date: Tue, 09 Oct 2007 22:57:43 +0000 Subject: [Dev-flock] new fixture error In-Reply-To: <470AFF6D.6030005@mit.edu> Message-ID: I get a different error now... DoesNotExist at /Main/node/41/ Node matching query does not exist. Request Method: GET Request URL: http://127.0.0.1:8000/Main/node/41/ Exception Type: DoesNotExist Exception Value: Node matching query does not exist. Exception Location: C:\django\huginmunin\web\src\web_app\Main\views\views.py in node_centric, line 128 Python Executable: C:\django\Python25\python.exe Python Version: 2.5.1 Traceback (innermost last) * C:\django\huginmunin\web\src\web_app\Main\views\views.py in node_centric 121. 122. # convert to int else 123. nid = int(node_id) 124. 125. # select node; nid==0 means no node selected 126. if nid > 0: 127. node_selected = True 128. node = Node.objects.select_related(depth=2).get(id=nid) ... 129. # get all behaviors attached to node 130. dict['behaviors']=node.behaviors 131. # get parents and children 132. dict['parents']=node.parents#.select_related().filter() 133. dict['children']=node.children#.select_related().filter() 134. #dict['dimensions']=Dimension.objects.all() ▶ Local vars The output from sqlreset looks like this: BEGIN; DROP TABLE "db_tagging"; DROP TABLE "db_dimension"; DROP TABLE "db_tag"; DROP TABLE "db_article"; DROP TABLE "db_action"; DROP TABLE "db_aggregaterating"; DROP TABLE "db_behavior"; DROP TABLE "db_state"; DROP TABLE "db_edge"; DROP TABLE "db_userextended"; DROP TABLE "db_source"; DROP TABLE "db_upc"; DROP TABLE "db_argument"; DROP TABLE "db_visit"; DROP TABLE "db_citation"; DROP TABLE "db_author"; DROP TABLE "db_slug"; DROP TABLE "db_rating"; DROP TABLE "db_node"; CREATE TABLE "db_node" ( "id" integer NOT NULL PRIMARY KEY, "label" varchar(200) NOT NULL, "description" text NOT NULL, "url" varchar(200) NOT NULL, "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_rating" ( "id" integer NOT NULL PRIMARY KEY, "score" integer NOT NULL, "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), "item_id" integer unsigned NOT NULL ) ; CREATE TABLE "db_slug" ( "id" integer NOT NULL PRIMARY KEY, "slug" varchar(255) NOT NULL, "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), "item_id" integer unsigned NOT NULL ) ; CREATE TABLE "db_author" ( "id" integer NOT NULL PRIMARY KEY, "name" varchar(255) NOT NULL, "description" text NOT NULL, "url" varchar(200) NOT NULL, "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_citation" ( "id" integer NOT NULL PRIMARY KEY, "article_id" integer NOT NULL, "passage" varchar(255) NOT NULL, "argument_id" integer NOT NULL, "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_visit" ( "id" integer NOT NULL PRIMARY KEY, "path" varchar(255) NOT NULL, "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), "time" datetime NOT NULL, "duration" real NOT NULL, "sql_duration" real NOT NULL, "ip" char(15) NOT NULL, "remote_host" varchar(255) NOT NULL, "user_agent" varchar(255) NOT NULL, "referer" varchar(255) NOT NULL ) ; CREATE TABLE "db_argument" ( "id" integer NOT NULL PRIMARY KEY, "label" varchar(255) NOT NULL, "description" text NOT NULL, "sign" smallint NOT NULL, "behavior_id" integer NULL, "argument_id" integer NULL, "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_upc" ( "id" integer NOT NULL PRIMARY KEY, "upc_code" varchar(255) NOT NULL, "upc_image" varchar(100) NULL, "node_id" integer NOT NULL REFERENCES "db_node" ("id"), "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_source" ( "id" integer NOT NULL PRIMARY KEY, "name" varchar(255) NOT NULL, "description" text NOT NULL, "url" varchar(200) NOT NULL, "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_userextended" ( "id" integer NOT NULL PRIMARY KEY, "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), "name" varchar(255) NOT NULL, "level" integer NOT NULL, "feathers" real NOT NULL, "points" real NOT NULL, "status" real NOT NULL, "vote_weight" integer NULL, "eval_weight" integer NULL ) ; CREATE TABLE "db_edge" ( "id" integer NOT NULL PRIMARY KEY, "label" varchar(255) NOT NULL, "description" text NOT NULL, "url" varchar(200) NOT NULL, "src_id" integer NOT NULL REFERENCES "db_node" ("id"), "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_state" ( "id" integer NOT NULL PRIMARY KEY, "label" varchar(255) NOT NULL, "text" varchar(255) NOT NULL ) ; CREATE TABLE "db_behavior" ( "id" integer NOT NULL PRIMARY KEY, "label" varchar(255) NOT NULL, "description" text NOT NULL, "url" varchar(200) NOT NULL, "dimension_id" integer NOT NULL, "node_id" integer NOT NULL REFERENCES "db_node" ("id"), "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_aggregaterating" ( "id" integer NOT NULL PRIMARY KEY, "score" real NOT NULL, "time" datetime NOT NULL, "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), "item_id" integer unsigned NOT NULL ) ; CREATE TABLE "db_action" ( "id" integer NOT NULL PRIMARY KEY, "type" integer unsigned NOT NULL, "label" varchar(255) NOT NULL, "description" text NOT NULL, "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), "ip" char(15) NOT NULL, "time" datetime NOT NULL, "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), "item_id" integer unsigned NOT NULL ) ; CREATE TABLE "db_article" ( "id" integer NOT NULL PRIMARY KEY, "title" varchar(255) NOT NULL, "url" varchar(200) NOT NULL, "source_id" integer NOT NULL REFERENCES "db_source" ("id"), "author_id" integer NOT NULL REFERENCES "db_author" ("id"), "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_tag" ( "id" integer NOT NULL PRIMARY KEY, "tag" varchar(255) NOT NULL ) ; CREATE TABLE "db_dimension" ( "id" integer NOT NULL PRIMARY KEY, "label" varchar(255) NOT NULL, "description" text NOT NULL, "url" varchar(200) NOT NULL, "parent_id" integer NULL, "state" smallint UNSIGNED NOT NULL ) ; CREATE TABLE "db_tagging" ( "id" integer NOT NULL PRIMARY KEY, "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), "item_id" integer unsigned NOT NULL ) ; CREATE INDEX "db_rating_item_type_id" ON "db_rating" ("item_type_id"); CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); CREATE INDEX "db_citation_article_id" ON "db_citation" ("article_id"); CREATE INDEX "db_citation_argument_id" ON "db_citation" ("argument_id"); CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); CREATE INDEX "db_argument_behavior_id" ON "db_argument" ("behavior_id"); CREATE INDEX "db_argument_argument_id" ON "db_argument" ("argument_id"); CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" ("dimension_id"); CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); CREATE INDEX "db_aggregaterating_item_type_id" ON "db_aggregaterating" ("item_type_id"); CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); CREATE INDEX "db_action_item_type_id" ON "db_action" ("item_type_id"); CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); CREATE INDEX "db_dimension_parent_id" ON "db_dimension" ("parent_id"); CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" ("item_type_id"); COMMIT; > >Try "./manage.py reset db" >Django is unable to make some column changes to existing tables - I >haven't really figured out when or why this happens, but usually "reset >db" works. If there's data in your database you want to keep, you can >save it with "./manage dumpdata db" or something like that. (Just so >you know, 'db' means our app 'db', rather than databases in general - >resetting db should not reset 'auth', the user and permissions settings.) > >If you still get errors, send me the output as well as the output to >"./manage.py sqlreset db". > >Dan > >Lucy R Mendel wrote: > > I get the same error when I runserver and try to get a page. > > > > OperationalError > > no such column: db_node.state > > > > >/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py > > in execute > > > > 19# return self.cursor.execute(sql, params) > > > > > > > > On Mon, 8 Oct 2007, Lucy R Mendel wrote: > > > >> $ ./manage.py syncdb > >> Creating table db_visit > >> Creating table db_state > >> Creating table db_aggregaterating > >> Traceback (most recent call last): > >> File "./manage.py", line 11, in > >> execute_manager(settings) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > >> line 264, in execute_manager > >> utility.execute() > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > >> line 215, in execute > >> self.fetch_command(subcommand).run_from_argv(self.argv) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > >> line 70, in run_from_argv > >> self.execute(*args, **options.__dict__) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > >> line 84, in execute > >> output = self.handle(*args, **options) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > >> line 168, in handle > >> return self.handle_noargs(**options) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", > >> line 94, in handle_noargs > >> emit_post_sync_signal(created_models, verbosity, interactive) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", > >> line 457, in emit_post_sync_signal > >> verbosity=verbosity, interactive=interactive) > >> File > >> >"/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", > >> line 360, in send > >> **named > >> File > >> >"/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", > >> line 47, in robustApply > >> return receiver(*arguments, **named) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", > >> line 34, in update_contenttypes > >> ct.delete() > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", > >> line 327, in delete > >> self._collect_sub_objects(seen_objs) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", > >> line 319, in _collect_sub_objects > >> for sub_obj in getattr(self, rel_opts_name).all(): > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > >> line 114, in __iter__ > >> return iter(self._get_data()) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > >> line 482, in _get_data > >> self._result_cache = list(self.iterator()) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > >> line 189, in iterator > >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + > >> ",".join(select) + sql, params) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", > >> line 19, in execute > >> return self.cursor.execute(sql, params) > >> File > >> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", > >> line 133, in execute > >> return Database.Cursor.execute(self, query, params) > >> sqlite3.OperationalError: no such column: db_slug.slug > >> > >> On Mon, 8 Oct 2007, Mike Eggar wrote: > >> > >>> > >>> OK, I built the fixtures but now I get "no such column: > >>> db_node.state" error for prototype and main > >>> > >>> > >>>> From: Lucy R Mendel > >>>> To: Daniel Ring > >>>> CC: dev-flock at mit.edu > >>>> Subject: Re: [Dev-flock] New fixtures > >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) > >>>> > >>>> to build you need ruby and a ruby json lib (debian packages: ruby; > >>>> libjson-ruby) > >>>> > >>>> Prototype on the web server should be up and running soon... > >>>> > >>>> On Mon, 8 Oct > >>>> 2007, Daniel Ring wrote: > >>>> > >>>> > ...can be built by running './build_fixtures.rb fixtures.json' in > >>>> > src/database/db/fixtures. Beware, this takes a while. If you >don't > >>>> > have ruby or don't want to bother, download them from: > >>>> > http://danring.net/temp/fixtures.json (~20meg) > >>>> > > >>>> > These are again just random-text fixtures. I'll get the > >>>> > real-live-fake-Santa-fixtures out soon. > >>>> > > >>>> > Dan > >>>> > _______________________________________________ > >>>> > 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 > >>> > >>> _________________________________________________________________ > >>> i'm making a difference.ďż˝Make every IM count for the cause of your > >>> choice. Join Now. http://im.live.com/messenger/im/home/?source=TAGHM > >>> > >> > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Dev-flock mailing list > > Dev-flock at mit.edu > > http://mailman.mit.edu/mailman/listinfo/dev-flock _________________________________________________________________ More photos; more messages; more storage—get 5GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 From lmendel at MIT.EDU Tue Oct 9 20:58:27 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Tue, 9 Oct 2007 20:58:27 -0400 (EDT) Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: I think this is because the database is empty. Dan, can you get the santa demo data committed (or buildable)? Word! On Tue, 9 Oct 2007, Mike Eggar wrote: > I get a different error now... > > > DoesNotExist at /Main/node/41/ > Node matching query does not exist. > Request Method: GET > Request URL: http://127.0.0.1:8000/Main/node/41/ > Exception Type: DoesNotExist > Exception Value: Node matching query does not exist. > Exception Location: > C:\django\huginmunin\web\src\web_app\Main\views\views.py in node_centric, > line 128 > Python Executable: C:\django\Python25\python.exe > Python Version: 2.5.1 > Traceback (innermost last) > > > * C:\django\huginmunin\web\src\web_app\Main\views\views.py in node_centric > 121. > 122. # convert to int else > 123. nid = int(node_id) > 124. > 125. # select node; nid==0 means no node selected > 126. if nid > 0: > 127. node_selected = True > 128. node = Node.objects.select_related(depth=2).get(id=nid) ... > 129. # get all behaviors attached to node > 130. dict['behaviors']=node.behaviors > 131. # get parents and children > 132. dict['parents']=node.parents#.select_related().filter() > 133. dict['children']=node.children#.select_related().filter() > 134. #dict['dimensions']=Dimension.objects.all() > ▶ Local vars > > > The output from sqlreset looks like this: > > BEGIN; > DROP TABLE "db_tagging"; > DROP TABLE "db_dimension"; > DROP TABLE "db_tag"; > DROP TABLE "db_article"; > DROP TABLE "db_action"; > DROP TABLE "db_aggregaterating"; > DROP TABLE "db_behavior"; > DROP TABLE "db_state"; > DROP TABLE "db_edge"; > DROP TABLE "db_userextended"; > DROP TABLE "db_source"; > DROP TABLE "db_upc"; > DROP TABLE "db_argument"; > DROP TABLE "db_visit"; > DROP TABLE "db_citation"; > DROP TABLE "db_author"; > DROP TABLE "db_slug"; > DROP TABLE "db_rating"; > DROP TABLE "db_node"; > CREATE TABLE "db_node" ( > "id" integer NOT NULL PRIMARY KEY, > "label" varchar(200) NOT NULL, > "description" text NOT NULL, > "url" varchar(200) NOT NULL, > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_rating" ( > "id" integer NOT NULL PRIMARY KEY, > "score" integer NOT NULL, > "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), > "item_id" integer unsigned NOT NULL > ) > ; > CREATE TABLE "db_slug" ( > "id" integer NOT NULL PRIMARY KEY, > "slug" varchar(255) NOT NULL, > "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), > "item_id" integer unsigned NOT NULL > ) > ; > CREATE TABLE "db_author" ( > "id" integer NOT NULL PRIMARY KEY, > "name" varchar(255) NOT NULL, > "description" text NOT NULL, > "url" varchar(200) NOT NULL, > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_citation" ( > "id" integer NOT NULL PRIMARY KEY, > "article_id" integer NOT NULL, > "passage" varchar(255) NOT NULL, > "argument_id" integer NOT NULL, > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_visit" ( > "id" integer NOT NULL PRIMARY KEY, > "path" varchar(255) NOT NULL, > "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), > "time" datetime NOT NULL, > "duration" real NOT NULL, > "sql_duration" real NOT NULL, > "ip" char(15) NOT NULL, > "remote_host" varchar(255) NOT NULL, > "user_agent" varchar(255) NOT NULL, > "referer" varchar(255) NOT NULL > ) > ; > CREATE TABLE "db_argument" ( > "id" integer NOT NULL PRIMARY KEY, > "label" varchar(255) NOT NULL, > "description" text NOT NULL, > "sign" smallint NOT NULL, > "behavior_id" integer NULL, > "argument_id" integer NULL, > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_upc" ( > "id" integer NOT NULL PRIMARY KEY, > "upc_code" varchar(255) NOT NULL, > "upc_image" varchar(100) NULL, > "node_id" integer NOT NULL REFERENCES "db_node" ("id"), > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_source" ( > "id" integer NOT NULL PRIMARY KEY, > "name" varchar(255) NOT NULL, > "description" text NOT NULL, > "url" varchar(200) NOT NULL, > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_userextended" ( > "id" integer NOT NULL PRIMARY KEY, > "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), > "name" varchar(255) NOT NULL, > "level" integer NOT NULL, > "feathers" real NOT NULL, > "points" real NOT NULL, > "status" real NOT NULL, > "vote_weight" integer NULL, > "eval_weight" integer NULL > ) > ; > CREATE TABLE "db_edge" ( > "id" integer NOT NULL PRIMARY KEY, > "label" varchar(255) NOT NULL, > "description" text NOT NULL, > "url" varchar(200) NOT NULL, > "src_id" integer NOT NULL REFERENCES "db_node" ("id"), > "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_state" ( > "id" integer NOT NULL PRIMARY KEY, > "label" varchar(255) NOT NULL, > "text" varchar(255) NOT NULL > ) > ; > CREATE TABLE "db_behavior" ( > "id" integer NOT NULL PRIMARY KEY, > "label" varchar(255) NOT NULL, > "description" text NOT NULL, > "url" varchar(200) NOT NULL, > "dimension_id" integer NOT NULL, > "node_id" integer NOT NULL REFERENCES "db_node" ("id"), > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_aggregaterating" ( > "id" integer NOT NULL PRIMARY KEY, > "score" real NOT NULL, > "time" datetime NOT NULL, > "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), > "item_id" integer unsigned NOT NULL > ) > ; > CREATE TABLE "db_action" ( > "id" integer NOT NULL PRIMARY KEY, > "type" integer unsigned NOT NULL, > "label" varchar(255) NOT NULL, > "description" text NOT NULL, > "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), > "ip" char(15) NOT NULL, > "time" datetime NOT NULL, > "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), > "item_id" integer unsigned NOT NULL > ) > ; > CREATE TABLE "db_article" ( > "id" integer NOT NULL PRIMARY KEY, > "title" varchar(255) NOT NULL, > "url" varchar(200) NOT NULL, > "source_id" integer NOT NULL REFERENCES "db_source" ("id"), > "author_id" integer NOT NULL REFERENCES "db_author" ("id"), > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_tag" ( > "id" integer NOT NULL PRIMARY KEY, > "tag" varchar(255) NOT NULL > ) > ; > CREATE TABLE "db_dimension" ( > "id" integer NOT NULL PRIMARY KEY, > "label" varchar(255) NOT NULL, > "description" text NOT NULL, > "url" varchar(200) NOT NULL, > "parent_id" integer NULL, > "state" smallint UNSIGNED NOT NULL > ) > ; > CREATE TABLE "db_tagging" ( > "id" integer NOT NULL PRIMARY KEY, > "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), > "item_type_id" integer NOT NULL REFERENCES "django_content_type" ("id"), > "item_id" integer unsigned NOT NULL > ) > ; > CREATE INDEX "db_rating_item_type_id" ON "db_rating" ("item_type_id"); > CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); > CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); > CREATE INDEX "db_citation_article_id" ON "db_citation" ("article_id"); > CREATE INDEX "db_citation_argument_id" ON "db_citation" ("argument_id"); > CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); > CREATE INDEX "db_argument_behavior_id" ON "db_argument" ("behavior_id"); > CREATE INDEX "db_argument_argument_id" ON "db_argument" ("argument_id"); > CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); > CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); > CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); > CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" ("dimension_id"); > CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); > CREATE INDEX "db_aggregaterating_item_type_id" ON "db_aggregaterating" > ("item_type_id"); > CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); > CREATE INDEX "db_action_item_type_id" ON "db_action" ("item_type_id"); > CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); > CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); > CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); > CREATE INDEX "db_dimension_parent_id" ON "db_dimension" ("parent_id"); > CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); > CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" ("item_type_id"); > COMMIT; > > > > > > >> >> Try "./manage.py reset db" >> Django is unable to make some column changes to existing tables - I >> haven't really figured out when or why this happens, but usually "reset >> db" works. If there's data in your database you want to keep, you can >> save it with "./manage dumpdata db" or something like that. (Just so >> you know, 'db' means our app 'db', rather than databases in general - >> resetting db should not reset 'auth', the user and permissions settings.) >> >> If you still get errors, send me the output as well as the output to >> "./manage.py sqlreset db". >> >> Dan >> >> Lucy R Mendel wrote: >> > I get the same error when I runserver and try to get a page. >> > >> > OperationalError >> > no such column: db_node.state >> > >> > >> /Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py >> > in execute >> > >> > 19# return self.cursor.execute(sql, params) >> > >> > >> > >> > On Mon, 8 Oct 2007, Lucy R Mendel wrote: >> > >> >> $ ./manage.py syncdb >> >> Creating table db_visit >> >> Creating table db_state >> >> Creating table db_aggregaterating >> >> Traceback (most recent call last): >> >> File "./manage.py", line 11, in >> >> execute_manager(settings) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> >> line 264, in execute_manager >> >> utility.execute() >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> >> line 215, in execute >> >> self.fetch_command(subcommand).run_from_argv(self.argv) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> >> line 70, in run_from_argv >> >> self.execute(*args, **options.__dict__) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> >> line 84, in execute >> >> output = self.handle(*args, **options) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> >> line 168, in handle >> >> return self.handle_noargs(**options) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", >> >> line 94, in handle_noargs >> >> emit_post_sync_signal(created_models, verbosity, interactive) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", >> >> line 457, in emit_post_sync_signal >> >> verbosity=verbosity, interactive=interactive) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", >> >> line 360, in send >> >> **named >> >> File >> >> >> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", >> >> line 47, in robustApply >> >> return receiver(*arguments, **named) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", >> >> line 34, in update_contenttypes >> >> ct.delete() >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >> >> line 327, in delete >> >> self._collect_sub_objects(seen_objs) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >> >> line 319, in _collect_sub_objects >> >> for sub_obj in getattr(self, rel_opts_name).all(): >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> >> line 114, in __iter__ >> >> return iter(self._get_data()) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> >> line 482, in _get_data >> >> self._result_cache = list(self.iterator()) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> >> line 189, in iterator >> >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + >> >> ",".join(select) + sql, params) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", >> >> line 19, in execute >> >> return self.cursor.execute(sql, params) >> >> File >> >> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", >> >> line 133, in execute >> >> return Database.Cursor.execute(self, query, params) >> >> sqlite3.OperationalError: no such column: db_slug.slug >> >> >> >> On Mon, 8 Oct 2007, Mike Eggar wrote: >> >> >> >>> >> >>> OK, I built the fixtures but now I get "no such column: >> >>> db_node.state" error for prototype and main >> >>> >> >>> >> >>>> From: Lucy R Mendel >> >>>> To: Daniel Ring >> >>>> CC: dev-flock at mit.edu >> >>>> Subject: Re: [Dev-flock] New fixtures >> >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >> >>>> >> >>>> to build you need ruby and a ruby json lib (debian packages: ruby; >> >>>> libjson-ruby) >> >>>> >> >>>> Prototype on the web server should be up and running soon... >> >>>> >> >>>> On Mon, 8 Oct >> >>>> 2007, Daniel Ring wrote: >> >>>> >> >>>> > ...can be built by running './build_fixtures.rb fixtures.json' in >> >>>> > src/database/db/fixtures. Beware, this takes a while. If you don't >> >>>> > have ruby or don't want to bother, download them from: >> >>>> > http://danring.net/temp/fixtures.json (~20meg) >> >>>> > >> >>>> > These are again just random-text fixtures. I'll get the >> >>>> > real-live-fake-Santa-fixtures out soon. >> >>>> > >> >>>> > Dan >> >>>> > _______________________________________________ >> >>>> > 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 >> >>> >> >>> _________________________________________________________________ >> >>> i'm making a difference.ďż˝Make every IM count for the cause of your >> >>> choice. Join Now. http://im.live.com/messenger/im/home/?source=TAGHM >> >>> >> >> >> > >> > ------------------------------------------------------------------------ >> > >> > _______________________________________________ >> > Dev-flock mailing list >> > Dev-flock at mit.edu >> > http://mailman.mit.edu/mailman/listinfo/dev-flock > > _________________________________________________________________ > More photos; more messages; more storage—get 5GB with Windows Live Hotmail. > http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 > > From dan at thoughtandmemory.org Tue Oct 9 21:32:26 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Tue, 9 Oct 2007 21:32:26 -0400 (EDT) Subject: [Dev-flock] r295 - in huginmunin/trunk/web: . src/database/db/fixtures Message-ID: <20071010013226.BEAB575A5F@thoughtandmemory.org> r336 at insignificant: dan | 2007-10-08 10:18:06 -0400 Added Argument.sign to fixtures. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/fixtures/build_fixtures.rb From dan at thoughtandmemory.org Tue Oct 9 21:32:31 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Tue, 9 Oct 2007 21:32:31 -0400 (EDT) Subject: [Dev-flock] r296 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071010013231.912BD75A5F@thoughtandmemory.org> r337 at insignificant: dan | 2007-10-08 10:31:09 -0400 Fixed Model.by_user to both be more general and also work correctly! Access to UserExtended object can be achieved through User.profile, as in: assertTrue(auth.User.get(2).profile.__class__ == user.UserExtended) The profile (UserExtended) object is created the first time it is accessed. User attributes (behaviors, arguments, etc, etc) should work better now also. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/graph.py huginmunin/trunk/web/src/database/db/log.py huginmunin/trunk/web/src/database/db/rating.py huginmunin/trunk/web/src/database/db/user.py From dan at thoughtandmemory.org Tue Oct 9 21:32:38 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Tue, 9 Oct 2007 21:32:38 -0400 (EDT) Subject: [Dev-flock] r297 - in huginmunin/trunk/web: . src/database/db/fixtures Message-ID: <20071010013238.4FF3D75A5F@thoughtandmemory.org> r341 at insignificant: dan | 2007-10-09 21:19:38 -0400 Updated ct.json - nothing changed except one table was removed. Added santa.json: Note, for some reason, './manage.py loaddata database/db/fixtures/santa.json' fails with an error about a missing article. If you run the command 3 or 4 times, it should eventually succeed, and this is okay, because the fixtures have unique ids, so they will just overwrite old entries rather than adding duplicates. Added: huginmunin/trunk/web/src/database/db/fixtures/santa.json Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/fixtures/ct.json From dan at thoughtandmemory.org Tue Oct 9 21:32:45 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Tue, 9 Oct 2007 21:32:45 -0400 (EDT) Subject: [Dev-flock] r298 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071010013245.6975B75A5F@thoughtandmemory.org> r344 at insignificant: dan | 2007-10-09 21:26:36 -0400 Fixed bugs and added some missed methods/properties. No structure changes. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/citation.py huginmunin/trunk/web/src/database/db/graph.py huginmunin/trunk/web/src/database/db/models.py huginmunin/trunk/web/src/database/db/rating.py huginmunin/trunk/web/src/database/db/utils.py From dan at thoughtandmemory.org Tue Oct 9 21:32:50 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Tue, 9 Oct 2007 21:32:50 -0400 (EDT) Subject: [Dev-flock] r299 - in huginmunin/trunk/web: . src/web_app/Main src/web_app/Main/media src/web_app/Main/templates src/web_app/Main/views Message-ID: <20071010013250.44C9075A5F@thoughtandmemory.org> r345 at insignificant: dan | 2007-10-09 21:31:30 -0400 Added a method "get_argument_responses". See it in action (with the santa data) at /Main/node/34/. Also added node_list.html. See it in action at /Main/node/list/. Also made a few minor fixes. Added: huginmunin/trunk/web/src/web_app/Main/templates/node_list.html Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/templates/node_centric.html huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From danring at MIT.EDU Tue Oct 9 21:36:34 2007 From: danring at MIT.EDU (Daniel Ring) Date: Tue, 09 Oct 2007 21:36:34 -0400 Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: <470C2CA2.60700@mit.edu> Santa data is up in latest commit. It's in database/db/fixtures/santa.json. Let me know if you have any problems. Dan Lucy R Mendel wrote: > I think this is because the database is empty. > Dan, can you get the santa demo data committed (or buildable)? > Word! > > On Tue, 9 Oct 2007, Mike Eggar wrote: > >> I get a different error now... >> >> >> DoesNotExist at /Main/node/41/ >> Node matching query does not exist. >> Request Method: GET >> Request URL: http://127.0.0.1:8000/Main/node/41/ >> Exception Type: DoesNotExist >> Exception Value: Node matching query does not exist. >> Exception Location: >> C:\django\huginmunin\web\src\web_app\Main\views\views.py in >> node_centric, line 128 >> Python Executable: C:\django\Python25\python.exe >> Python Version: 2.5.1 >> Traceback (innermost last) >> >> >> * C:\django\huginmunin\web\src\web_app\Main\views\views.py in >> node_centric >> 121. >> 122. # convert to int else >> 123. nid = int(node_id) >> 124. >> 125. # select node; nid==0 means no node selected >> 126. if nid > 0: >> 127. node_selected = True >> 128. node = Node.objects.select_related(depth=2).get(id=nid) ... >> 129. # get all behaviors attached to node >> 130. dict['behaviors']=node.behaviors >> 131. # get parents and children >> 132. dict['parents']=node.parents#.select_related().filter() >> 133. dict['children']=node.children#.select_related().filter() >> 134. #dict['dimensions']=Dimension.objects.all() >> ▶ Local vars >> >> >> The output from sqlreset looks like this: >> >> BEGIN; >> DROP TABLE "db_tagging"; >> DROP TABLE "db_dimension"; >> DROP TABLE "db_tag"; >> DROP TABLE "db_article"; >> DROP TABLE "db_action"; >> DROP TABLE "db_aggregaterating"; >> DROP TABLE "db_behavior"; >> DROP TABLE "db_state"; >> DROP TABLE "db_edge"; >> DROP TABLE "db_userextended"; >> DROP TABLE "db_source"; >> DROP TABLE "db_upc"; >> DROP TABLE "db_argument"; >> DROP TABLE "db_visit"; >> DROP TABLE "db_citation"; >> DROP TABLE "db_author"; >> DROP TABLE "db_slug"; >> DROP TABLE "db_rating"; >> DROP TABLE "db_node"; >> CREATE TABLE "db_node" ( >> "id" integer NOT NULL PRIMARY KEY, >> "label" varchar(200) NOT NULL, >> "description" text NOT NULL, >> "url" varchar(200) NOT NULL, >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_rating" ( >> "id" integer NOT NULL PRIMARY KEY, >> "score" integer NOT NULL, >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> ("id"), >> "item_id" integer unsigned NOT NULL >> ) >> ; >> CREATE TABLE "db_slug" ( >> "id" integer NOT NULL PRIMARY KEY, >> "slug" varchar(255) NOT NULL, >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> ("id"), >> "item_id" integer unsigned NOT NULL >> ) >> ; >> CREATE TABLE "db_author" ( >> "id" integer NOT NULL PRIMARY KEY, >> "name" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "url" varchar(200) NOT NULL, >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_citation" ( >> "id" integer NOT NULL PRIMARY KEY, >> "article_id" integer NOT NULL, >> "passage" varchar(255) NOT NULL, >> "argument_id" integer NOT NULL, >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_visit" ( >> "id" integer NOT NULL PRIMARY KEY, >> "path" varchar(255) NOT NULL, >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >> "time" datetime NOT NULL, >> "duration" real NOT NULL, >> "sql_duration" real NOT NULL, >> "ip" char(15) NOT NULL, >> "remote_host" varchar(255) NOT NULL, >> "user_agent" varchar(255) NOT NULL, >> "referer" varchar(255) NOT NULL >> ) >> ; >> CREATE TABLE "db_argument" ( >> "id" integer NOT NULL PRIMARY KEY, >> "label" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "sign" smallint NOT NULL, >> "behavior_id" integer NULL, >> "argument_id" integer NULL, >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_upc" ( >> "id" integer NOT NULL PRIMARY KEY, >> "upc_code" varchar(255) NOT NULL, >> "upc_image" varchar(100) NULL, >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_source" ( >> "id" integer NOT NULL PRIMARY KEY, >> "name" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "url" varchar(200) NOT NULL, >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_userextended" ( >> "id" integer NOT NULL PRIMARY KEY, >> "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), >> "name" varchar(255) NOT NULL, >> "level" integer NOT NULL, >> "feathers" real NOT NULL, >> "points" real NOT NULL, >> "status" real NOT NULL, >> "vote_weight" integer NULL, >> "eval_weight" integer NULL >> ) >> ; >> CREATE TABLE "db_edge" ( >> "id" integer NOT NULL PRIMARY KEY, >> "label" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "url" varchar(200) NOT NULL, >> "src_id" integer NOT NULL REFERENCES "db_node" ("id"), >> "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_state" ( >> "id" integer NOT NULL PRIMARY KEY, >> "label" varchar(255) NOT NULL, >> "text" varchar(255) NOT NULL >> ) >> ; >> CREATE TABLE "db_behavior" ( >> "id" integer NOT NULL PRIMARY KEY, >> "label" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "url" varchar(200) NOT NULL, >> "dimension_id" integer NOT NULL, >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_aggregaterating" ( >> "id" integer NOT NULL PRIMARY KEY, >> "score" real NOT NULL, >> "time" datetime NOT NULL, >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> ("id"), >> "item_id" integer unsigned NOT NULL >> ) >> ; >> CREATE TABLE "db_action" ( >> "id" integer NOT NULL PRIMARY KEY, >> "type" integer unsigned NOT NULL, >> "label" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >> "ip" char(15) NOT NULL, >> "time" datetime NOT NULL, >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> ("id"), >> "item_id" integer unsigned NOT NULL >> ) >> ; >> CREATE TABLE "db_article" ( >> "id" integer NOT NULL PRIMARY KEY, >> "title" varchar(255) NOT NULL, >> "url" varchar(200) NOT NULL, >> "source_id" integer NOT NULL REFERENCES "db_source" ("id"), >> "author_id" integer NOT NULL REFERENCES "db_author" ("id"), >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_tag" ( >> "id" integer NOT NULL PRIMARY KEY, >> "tag" varchar(255) NOT NULL >> ) >> ; >> CREATE TABLE "db_dimension" ( >> "id" integer NOT NULL PRIMARY KEY, >> "label" varchar(255) NOT NULL, >> "description" text NOT NULL, >> "url" varchar(200) NOT NULL, >> "parent_id" integer NULL, >> "state" smallint UNSIGNED NOT NULL >> ) >> ; >> CREATE TABLE "db_tagging" ( >> "id" integer NOT NULL PRIMARY KEY, >> "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> ("id"), >> "item_id" integer unsigned NOT NULL >> ) >> ; >> CREATE INDEX "db_rating_item_type_id" ON "db_rating" ("item_type_id"); >> CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); >> CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); >> CREATE INDEX "db_citation_article_id" ON "db_citation" ("article_id"); >> CREATE INDEX "db_citation_argument_id" ON "db_citation" ("argument_id"); >> CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); >> CREATE INDEX "db_argument_behavior_id" ON "db_argument" ("behavior_id"); >> CREATE INDEX "db_argument_argument_id" ON "db_argument" ("argument_id"); >> CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); >> CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); >> CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); >> CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" >> ("dimension_id"); >> CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); >> CREATE INDEX "db_aggregaterating_item_type_id" ON "db_aggregaterating" >> ("item_type_id"); >> CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); >> CREATE INDEX "db_action_item_type_id" ON "db_action" ("item_type_id"); >> CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); >> CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); >> CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); >> CREATE INDEX "db_dimension_parent_id" ON "db_dimension" ("parent_id"); >> CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); >> CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" ("item_type_id"); >> COMMIT; >> >> >> >> >> >> >>> >>> Try "./manage.py reset db" >>> Django is unable to make some column changes to existing tables - I >>> haven't really figured out when or why this happens, but usually "reset >>> db" works. If there's data in your database you want to keep, you can >>> save it with "./manage dumpdata db" or something like that. (Just so >>> you know, 'db' means our app 'db', rather than databases in general - >>> resetting db should not reset 'auth', the user and permissions >>> settings.) >>> >>> If you still get errors, send me the output as well as the output to >>> "./manage.py sqlreset db". >>> >>> Dan >>> >>> Lucy R Mendel wrote: >>> > I get the same error when I runserver and try to get a page. >>> > >>> > OperationalError >>> > no such column: db_node.state >>> > >>> > >>> /Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py >>> >>> > in execute >>> > >>> > 19# return self.cursor.execute(sql, params) >>> > >>> > >>> > >>> > On Mon, 8 Oct 2007, Lucy R Mendel wrote: >>> > >>> >> $ ./manage.py syncdb >>> >> Creating table db_visit >>> >> Creating table db_state >>> >> Creating table db_aggregaterating >>> >> Traceback (most recent call last): >>> >> File "./manage.py", line 11, in >>> >> execute_manager(settings) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >>> >>> >> line 264, in execute_manager >>> >> utility.execute() >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >>> >>> >> line 215, in execute >>> >> self.fetch_command(subcommand).run_from_argv(self.argv) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>> >>> >> line 70, in run_from_argv >>> >> self.execute(*args, **options.__dict__) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>> >>> >> line 84, in execute >>> >> output = self.handle(*args, **options) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>> >>> >> line 168, in handle >>> >> return self.handle_noargs(**options) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", >>> >>> >> line 94, in handle_noargs >>> >> emit_post_sync_signal(created_models, verbosity, interactive) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", >>> >>> >> line 457, in emit_post_sync_signal >>> >> verbosity=verbosity, interactive=interactive) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", >>> >>> >> line 360, in send >>> >> **named >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", >>> >>> >> line 47, in robustApply >>> >> return receiver(*arguments, **named) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", >>> >>> >> line 34, in update_contenttypes >>> >> ct.delete() >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >>> >>> >> line 327, in delete >>> >> self._collect_sub_objects(seen_objs) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >>> >>> >> line 319, in _collect_sub_objects >>> >> for sub_obj in getattr(self, rel_opts_name).all(): >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>> >>> >> line 114, in __iter__ >>> >> return iter(self._get_data()) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>> >>> >> line 482, in _get_data >>> >> self._result_cache = list(self.iterator()) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>> >>> >> line 189, in iterator >>> >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or >>> "") + >>> >> ",".join(select) + sql, params) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", >>> >>> >> line 19, in execute >>> >> return self.cursor.execute(sql, params) >>> >> File >>> >> >>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", >>> >>> >> line 133, in execute >>> >> return Database.Cursor.execute(self, query, params) >>> >> sqlite3.OperationalError: no such column: db_slug.slug >>> >> >>> >> On Mon, 8 Oct 2007, Mike Eggar wrote: >>> >> >>> >>> >>> >>> OK, I built the fixtures but now I get "no such column: >>> >>> db_node.state" error for prototype and main >>> >>> >>> >>> >>> >>>> From: Lucy R Mendel >>> >>>> To: Daniel Ring >>> >>>> CC: dev-flock at mit.edu >>> >>>> Subject: Re: [Dev-flock] New fixtures >>> >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >>> >>>> >>> >>>> to build you need ruby and a ruby json lib (debian packages: ruby; >>> >>>> libjson-ruby) >>> >>>> >>> >>>> Prototype on the web server should be up and running soon... >>> >>>> >>> >>>> On Mon, 8 Oct >>> >>>> 2007, Daniel Ring wrote: >>> >>>> >>> >>>> > ...can be built by running './build_fixtures.rb fixtures.json' in >>> >>>> > src/database/db/fixtures. Beware, this takes a while. If you >>> don't >>> >>>> > have ruby or don't want to bother, download them from: >>> >>>> > http://danring.net/temp/fixtures.json (~20meg) >>> >>>> > >>> >>>> > These are again just random-text fixtures. I'll get the >>> >>>> > real-live-fake-Santa-fixtures out soon. >>> >>>> > >>> >>>> > Dan >>> >>>> > _______________________________________________ >>> >>>> > 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 >>> >>> >>> >>> _________________________________________________________________ >>> >>> i'm making a difference.?Make every IM count for the cause of your >>> >>> choice. Join Now. http://im.live.com/messenger/im/home/?source=TAGHM >>> >>> >>> >> >>> > >>> > >>> ------------------------------------------------------------------------ >>> > >>> > _______________________________________________ >>> > Dev-flock mailing list >>> > Dev-flock at mit.edu >>> > http://mailman.mit.edu/mailman/listinfo/dev-flock >> >> _________________________________________________________________ >> More photos; more messages; more storage?get 5GB with Windows Live >> Hotmail. >> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 >> >> >> From eggar at hotmail.com Tue Oct 9 22:01:38 2007 From: eggar at hotmail.com (Mike Eggar) Date: Wed, 10 Oct 2007 02:01:38 +0000 Subject: [Dev-flock] new fixture error In-Reply-To: <470C2CA2.60700@mit.edu> Message-ID: build_fixtures with santa.json is giving me some errors, "'gen_pfk_for_row' : Invalid information for behaviorargumentlink (runtime error) " > >Santa data is up in latest commit. It's in >database/db/fixtures/santa.json. Let me know if you have any problems. > >Dan > >Lucy R Mendel wrote: > > I think this is because the database is empty. > > Dan, can you get the santa demo data committed (or buildable)? > > Word! > > > > On Tue, 9 Oct 2007, Mike Eggar wrote: > > > >> I get a different error now... > >> > >> > >> DoesNotExist at /Main/node/41/ > >> Node matching query does not exist. > >> Request Method: GET > >> Request URL: http://127.0.0.1:8000/Main/node/41/ > >> Exception Type: DoesNotExist > >> Exception Value: Node matching query does not exist. > >> Exception Location: > >> C:\django\huginmunin\web\src\web_app\Main\views\views.py in > >> node_centric, line 128 > >> Python Executable: C:\django\Python25\python.exe > >> Python Version: 2.5.1 > >> Traceback (innermost last) > >> > >> > >> * C:\django\huginmunin\web\src\web_app\Main\views\views.py in > >> node_centric > >> 121. > >> 122. # convert to int else > >> 123. nid = int(node_id) > >> 124. > >> 125. # select node; nid==0 means no node selected > >> 126. if nid > 0: > >> 127. node_selected = True > >> 128. node = Node.objects.select_related(depth=2).get(id=nid) ... > >> 129. # get all behaviors attached to node > >> 130. dict['behaviors']=node.behaviors > >> 131. # get parents and children > >> 132. dict['parents']=node.parents#.select_related().filter() > >> 133. dict['children']=node.children#.select_related().filter() > >> 134. #dict['dimensions']=Dimension.objects.all() > >> ˘ş Local vars > >> > >> > >> The output from sqlreset looks like this: > >> > >> BEGIN; > >> DROP TABLE "db_tagging"; > >> DROP TABLE "db_dimension"; > >> DROP TABLE "db_tag"; > >> DROP TABLE "db_article"; > >> DROP TABLE "db_action"; > >> DROP TABLE "db_aggregaterating"; > >> DROP TABLE "db_behavior"; > >> DROP TABLE "db_state"; > >> DROP TABLE "db_edge"; > >> DROP TABLE "db_userextended"; > >> DROP TABLE "db_source"; > >> DROP TABLE "db_upc"; > >> DROP TABLE "db_argument"; > >> DROP TABLE "db_visit"; > >> DROP TABLE "db_citation"; > >> DROP TABLE "db_author"; > >> DROP TABLE "db_slug"; > >> DROP TABLE "db_rating"; > >> DROP TABLE "db_node"; > >> CREATE TABLE "db_node" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "label" varchar(200) NOT NULL, > >> "description" text NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_rating" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "score" integer NOT NULL, > >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" > >> ("id"), > >> "item_id" integer unsigned NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_slug" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "slug" varchar(255) NOT NULL, > >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" > >> ("id"), > >> "item_id" integer unsigned NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_author" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "name" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_citation" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "article_id" integer NOT NULL, > >> "passage" varchar(255) NOT NULL, > >> "argument_id" integer NOT NULL, > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_visit" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "path" varchar(255) NOT NULL, > >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), > >> "time" datetime NOT NULL, > >> "duration" real NOT NULL, > >> "sql_duration" real NOT NULL, > >> "ip" char(15) NOT NULL, > >> "remote_host" varchar(255) NOT NULL, > >> "user_agent" varchar(255) NOT NULL, > >> "referer" varchar(255) NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_argument" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "label" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "sign" smallint NOT NULL, > >> "behavior_id" integer NULL, > >> "argument_id" integer NULL, > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_upc" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "upc_code" varchar(255) NOT NULL, > >> "upc_image" varchar(100) NULL, > >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_source" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "name" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_userextended" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), > >> "name" varchar(255) NOT NULL, > >> "level" integer NOT NULL, > >> "feathers" real NOT NULL, > >> "points" real NOT NULL, > >> "status" real NOT NULL, > >> "vote_weight" integer NULL, > >> "eval_weight" integer NULL > >> ) > >> ; > >> CREATE TABLE "db_edge" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "label" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "src_id" integer NOT NULL REFERENCES "db_node" ("id"), > >> "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_state" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "label" varchar(255) NOT NULL, > >> "text" varchar(255) NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_behavior" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "label" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "dimension_id" integer NOT NULL, > >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_aggregaterating" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "score" real NOT NULL, > >> "time" datetime NOT NULL, > >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" > >> ("id"), > >> "item_id" integer unsigned NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_action" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "type" integer unsigned NOT NULL, > >> "label" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), > >> "ip" char(15) NOT NULL, > >> "time" datetime NOT NULL, > >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" > >> ("id"), > >> "item_id" integer unsigned NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_article" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "title" varchar(255) NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "source_id" integer NOT NULL REFERENCES "db_source" ("id"), > >> "author_id" integer NOT NULL REFERENCES "db_author" ("id"), > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_tag" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "tag" varchar(255) NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_dimension" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "label" varchar(255) NOT NULL, > >> "description" text NOT NULL, > >> "url" varchar(200) NOT NULL, > >> "parent_id" integer NULL, > >> "state" smallint UNSIGNED NOT NULL > >> ) > >> ; > >> CREATE TABLE "db_tagging" ( > >> "id" integer NOT NULL PRIMARY KEY, > >> "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), > >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" > >> ("id"), > >> "item_id" integer unsigned NOT NULL > >> ) > >> ; > >> CREATE INDEX "db_rating_item_type_id" ON "db_rating" ("item_type_id"); > >> CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); > >> CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); > >> CREATE INDEX "db_citation_article_id" ON "db_citation" ("article_id"); > >> CREATE INDEX "db_citation_argument_id" ON "db_citation" >("argument_id"); > >> CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); > >> CREATE INDEX "db_argument_behavior_id" ON "db_argument" >("behavior_id"); > >> CREATE INDEX "db_argument_argument_id" ON "db_argument" >("argument_id"); > >> CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); > >> CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); > >> CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); > >> CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" > >> ("dimension_id"); > >> CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); > >> CREATE INDEX "db_aggregaterating_item_type_id" ON "db_aggregaterating" > >> ("item_type_id"); > >> CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); > >> CREATE INDEX "db_action_item_type_id" ON "db_action" ("item_type_id"); > >> CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); > >> CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); > >> CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); > >> CREATE INDEX "db_dimension_parent_id" ON "db_dimension" ("parent_id"); > >> CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); > >> CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" >("item_type_id"); > >> COMMIT; > >> > >> > >> > >> > >> > >> > >>> > >>> Try "./manage.py reset db" > >>> Django is unable to make some column changes to existing tables - I > >>> haven't really figured out when or why this happens, but usually >"reset > >>> db" works. If there's data in your database you want to keep, you can > >>> save it with "./manage dumpdata db" or something like that. (Just so > >>> you know, 'db' means our app 'db', rather than databases in general - > >>> resetting db should not reset 'auth', the user and permissions > >>> settings.) > >>> > >>> If you still get errors, send me the output as well as the output to > >>> "./manage.py sqlreset db". > >>> > >>> Dan > >>> > >>> Lucy R Mendel wrote: > >>> > I get the same error when I runserver and try to get a page. > >>> > > >>> > OperationalError > >>> > no such column: db_node.state > >>> > > >>> > > >>> >/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py > >>> > >>> > in execute > >>> > > >>> > 19# return self.cursor.execute(sql, params) > >>> > > >>> > > >>> > > >>> > On Mon, 8 Oct 2007, Lucy R Mendel wrote: > >>> > > >>> >> $ ./manage.py syncdb > >>> >> Creating table db_visit > >>> >> Creating table db_state > >>> >> Creating table db_aggregaterating > >>> >> Traceback (most recent call last): > >>> >> File "./manage.py", line 11, in > >>> >> execute_manager(settings) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > >>> > >>> >> line 264, in execute_manager > >>> >> utility.execute() > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > >>> > >>> >> line 215, in execute > >>> >> self.fetch_command(subcommand).run_from_argv(self.argv) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > >>> > >>> >> line 70, in run_from_argv > >>> >> self.execute(*args, **options.__dict__) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > >>> > >>> >> line 84, in execute > >>> >> output = self.handle(*args, **options) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > >>> > >>> >> line 168, in handle > >>> >> return self.handle_noargs(**options) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", > >>> > >>> >> line 94, in handle_noargs > >>> >> emit_post_sync_signal(created_models, verbosity, interactive) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", > >>> > >>> >> line 457, in emit_post_sync_signal > >>> >> verbosity=verbosity, interactive=interactive) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", > >>> > >>> >> line 360, in send > >>> >> **named > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", > >>> > >>> >> line 47, in robustApply > >>> >> return receiver(*arguments, **named) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", > >>> > >>> >> line 34, in update_contenttypes > >>> >> ct.delete() > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", > >>> > >>> >> line 327, in delete > >>> >> self._collect_sub_objects(seen_objs) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", > >>> > >>> >> line 319, in _collect_sub_objects > >>> >> for sub_obj in getattr(self, rel_opts_name).all(): > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > >>> > >>> >> line 114, in __iter__ > >>> >> return iter(self._get_data()) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > >>> > >>> >> line 482, in _get_data > >>> >> self._result_cache = list(self.iterator()) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", > >>> > >>> >> line 189, in iterator > >>> >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or > >>> "") + > >>> >> ",".join(select) + sql, params) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", > >>> > >>> >> line 19, in execute > >>> >> return self.cursor.execute(sql, params) > >>> >> File > >>> >> > >>> >"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", > >>> > >>> >> line 133, in execute > >>> >> return Database.Cursor.execute(self, query, params) > >>> >> sqlite3.OperationalError: no such column: db_slug.slug > >>> >> > >>> >> On Mon, 8 Oct 2007, Mike Eggar wrote: > >>> >> > >>> >>> > >>> >>> OK, I built the fixtures but now I get "no such column: > >>> >>> db_node.state" error for prototype and main > >>> >>> > >>> >>> > >>> >>>> From: Lucy R Mendel > >>> >>>> To: Daniel Ring > >>> >>>> CC: dev-flock at mit.edu > >>> >>>> Subject: Re: [Dev-flock] New fixtures > >>> >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) > >>> >>>> > >>> >>>> to build you need ruby and a ruby json lib (debian packages: >ruby; > >>> >>>> libjson-ruby) > >>> >>>> > >>> >>>> Prototype on the web server should be up and running soon... > >>> >>>> > >>> >>>> On Mon, 8 Oct > >>> >>>> 2007, Daniel Ring wrote: > >>> >>>> > >>> >>>> > ...can be built by running './build_fixtures.rb fixtures.json' >in > >>> >>>> > src/database/db/fixtures. Beware, this takes a while. If you > >>> don't > >>> >>>> > have ruby or don't want to bother, download them from: > >>> >>>> > http://danring.net/temp/fixtures.json (~20meg) > >>> >>>> > > >>> >>>> > These are again just random-text fixtures. I'll get the > >>> >>>> > real-live-fake-Santa-fixtures out soon. > >>> >>>> > > >>> >>>> > Dan > >>> >>>> > _______________________________________________ > >>> >>>> > 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 > >>> >>> > >>> >>> _________________________________________________________________ > >>> >>> i'm making a difference.?Make every IM count for the cause of your > >>> >>> choice. Join Now. >http://im.live.com/messenger/im/home/?source=TAGHM > >>> >>> > >>> >> > >>> > > >>> > > >>> >------------------------------------------------------------------------ > >>> > > >>> > _______________________________________________ > >>> > Dev-flock mailing list > >>> > Dev-flock at mit.edu > >>> > http://mailman.mit.edu/mailman/listinfo/dev-flock > >> > >> _________________________________________________________________ > >> More photos; more messages; more storage?get 5GB with Windows Live > >> Hotmail. > >> >http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 > >> > >> > >> _________________________________________________________________ Help yourself to FREE treats served up daily at the Messenger Café. Stop by today! http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline From lmendel at MIT.EDU Tue Oct 9 22:58:31 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Tue, 9 Oct 2007 22:58:31 -0400 (EDT) Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: I think you just need to loaddata: lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src $ ./manage.py loaddata database/db/fixtures/santa.json but I get this error: Loading 'database/db/fixtures/santa' fixtures... Installing json fixture 'database/db/fixtures/santa' from absolute path. Problem installing fixture 'database/db/fixtures/santa.json': Article matching query does not exist. after doing a reset and sync first. On Wed, 10 Oct 2007, Mike Eggar wrote: > > build_fixtures with santa.json is giving me some errors, > "'gen_pfk_for_row' : Invalid information for behaviorargumentlink (runtime > error) " > > >> >> Santa data is up in latest commit. It's in >> database/db/fixtures/santa.json. Let me know if you have any problems. >> >> Dan >> >> Lucy R Mendel wrote: >> > I think this is because the database is empty. >> > Dan, can you get the santa demo data committed (or buildable)? >> > Word! >> > >> > On Tue, 9 Oct 2007, Mike Eggar wrote: >> > >> >> I get a different error now... >> >> >> >> >> >> DoesNotExist at /Main/node/41/ >> >> Node matching query does not exist. >> >> Request Method: GET >> >> Request URL: http://127.0.0.1:8000/Main/node/41/ >> >> Exception Type: DoesNotExist >> >> Exception Value: Node matching query does not exist. >> >> Exception Location: >> >> C:\django\huginmunin\web\src\web_app\Main\views\views.py in >> >> node_centric, line 128 >> >> Python Executable: C:\django\Python25\python.exe >> >> Python Version: 2.5.1 >> >> Traceback (innermost last) >> >> >> >> >> >> * C:\django\huginmunin\web\src\web_app\Main\views\views.py in >> >> node_centric >> >> 121. >> >> 122. # convert to int else >> >> 123. nid = int(node_id) >> >> 124. >> >> 125. # select node; nid==0 means no node selected >> >> 126. if nid > 0: >> >> 127. node_selected = True >> >> 128. node = Node.objects.select_related(depth=2).get(id=nid) ... >> >> 129. # get all behaviors attached to node >> >> 130. dict['behaviors']=node.behaviors >> >> 131. # get parents and children >> >> 132. dict['parents']=node.parents#.select_related().filter() >> >> 133. dict['children']=node.children#.select_related().filter() >> >> 134. #dict['dimensions']=Dimension.objects.all() >> >> ˘ş Local vars >> >> >> >> >> >> The output from sqlreset looks like this: >> >> >> >> BEGIN; >> >> DROP TABLE "db_tagging"; >> >> DROP TABLE "db_dimension"; >> >> DROP TABLE "db_tag"; >> >> DROP TABLE "db_article"; >> >> DROP TABLE "db_action"; >> >> DROP TABLE "db_aggregaterating"; >> >> DROP TABLE "db_behavior"; >> >> DROP TABLE "db_state"; >> >> DROP TABLE "db_edge"; >> >> DROP TABLE "db_userextended"; >> >> DROP TABLE "db_source"; >> >> DROP TABLE "db_upc"; >> >> DROP TABLE "db_argument"; >> >> DROP TABLE "db_visit"; >> >> DROP TABLE "db_citation"; >> >> DROP TABLE "db_author"; >> >> DROP TABLE "db_slug"; >> >> DROP TABLE "db_rating"; >> >> DROP TABLE "db_node"; >> >> CREATE TABLE "db_node" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "label" varchar(200) NOT NULL, >> >> "description" text NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_rating" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "score" integer NOT NULL, >> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> >> ("id"), >> >> "item_id" integer unsigned NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_slug" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "slug" varchar(255) NOT NULL, >> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> >> ("id"), >> >> "item_id" integer unsigned NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_author" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "name" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_citation" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "article_id" integer NOT NULL, >> >> "passage" varchar(255) NOT NULL, >> >> "argument_id" integer NOT NULL, >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_visit" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "path" varchar(255) NOT NULL, >> >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >> >> "time" datetime NOT NULL, >> >> "duration" real NOT NULL, >> >> "sql_duration" real NOT NULL, >> >> "ip" char(15) NOT NULL, >> >> "remote_host" varchar(255) NOT NULL, >> >> "user_agent" varchar(255) NOT NULL, >> >> "referer" varchar(255) NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_argument" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "label" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "sign" smallint NOT NULL, >> >> "behavior_id" integer NULL, >> >> "argument_id" integer NULL, >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_upc" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "upc_code" varchar(255) NOT NULL, >> >> "upc_image" varchar(100) NULL, >> >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_source" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "name" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_userextended" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), >> >> "name" varchar(255) NOT NULL, >> >> "level" integer NOT NULL, >> >> "feathers" real NOT NULL, >> >> "points" real NOT NULL, >> >> "status" real NOT NULL, >> >> "vote_weight" integer NULL, >> >> "eval_weight" integer NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_edge" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "label" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "src_id" integer NOT NULL REFERENCES "db_node" ("id"), >> >> "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_state" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "label" varchar(255) NOT NULL, >> >> "text" varchar(255) NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_behavior" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "label" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "dimension_id" integer NOT NULL, >> >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_aggregaterating" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "score" real NOT NULL, >> >> "time" datetime NOT NULL, >> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> >> ("id"), >> >> "item_id" integer unsigned NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_action" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "type" integer unsigned NOT NULL, >> >> "label" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >> >> "ip" char(15) NOT NULL, >> >> "time" datetime NOT NULL, >> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> >> ("id"), >> >> "item_id" integer unsigned NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_article" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "title" varchar(255) NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "source_id" integer NOT NULL REFERENCES "db_source" ("id"), >> >> "author_id" integer NOT NULL REFERENCES "db_author" ("id"), >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_tag" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "tag" varchar(255) NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_dimension" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "label" varchar(255) NOT NULL, >> >> "description" text NOT NULL, >> >> "url" varchar(200) NOT NULL, >> >> "parent_id" integer NULL, >> >> "state" smallint UNSIGNED NOT NULL >> >> ) >> >> ; >> >> CREATE TABLE "db_tagging" ( >> >> "id" integer NOT NULL PRIMARY KEY, >> >> "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), >> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >> >> ("id"), >> >> "item_id" integer unsigned NOT NULL >> >> ) >> >> ; >> >> CREATE INDEX "db_rating_item_type_id" ON "db_rating" ("item_type_id"); >> >> CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); >> >> CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); >> >> CREATE INDEX "db_citation_article_id" ON "db_citation" ("article_id"); >> >> CREATE INDEX "db_citation_argument_id" ON "db_citation" ("argument_id"); >> >> CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); >> >> CREATE INDEX "db_argument_behavior_id" ON "db_argument" ("behavior_id"); >> >> CREATE INDEX "db_argument_argument_id" ON "db_argument" ("argument_id"); >> >> CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); >> >> CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); >> >> CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); >> >> CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" >> >> ("dimension_id"); >> >> CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); >> >> CREATE INDEX "db_aggregaterating_item_type_id" ON "db_aggregaterating" >> >> ("item_type_id"); >> >> CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); >> >> CREATE INDEX "db_action_item_type_id" ON "db_action" ("item_type_id"); >> >> CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); >> >> CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); >> >> CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); >> >> CREATE INDEX "db_dimension_parent_id" ON "db_dimension" ("parent_id"); >> >> CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); >> >> CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" ("item_type_id"); >> >> COMMIT; >> >> >> >> >> >> >> >> >> >> >> >> >> >>> >> >>> Try "./manage.py reset db" >> >>> Django is unable to make some column changes to existing tables - I >> >>> haven't really figured out when or why this happens, but usually "reset >> >>> db" works. If there's data in your database you want to keep, you can >> >>> save it with "./manage dumpdata db" or something like that. (Just so >> >>> you know, 'db' means our app 'db', rather than databases in general - >> >>> resetting db should not reset 'auth', the user and permissions >> >>> settings.) >> >>> >> >>> If you still get errors, send me the output as well as the output to >> >>> "./manage.py sqlreset db". >> >>> >> >>> Dan >> >>> >> >>> Lucy R Mendel wrote: >> >>> > I get the same error when I runserver and try to get a page. >> >>> > >> >>> > OperationalError >> >>> > no such column: db_node.state >> >>> > >> >>> > >> >>> >> /Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py >> >>> >> >>> > in execute >> >>> > >> >>> > 19# return self.cursor.execute(sql, params) >> >>> > >> >>> > >> >>> > >> >>> > On Mon, 8 Oct 2007, Lucy R Mendel wrote: >> >>> > >> >>> >> $ ./manage.py syncdb >> >>> >> Creating table db_visit >> >>> >> Creating table db_state >> >>> >> Creating table db_aggregaterating >> >>> >> Traceback (most recent call last): >> >>> >> File "./manage.py", line 11, in >> >>> >> execute_manager(settings) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> >>> >> >>> >> line 264, in execute_manager >> >>> >> utility.execute() >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> >>> >> >>> >> line 215, in execute >> >>> >> self.fetch_command(subcommand).run_from_argv(self.argv) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> >>> >> >>> >> line 70, in run_from_argv >> >>> >> self.execute(*args, **options.__dict__) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> >>> >> >>> >> line 84, in execute >> >>> >> output = self.handle(*args, **options) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> >>> >> >>> >> line 168, in handle >> >>> >> return self.handle_noargs(**options) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", >> >>> >> >>> >> line 94, in handle_noargs >> >>> >> emit_post_sync_signal(created_models, verbosity, interactive) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", >> >>> >> >>> >> line 457, in emit_post_sync_signal >> >>> >> verbosity=verbosity, interactive=interactive) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", >> >>> >> >>> >> line 360, in send >> >>> >> **named >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", >> >>> >> >>> >> line 47, in robustApply >> >>> >> return receiver(*arguments, **named) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", >> >>> >> >>> >> line 34, in update_contenttypes >> >>> >> ct.delete() >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >> >>> >> >>> >> line 327, in delete >> >>> >> self._collect_sub_objects(seen_objs) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >> >>> >> >>> >> line 319, in _collect_sub_objects >> >>> >> for sub_obj in getattr(self, rel_opts_name).all(): >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> >>> >> >>> >> line 114, in __iter__ >> >>> >> return iter(self._get_data()) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> >>> >> >>> >> line 482, in _get_data >> >>> >> self._result_cache = list(self.iterator()) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >> >>> >> >>> >> line 189, in iterator >> >>> >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or >> >>> "") + >> >>> >> ",".join(select) + sql, params) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", >> >>> >> >>> >> line 19, in execute >> >>> >> return self.cursor.execute(sql, params) >> >>> >> File >> >>> >> >> >>> >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", >> >>> >> >>> >> line 133, in execute >> >>> >> return Database.Cursor.execute(self, query, params) >> >>> >> sqlite3.OperationalError: no such column: db_slug.slug >> >>> >> >> >>> >> On Mon, 8 Oct 2007, Mike Eggar wrote: >> >>> >> >> >>> >>> >> >>> >>> OK, I built the fixtures but now I get "no such column: >> >>> >>> db_node.state" error for prototype and main >> >>> >>> >> >>> >>> >> >>> >>>> From: Lucy R Mendel >> >>> >>>> To: Daniel Ring >> >>> >>>> CC: dev-flock at mit.edu >> >>> >>>> Subject: Re: [Dev-flock] New fixtures >> >>> >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >> >>> >>>> >> >>> >>>> to build you need ruby and a ruby json lib (debian packages: ruby; >> >>> >>>> libjson-ruby) >> >>> >>>> >> >>> >>>> Prototype on the web server should be up and running soon... >> >>> >>>> >> >>> >>>> On Mon, 8 Oct >> >>> >>>> 2007, Daniel Ring wrote: >> >>> >>>> >> >>> >>>> > ...can be built by running './build_fixtures.rb fixtures.json' >> in >> >>> >>>> > src/database/db/fixtures. Beware, this takes a while. If you >> >>> don't >> >>> >>>> > have ruby or don't want to bother, download them from: >> >>> >>>> > http://danring.net/temp/fixtures.json (~20meg) >> >>> >>>> > >> >>> >>>> > These are again just random-text fixtures. I'll get the >> >>> >>>> > real-live-fake-Santa-fixtures out soon. >> >>> >>>> > >> >>> >>>> > Dan >> >>> >>>> > _______________________________________________ >> >>> >>>> > 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 >> >>> >>> >> >>> >>> _________________________________________________________________ >> >>> >>> i'm making a difference.?Make every IM count for the cause of your >> >>> >>> choice. Join Now. >> http://im.live.com/messenger/im/home/?source=TAGHM >> >>> >>> >> >>> >> >> >>> > >> >>> > >> >>> >> ------------------------------------------------------------------------ >> >>> > >> >>> > _______________________________________________ >> >>> > Dev-flock mailing list >> >>> > Dev-flock at mit.edu >> >>> > http://mailman.mit.edu/mailman/listinfo/dev-flock >> >> >> >> _________________________________________________________________ >> >> More photos; more messages; more storage?get 5GB with Windows Live >> >> Hotmail. >> >> >> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 >> >> >> >> >> >> > > _________________________________________________________________ > Help yourself to FREE treats served up daily at the Messenger Café. Stop by > today! > http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline > > From eggar at hotmail.com Tue Oct 9 23:11:35 2007 From: eggar at hotmail.com (Mike Eggar) Date: Wed, 10 Oct 2007 03:11:35 +0000 Subject: [Dev-flock] new fixture error In-Reply-To: Message-ID: I get something similar, Installing json fixture 'database/db/fixtures/santa' from absolute path. Problem installing fixture 'database/db/fixtures/santa.json': on_create() takes exactly 5 non-keyword arguments (4 given) > >I think you just need to loaddata: > > lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src > $ ./manage.py loaddata database/db/fixtures/santa.json > >but I get this error: > > Loading 'database/db/fixtures/santa' fixtures... > Installing json fixture 'database/db/fixtures/santa' from absolute path. > Problem installing fixture 'database/db/fixtures/santa.json': Article >matching query does not exist. > >after doing a reset and sync first. > >On Wed, 10 Oct 2007, Mike Eggar wrote: > >> >>build_fixtures with santa.json is giving me some errors, >>"'gen_pfk_for_row' : Invalid information for behaviorargumentlink (runtime >>error) " >> >> >>> >>>Santa data is up in latest commit. It's in >>>database/db/fixtures/santa.json. Let me know if you have any problems. >>> >>>Dan >>> >>>Lucy R Mendel wrote: >>> > I think this is because the database is empty. >>> > Dan, can you get the santa demo data committed (or buildable)? >>> > Word! >>> > >>> > On Tue, 9 Oct 2007, Mike Eggar wrote: >>> > >>> >> I get a different error now... >>> >> >>> >> >>> >> DoesNotExist at /Main/node/41/ >>> >> Node matching query does not exist. >>> >> Request Method: GET >>> >> Request URL: http://127.0.0.1:8000/Main/node/41/ >>> >> Exception Type: DoesNotExist >>> >> Exception Value: Node matching query does not exist. >>> >> Exception Location: >>> >> C:\django\huginmunin\web\src\web_app\Main\views\views.py in >>> >> node_centric, line 128 >>> >> Python Executable: C:\django\Python25\python.exe >>> >> Python Version: 2.5.1 >>> >> Traceback (innermost last) >>> >> >>> >> >>> >> * C:\django\huginmunin\web\src\web_app\Main\views\views.py in >>> >> node_centric >>> >> 121. >>> >> 122. # convert to int else >>> >> 123. nid = int(node_id) >>> >> 124. >>> >> 125. # select node; nid==0 means no node selected >>> >> 126. if nid > 0: >>> >> 127. node_selected = True >>> >> 128. node = Node.objects.select_related(depth=2).get(id=nid) ... >>> >> 129. # get all behaviors attached to node >>> >> 130. dict['behaviors']=node.behaviors >>> >> 131. # get parents and children >>> >> 132. dict['parents']=node.parents#.select_related().filter() >>> >> 133. dict['children']=node.children#.select_related().filter() >>> >> 134. #dict['dimensions']=Dimension.objects.all() >>> >> ˘ş Local vars >>> >> >>> >> >>> >> The output from sqlreset looks like this: >>> >> >>> >> BEGIN; >>> >> DROP TABLE "db_tagging"; >>> >> DROP TABLE "db_dimension"; >>> >> DROP TABLE "db_tag"; >>> >> DROP TABLE "db_article"; >>> >> DROP TABLE "db_action"; >>> >> DROP TABLE "db_aggregaterating"; >>> >> DROP TABLE "db_behavior"; >>> >> DROP TABLE "db_state"; >>> >> DROP TABLE "db_edge"; >>> >> DROP TABLE "db_userextended"; >>> >> DROP TABLE "db_source"; >>> >> DROP TABLE "db_upc"; >>> >> DROP TABLE "db_argument"; >>> >> DROP TABLE "db_visit"; >>> >> DROP TABLE "db_citation"; >>> >> DROP TABLE "db_author"; >>> >> DROP TABLE "db_slug"; >>> >> DROP TABLE "db_rating"; >>> >> DROP TABLE "db_node"; >>> >> CREATE TABLE "db_node" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "label" varchar(200) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_rating" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "score" integer NOT NULL, >>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>> >> ("id"), >>> >> "item_id" integer unsigned NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_slug" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "slug" varchar(255) NOT NULL, >>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>> >> ("id"), >>> >> "item_id" integer unsigned NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_author" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "name" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_citation" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "article_id" integer NOT NULL, >>> >> "passage" varchar(255) NOT NULL, >>> >> "argument_id" integer NOT NULL, >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_visit" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "path" varchar(255) NOT NULL, >>> >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >>> >> "time" datetime NOT NULL, >>> >> "duration" real NOT NULL, >>> >> "sql_duration" real NOT NULL, >>> >> "ip" char(15) NOT NULL, >>> >> "remote_host" varchar(255) NOT NULL, >>> >> "user_agent" varchar(255) NOT NULL, >>> >> "referer" varchar(255) NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_argument" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "label" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "sign" smallint NOT NULL, >>> >> "behavior_id" integer NULL, >>> >> "argument_id" integer NULL, >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_upc" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "upc_code" varchar(255) NOT NULL, >>> >> "upc_image" varchar(100) NULL, >>> >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_source" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "name" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_userextended" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), >>> >> "name" varchar(255) NOT NULL, >>> >> "level" integer NOT NULL, >>> >> "feathers" real NOT NULL, >>> >> "points" real NOT NULL, >>> >> "status" real NOT NULL, >>> >> "vote_weight" integer NULL, >>> >> "eval_weight" integer NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_edge" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "label" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "src_id" integer NOT NULL REFERENCES "db_node" ("id"), >>> >> "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_state" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "label" varchar(255) NOT NULL, >>> >> "text" varchar(255) NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_behavior" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "label" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "dimension_id" integer NOT NULL, >>> >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_aggregaterating" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "score" real NOT NULL, >>> >> "time" datetime NOT NULL, >>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>> >> ("id"), >>> >> "item_id" integer unsigned NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_action" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "type" integer unsigned NOT NULL, >>> >> "label" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >>> >> "ip" char(15) NOT NULL, >>> >> "time" datetime NOT NULL, >>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>> >> ("id"), >>> >> "item_id" integer unsigned NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_article" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "title" varchar(255) NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "source_id" integer NOT NULL REFERENCES "db_source" ("id"), >>> >> "author_id" integer NOT NULL REFERENCES "db_author" ("id"), >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_tag" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "tag" varchar(255) NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_dimension" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "label" varchar(255) NOT NULL, >>> >> "description" text NOT NULL, >>> >> "url" varchar(200) NOT NULL, >>> >> "parent_id" integer NULL, >>> >> "state" smallint UNSIGNED NOT NULL >>> >> ) >>> >> ; >>> >> CREATE TABLE "db_tagging" ( >>> >> "id" integer NOT NULL PRIMARY KEY, >>> >> "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), >>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>> >> ("id"), >>> >> "item_id" integer unsigned NOT NULL >>> >> ) >>> >> ; >>> >> CREATE INDEX "db_rating_item_type_id" ON "db_rating" >>>("item_type_id"); >>> >> CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); >>> >> CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); >>> >> CREATE INDEX "db_citation_article_id" ON "db_citation" >>>("article_id"); >>> >> CREATE INDEX "db_citation_argument_id" ON "db_citation" >>>("argument_id"); >>> >> CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); >>> >> CREATE INDEX "db_argument_behavior_id" ON "db_argument" >>>("behavior_id"); >>> >> CREATE INDEX "db_argument_argument_id" ON "db_argument" >>>("argument_id"); >>> >> CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); >>> >> CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); >>> >> CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); >>> >> CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" >>> >> ("dimension_id"); >>> >> CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); >>> >> CREATE INDEX "db_aggregaterating_item_type_id" ON >>>"db_aggregaterating" >>> >> ("item_type_id"); >>> >> CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); >>> >> CREATE INDEX "db_action_item_type_id" ON "db_action" >>>("item_type_id"); >>> >> CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); >>> >> CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); >>> >> CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); >>> >> CREATE INDEX "db_dimension_parent_id" ON "db_dimension" >>>("parent_id"); >>> >> CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); >>> >> CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" >>>("item_type_id"); >>> >> COMMIT; >>> >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> >>> >>> >>> Try "./manage.py reset db" >>> >>> Django is unable to make some column changes to existing tables - I >>> >>> haven't really figured out when or why this happens, but usually >>>"reset >>> >>> db" works. If there's data in your database you want to keep, you >>>can >>> >>> save it with "./manage dumpdata db" or something like that. (Just >>>so >>> >>> you know, 'db' means our app 'db', rather than databases in general >>>- >>> >>> resetting db should not reset 'auth', the user and permissions >>> >>> settings.) >>> >>> >>> >>> If you still get errors, send me the output as well as the output to >>> >>> "./manage.py sqlreset db". >>> >>> >>> >>> Dan >>> >>> >>> >>> Lucy R Mendel wrote: >>> >>> > I get the same error when I runserver and try to get a page. >>> >>> > >>> >>> > OperationalError >>> >>> > no such column: db_node.state >>> >>> > >>> >>> > >>> >>> >>>/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py >>> >>> >>> >>> > in execute >>> >>> > >>> >>> > 19# return self.cursor.execute(sql, params) >>> >>> > >>> >>> > >>> >>> > >>> >>> > On Mon, 8 Oct 2007, Lucy R Mendel wrote: >>> >>> > >>> >>> >> $ ./manage.py syncdb >>> >>> >> Creating table db_visit >>> >>> >> Creating table db_state >>> >>> >> Creating table db_aggregaterating >>> >>> >> Traceback (most recent call last): >>> >>> >> File "./manage.py", line 11, in >>> >>> >> execute_manager(settings) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >>> >>> >>> >>> >> line 264, in execute_manager >>> >>> >> utility.execute() >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >>> >>> >>> >>> >> line 215, in execute >>> >>> >> self.fetch_command(subcommand).run_from_argv(self.argv) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>> >>> >>> >>> >> line 70, in run_from_argv >>> >>> >> self.execute(*args, **options.__dict__) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>> >>> >>> >>> >> line 84, in execute >>> >>> >> output = self.handle(*args, **options) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>> >>> >>> >>> >> line 168, in handle >>> >>> >> return self.handle_noargs(**options) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", >>> >>> >>> >>> >> line 94, in handle_noargs >>> >>> >> emit_post_sync_signal(created_models, verbosity, interactive) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", >>> >>> >>> >>> >> line 457, in emit_post_sync_signal >>> >>> >> verbosity=verbosity, interactive=interactive) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", >>> >>> >>> >>> >> line 360, in send >>> >>> >> **named >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", >>> >>> >>> >>> >> line 47, in robustApply >>> >>> >> return receiver(*arguments, **named) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", >>> >>> >>> >>> >> line 34, in update_contenttypes >>> >>> >> ct.delete() >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >>> >>> >>> >>> >> line 327, in delete >>> >>> >> self._collect_sub_objects(seen_objs) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >>> >>> >>> >>> >> line 319, in _collect_sub_objects >>> >>> >> for sub_obj in getattr(self, rel_opts_name).all(): >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>> >>> >>> >>> >> line 114, in __iter__ >>> >>> >> return iter(self._get_data()) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>> >>> >>> >>> >> line 482, in _get_data >>> >>> >> self._result_cache = list(self.iterator()) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>> >>> >>> >>> >> line 189, in iterator >>> >>> >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or >>> >>> "") + >>> >>> >> ",".join(select) + sql, params) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", >>> >>> >>> >>> >> line 19, in execute >>> >>> >> return self.cursor.execute(sql, params) >>> >>> >> File >>> >>> >> >>> >>> >>>"/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", >>> >>> >>> >>> >> line 133, in execute >>> >>> >> return Database.Cursor.execute(self, query, params) >>> >>> >> sqlite3.OperationalError: no such column: db_slug.slug >>> >>> >> >>> >>> >> On Mon, 8 Oct 2007, Mike Eggar wrote: >>> >>> >> >>> >>> >>> >>> >>> >>> OK, I built the fixtures but now I get "no such column: >>> >>> >>> db_node.state" error for prototype and main >>> >>> >>> >>> >>> >>> >>> >>> >>>> From: Lucy R Mendel >>> >>> >>>> To: Daniel Ring >>> >>> >>>> CC: dev-flock at mit.edu >>> >>> >>>> Subject: Re: [Dev-flock] New fixtures >>> >>> >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >>> >>> >>>> >>> >>> >>>> to build you need ruby and a ruby json lib (debian packages: >>>ruby; >>> >>> >>>> libjson-ruby) >>> >>> >>>> >>> >>> >>>> Prototype on the web server should be up and running soon... >>> >>> >>>> >>> >>> >>>> On Mon, 8 Oct >>> >>> >>>> 2007, Daniel Ring wrote: >>> >>> >>>> >>> >>> >>>> > ...can be built by running './build_fixtures.rb >>>fixtures.json' in >>> >>> >>>> > src/database/db/fixtures. Beware, this takes a while. If >>>you >>> >>> don't >>> >>> >>>> > have ruby or don't want to bother, download them from: >>> >>> >>>> > http://danring.net/temp/fixtures.json (~20meg) >>> >>> >>>> > >>> >>> >>>> > These are again just random-text fixtures. I'll get the >>> >>> >>>> > real-live-fake-Santa-fixtures out soon. >>> >>> >>>> > >>> >>> >>>> > Dan >>> >>> >>>> > _______________________________________________ >>> >>> >>>> > 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 >>> >>> >>> >>> >>> >>> >>>_________________________________________________________________ >>> >>> >>> i'm making a difference.?Make every IM count for the cause of >>>your >>> >>> >>> choice. Join Now. >>>http://im.live.com/messenger/im/home/?source=TAGHM >>> >>> >>> >>> >>> >> >>> >>> > >>> >>> > >>> >>> >>>------------------------------------------------------------------------ >>> >>> > >>> >>> > _______________________________________________ >>> >>> > Dev-flock mailing list >>> >>> > Dev-flock at mit.edu >>> >>> > http://mailman.mit.edu/mailman/listinfo/dev-flock >>> >> >>> >> _________________________________________________________________ >>> >> More photos; more messages; more storage?get 5GB with Windows Live >>> >> Hotmail. >>> >> >>>http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 >>> >> >>> >> >>> >> >> >>_________________________________________________________________ >>Help yourself to FREE treats served up daily at the Messenger Café. Stop >>by today! >>http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline >> >> _________________________________________________________________ Peek-a-boo FREE Tricks & Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us From danring at MIT.EDU Wed Oct 10 00:33:31 2007 From: danring at MIT.EDU (Daniel Ring) Date: Wed, 10 Oct 2007 00:33:31 -0400 Subject: [Dev-flock] new fixture error In-Reply-To: References: Message-ID: <470C561B.4090309@mit.edu> http://code.djangoproject.com/changeset/6269 Try to keep your Django checkout updated. And - just in case - we're using the development version, not 0.96. Both my Django checkout and the one on the server are kept within a day or two of current ... differences in revision like this won't often cause problems, but it's good to rule it out preemptively. If updating Django doesn't fix it, let me know. Dan Mike Eggar wrote: > > I get something similar, > Installing json fixture 'database/db/fixtures/santa' from absolute path. > Problem installing fixture 'database/db/fixtures/santa.json': > on_create() takes exactly 5 non-keyword arguments (4 given) > > >> >> I think you just need to loaddata: >> >> lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src >> $ ./manage.py loaddata database/db/fixtures/santa.json >> >> but I get this error: >> >> Loading 'database/db/fixtures/santa' fixtures... >> Installing json fixture 'database/db/fixtures/santa' from absolute >> path. >> Problem installing fixture 'database/db/fixtures/santa.json': >> Article matching query does not exist. >> >> after doing a reset and sync first. >> >> On Wed, 10 Oct 2007, Mike Eggar wrote: >> >>> >>> build_fixtures with santa.json is giving me some errors, >>> "'gen_pfk_for_row' : Invalid information for behaviorargumentlink >>> (runtime error) " >>> >>> >>>> >>>> Santa data is up in latest commit. It's in >>>> database/db/fixtures/santa.json. Let me know if you have any problems. >>>> >>>> Dan >>>> >>>> Lucy R Mendel wrote: >>>> > I think this is because the database is empty. >>>> > Dan, can you get the santa demo data committed (or buildable)? >>>> > Word! >>>> > >>>> > On Tue, 9 Oct 2007, Mike Eggar wrote: >>>> > >>>> >> I get a different error now... >>>> >> >>>> >> >>>> >> DoesNotExist at /Main/node/41/ >>>> >> Node matching query does not exist. >>>> >> Request Method: GET >>>> >> Request URL: http://127.0.0.1:8000/Main/node/41/ >>>> >> Exception Type: DoesNotExist >>>> >> Exception Value: Node matching query does not exist. >>>> >> Exception Location: >>>> >> C:\django\huginmunin\web\src\web_app\Main\views\views.py in >>>> >> node_centric, line 128 >>>> >> Python Executable: C:\django\Python25\python.exe >>>> >> Python Version: 2.5.1 >>>> >> Traceback (innermost last) >>>> >> >>>> >> >>>> >> * C:\django\huginmunin\web\src\web_app\Main\views\views.py in >>>> >> node_centric >>>> >> 121. >>>> >> 122. # convert to int else >>>> >> 123. nid = int(node_id) >>>> >> 124. >>>> >> 125. # select node; nid==0 means no node selected >>>> >> 126. if nid > 0: >>>> >> 127. node_selected = True >>>> >> 128. node = Node.objects.select_related(depth=2).get(id=nid) >>>> ... >>>> >> 129. # get all behaviors attached to node >>>> >> 130. dict['behaviors']=node.behaviors >>>> >> 131. # get parents and children >>>> >> 132. dict['parents']=node.parents#.select_related().filter() >>>> >> 133. dict['children']=node.children#.select_related().filter() >>>> >> 134. #dict['dimensions']=Dimension.objects.all() >>>> >> ?? Local vars >>>> >> >>>> >> >>>> >> The output from sqlreset looks like this: >>>> >> >>>> >> BEGIN; >>>> >> DROP TABLE "db_tagging"; >>>> >> DROP TABLE "db_dimension"; >>>> >> DROP TABLE "db_tag"; >>>> >> DROP TABLE "db_article"; >>>> >> DROP TABLE "db_action"; >>>> >> DROP TABLE "db_aggregaterating"; >>>> >> DROP TABLE "db_behavior"; >>>> >> DROP TABLE "db_state"; >>>> >> DROP TABLE "db_edge"; >>>> >> DROP TABLE "db_userextended"; >>>> >> DROP TABLE "db_source"; >>>> >> DROP TABLE "db_upc"; >>>> >> DROP TABLE "db_argument"; >>>> >> DROP TABLE "db_visit"; >>>> >> DROP TABLE "db_citation"; >>>> >> DROP TABLE "db_author"; >>>> >> DROP TABLE "db_slug"; >>>> >> DROP TABLE "db_rating"; >>>> >> DROP TABLE "db_node"; >>>> >> CREATE TABLE "db_node" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "label" varchar(200) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_rating" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "score" integer NOT NULL, >>>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>>> >> ("id"), >>>> >> "item_id" integer unsigned NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_slug" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "slug" varchar(255) NOT NULL, >>>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>>> >> ("id"), >>>> >> "item_id" integer unsigned NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_author" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "name" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_citation" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "article_id" integer NOT NULL, >>>> >> "passage" varchar(255) NOT NULL, >>>> >> "argument_id" integer NOT NULL, >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_visit" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "path" varchar(255) NOT NULL, >>>> >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >>>> >> "time" datetime NOT NULL, >>>> >> "duration" real NOT NULL, >>>> >> "sql_duration" real NOT NULL, >>>> >> "ip" char(15) NOT NULL, >>>> >> "remote_host" varchar(255) NOT NULL, >>>> >> "user_agent" varchar(255) NOT NULL, >>>> >> "referer" varchar(255) NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_argument" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "label" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "sign" smallint NOT NULL, >>>> >> "behavior_id" integer NULL, >>>> >> "argument_id" integer NULL, >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_upc" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "upc_code" varchar(255) NOT NULL, >>>> >> "upc_image" varchar(100) NULL, >>>> >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_source" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "name" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_userextended" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "user_id" integer NOT NULL UNIQUE REFERENCES "auth_user" ("id"), >>>> >> "name" varchar(255) NOT NULL, >>>> >> "level" integer NOT NULL, >>>> >> "feathers" real NOT NULL, >>>> >> "points" real NOT NULL, >>>> >> "status" real NOT NULL, >>>> >> "vote_weight" integer NULL, >>>> >> "eval_weight" integer NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_edge" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "label" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "src_id" integer NOT NULL REFERENCES "db_node" ("id"), >>>> >> "dest_id" integer NOT NULL REFERENCES "db_node" ("id"), >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_state" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "label" varchar(255) NOT NULL, >>>> >> "text" varchar(255) NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_behavior" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "label" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "dimension_id" integer NOT NULL, >>>> >> "node_id" integer NOT NULL REFERENCES "db_node" ("id"), >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_aggregaterating" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "score" real NOT NULL, >>>> >> "time" datetime NOT NULL, >>>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>>> >> ("id"), >>>> >> "item_id" integer unsigned NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_action" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "type" integer unsigned NOT NULL, >>>> >> "label" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "user_id" integer NOT NULL REFERENCES "auth_user" ("id"), >>>> >> "ip" char(15) NOT NULL, >>>> >> "time" datetime NOT NULL, >>>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>>> >> ("id"), >>>> >> "item_id" integer unsigned NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_article" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "title" varchar(255) NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "source_id" integer NOT NULL REFERENCES "db_source" ("id"), >>>> >> "author_id" integer NOT NULL REFERENCES "db_author" ("id"), >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_tag" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "tag" varchar(255) NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_dimension" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "label" varchar(255) NOT NULL, >>>> >> "description" text NOT NULL, >>>> >> "url" varchar(200) NOT NULL, >>>> >> "parent_id" integer NULL, >>>> >> "state" smallint UNSIGNED NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE TABLE "db_tagging" ( >>>> >> "id" integer NOT NULL PRIMARY KEY, >>>> >> "tag_id" integer NOT NULL REFERENCES "db_tag" ("id"), >>>> >> "item_type_id" integer NOT NULL REFERENCES "django_content_type" >>>> >> ("id"), >>>> >> "item_id" integer unsigned NOT NULL >>>> >> ) >>>> >> ; >>>> >> CREATE INDEX "db_rating_item_type_id" ON "db_rating" >>>> ("item_type_id"); >>>> >> CREATE INDEX "db_slug_slug" ON "db_slug" ("slug"); >>>> >> CREATE INDEX "db_slug_item_type_id" ON "db_slug" ("item_type_id"); >>>> >> CREATE INDEX "db_citation_article_id" ON "db_citation" >>>> ("article_id"); >>>> >> CREATE INDEX "db_citation_argument_id" ON "db_citation" >>>> ("argument_id"); >>>> >> CREATE INDEX "db_visit_user_id" ON "db_visit" ("user_id"); >>>> >> CREATE INDEX "db_argument_behavior_id" ON "db_argument" >>>> ("behavior_id"); >>>> >> CREATE INDEX "db_argument_argument_id" ON "db_argument" >>>> ("argument_id"); >>>> >> CREATE INDEX "db_upc_node_id" ON "db_upc" ("node_id"); >>>> >> CREATE INDEX "db_edge_src_id" ON "db_edge" ("src_id"); >>>> >> CREATE INDEX "db_edge_dest_id" ON "db_edge" ("dest_id"); >>>> >> CREATE INDEX "db_behavior_dimension_id" ON "db_behavior" >>>> >> ("dimension_id"); >>>> >> CREATE INDEX "db_behavior_node_id" ON "db_behavior" ("node_id"); >>>> >> CREATE INDEX "db_aggregaterating_item_type_id" ON >>>> "db_aggregaterating" >>>> >> ("item_type_id"); >>>> >> CREATE INDEX "db_action_user_id" ON "db_action" ("user_id"); >>>> >> CREATE INDEX "db_action_item_type_id" ON "db_action" >>>> ("item_type_id"); >>>> >> CREATE INDEX "db_article_source_id" ON "db_article" ("source_id"); >>>> >> CREATE INDEX "db_article_author_id" ON "db_article" ("author_id"); >>>> >> CREATE INDEX "db_tag_tag" ON "db_tag" ("tag"); >>>> >> CREATE INDEX "db_dimension_parent_id" ON "db_dimension" >>>> ("parent_id"); >>>> >> CREATE INDEX "db_tagging_tag_id" ON "db_tagging" ("tag_id"); >>>> >> CREATE INDEX "db_tagging_item_type_id" ON "db_tagging" >>>> ("item_type_id"); >>>> >> COMMIT; >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >>> >>>> >>> Try "./manage.py reset db" >>>> >>> Django is unable to make some column changes to existing tables - I >>>> >>> haven't really figured out when or why this happens, but usually >>>> "reset >>>> >>> db" works. If there's data in your database you want to keep, >>>> you can >>>> >>> save it with "./manage dumpdata db" or something like that. >>>> (Just so >>>> >>> you know, 'db' means our app 'db', rather than databases in >>>> general - >>>> >>> resetting db should not reset 'auth', the user and permissions >>>> >>> settings.) >>>> >>> >>>> >>> If you still get errors, send me the output as well as the >>>> output to >>>> >>> "./manage.py sqlreset db". >>>> >>> >>>> >>> Dan >>>> >>> >>>> >>> Lucy R Mendel wrote: >>>> >>> > I get the same error when I runserver and try to get a page. >>>> >>> > >>>> >>> > OperationalError >>>> >>> > no such column: db_node.state >>>> >>> > >>>> >>> > >>>> >>> >>>> /Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py >>>> >>>> >>> >>>> >>> > in execute >>>> >>> > >>>> >>> > 19# return self.cursor.execute(sql, params) >>>> >>> > >>>> >>> > >>>> >>> > >>>> >>> > On Mon, 8 Oct 2007, Lucy R Mendel wrote: >>>> >>> > >>>> >>> >> $ ./manage.py syncdb >>>> >>> >> Creating table db_visit >>>> >>> >> Creating table db_state >>>> >>> >> Creating table db_aggregaterating >>>> >>> >> Traceback (most recent call last): >>>> >>> >> File "./manage.py", line 11, in >>>> >>> >> execute_manager(settings) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >>>> >>>> >>> >>>> >>> >> line 264, in execute_manager >>>> >>> >> utility.execute() >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >>>> >>>> >>> >>>> >>> >> line 215, in execute >>>> >>> >> self.fetch_command(subcommand).run_from_argv(self.argv) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>>> >>>> >>> >>>> >>> >> line 70, in run_from_argv >>>> >>> >> self.execute(*args, **options.__dict__) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>>> >>>> >>> >>>> >>> >> line 84, in execute >>>> >>> >> output = self.handle(*args, **options) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >>>> >>>> >>> >>>> >>> >> line 168, in handle >>>> >>> >> return self.handle_noargs(**options) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/commands/syncdb.py", >>>> >>>> >>> >>>> >>> >> line 94, in handle_noargs >>>> >>> >> emit_post_sync_signal(created_models, verbosity, interactive) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/sql.py", >>>> >>>> >>> >>>> >>> >> line 457, in emit_post_sync_signal >>>> >>> >> verbosity=verbosity, interactive=interactive) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/dispatcher.py", >>>> >>>> >>> >>>> >>> >> line 360, in send >>>> >>> >> **named >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/badbills/src/badcoopsite/django/dispatch/robustapply.py", >>>> >>>> >>> >>>> >>> >> line 47, in robustApply >>>> >>> >> return receiver(*arguments, **named) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/contrib/contenttypes/management.py", >>>> >>>> >>> >>>> >>> >> line 34, in update_contenttypes >>>> >>> >> ct.delete() >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >>>> >>>> >>> >>>> >>> >> line 327, in delete >>>> >>> >> self._collect_sub_objects(seen_objs) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/base.py", >>>> >>>> >>> >>>> >>> >> line 319, in _collect_sub_objects >>>> >>> >> for sub_obj in getattr(self, rel_opts_name).all(): >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>>> >>>> >>> >>>> >>> >> line 114, in __iter__ >>>> >>> >> return iter(self._get_data()) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>>> >>>> >>> >>>> >>> >> line 482, in _get_data >>>> >>> >> self._result_cache = list(self.iterator()) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/query.py", >>>> >>>> >>> >>>> >>> >> line 189, in iterator >>>> >>> >> cursor.execute("SELECT " + (self._distinct and "DISTINCT " or >>>> >>> "") + >>>> >>> >> ",".join(select) + sql, params) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/util.py", >>>> >>>> >>> >>>> >>> >> line 19, in execute >>>> >>> >> return self.cursor.execute(sql, params) >>>> >>> >> File >>>> >>> >> >>>> >>> >>>> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/sqlite3/base.py", >>>> >>>> >>> >>>> >>> >> line 133, in execute >>>> >>> >> return Database.Cursor.execute(self, query, params) >>>> >>> >> sqlite3.OperationalError: no such column: db_slug.slug >>>> >>> >> >>>> >>> >> On Mon, 8 Oct 2007, Mike Eggar wrote: >>>> >>> >> >>>> >>> >>> >>>> >>> >>> OK, I built the fixtures but now I get "no such column: >>>> >>> >>> db_node.state" error for prototype and main >>>> >>> >>> >>>> >>> >>> >>>> >>> >>>> From: Lucy R Mendel >>>> >>> >>>> To: Daniel Ring >>>> >>> >>>> CC: dev-flock at mit.edu >>>> >>> >>>> Subject: Re: [Dev-flock] New fixtures >>>> >>> >>>> Date: Mon, 8 Oct 2007 11:11:14 -0400 (EDT) >>>> >>> >>>> >>>> >>> >>>> to build you need ruby and a ruby json lib (debian >>>> packages: ruby; >>>> >>> >>>> libjson-ruby) >>>> >>> >>>> >>>> >>> >>>> Prototype on the web server should be up and running soon... >>>> >>> >>>> >>>> >>> >>>> On Mon, 8 Oct >>>> >>> >>>> 2007, Daniel Ring wrote: >>>> >>> >>>> >>>> >>> >>>> > ...can be built by running './build_fixtures.rb >>>> fixtures.json' in >>>> >>> >>>> > src/database/db/fixtures. Beware, this takes a while. >>>> If you >>>> >>> don't >>>> >>> >>>> > have ruby or don't want to bother, download them from: >>>> >>> >>>> > http://danring.net/temp/fixtures.json (~20meg) >>>> >>> >>>> > >>>> >>> >>>> > These are again just random-text fixtures. I'll get the >>>> >>> >>>> > real-live-fake-Santa-fixtures out soon. >>>> >>> >>>> > >>>> >>> >>>> > Dan >>>> >>> >>>> > _______________________________________________ >>>> >>> >>>> > 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 >>>> >>> >>> >>>> >>> >>> >>>> _________________________________________________________________ >>>> >>> >>> i'm making a difference.?Make every IM count for the cause >>>> of your >>>> >>> >>> choice. Join Now. >>>> http://im.live.com/messenger/im/home/?source=TAGHM >>>> >>> >>> >>>> >>> >> >>>> >>> > >>>> >>> > >>>> >>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>> > >>>> >>> > _______________________________________________ >>>> >>> > Dev-flock mailing list >>>> >>> > Dev-flock at mit.edu >>>> >>> > http://mailman.mit.edu/mailman/listinfo/dev-flock >>>> >> >>>> >> _________________________________________________________________ >>>> >> More photos; more messages; more storage?get 5GB with Windows Live >>>> >> Hotmail. >>>> >> >>>> http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 >>>> >>>> >> >>>> >> >>>> >> >>> >>> _________________________________________________________________ >>> Help yourself to FREE treats served up daily at the Messenger Caf?. >>> Stop by today! >>> http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline >>> >>> >>> > > _________________________________________________________________ > Peek-a-boo FREE Tricks & Treats for You! > http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us > From dan at thoughtandmemory.org Wed Oct 10 02:43:44 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 10 Oct 2007 02:43:44 -0400 (EDT) Subject: [Dev-flock] r301 - in huginmunin/trunk/web: . src/web_app/Main/media Message-ID: <20071010064344.9C22875A61@thoughtandmemory.org> r352 at insignificant: dan | 2007-10-10 01:57:28 -0400 The "Add argument" button was acting strangely for me - the first click would cause no apparent change. Fixed by use the 'element_is_empty()' method from a few commits ago. (FF 2.0 / Ubuntu, in case we're keeping track of browser differences yet...are we?) Shifted the code I added around a little to make similar functions be together in the source. Removed a block of commented-out/factored-out code. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js From dan at thoughtandmemory.org Wed Oct 10 02:43:47 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 10 Oct 2007 02:43:47 -0400 (EDT) Subject: [Dev-flock] r302 - in huginmunin/trunk/web: . src/web_app/Main/media Message-ID: <20071010064347.D511B75A61@thoughtandmemory.org> r353 at insignificant: dan | 2007-10-10 02:42:51 -0400 A little more simplifying: - added function 'JSON(url, callback, params)', which: - factors out some of the long Mochikit method names - automatically converts return value to JSON before calling callback - adds a prefix '/Main/' to the url, so there can be fewer places to change it (I added this a couple places, but left the original code (commented out) where it wasn't mine, in case others don't like this strategy). Also shifted code around a little more. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js From dan at thoughtandmemory.org Wed Oct 10 02:43:40 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 10 Oct 2007 02:43:40 -0400 (EDT) Subject: [Dev-flock] r300 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071010064340.DAC5975A5F@thoughtandmemory.org> r351 at insignificant: dan | 2007-10-10 01:49:01 -0400 No reason to have **kwargs on on_* logging methods, since the parameters are defined. (kwargs would always have been empty). Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/log.py From dan at thoughtandmemory.org Wed Oct 10 02:50:37 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 10 Oct 2007 02:50:37 -0400 (EDT) Subject: [Dev-flock] r303 - in huginmunin/trunk/web: . src/web_app/Main/media Message-ID: <20071010065038.0E7AD75A5F@thoughtandmemory.org> r357 at insignificant: dan | 2007-10-10 02:49:37 -0400 Drat. One of my 'simple' changes had a typo. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js From dan at thoughtandmemory.org Wed Oct 10 05:04:48 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 10 Oct 2007 05:04:48 -0400 (EDT) Subject: [Dev-flock] r304 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071010090448.2D76975A5F@thoughtandmemory.org> r359 at insignificant: dan | 2007-10-10 05:01:15 -0400 Changed TagMixin class to support better tags/tag counting. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/tag.py From dan at thoughtandmemory.org Wed Oct 10 05:04:52 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Wed, 10 Oct 2007 05:04:52 -0400 (EDT) Subject: [Dev-flock] r305 - in huginmunin/trunk/web: . src/web_app/Main src/web_app/Main/templates src/web_app/Main/views Message-ID: <20071010090452.566E475A5F@thoughtandmemory.org> r360 at insignificant: dan | 2007-10-10 05:05:20 -0400 Fixed "add tag" functionality...this was a regression, as I fixed it before, I think. Added tag-list functionality - url is /Main/node/tags/blah/another_tag/yay_for_tags - template uses node_list.html - views.node_list_by_tag Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/templates/node_centric.html huginmunin/trunk/web/src/web_app/Main/templates/node_list.html huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From digitalecho at gmail.com Wed Oct 10 22:46:08 2007 From: digitalecho at gmail.com (Sean Driedger) Date: Wed, 10 Oct 2007 22:46:08 -0400 Subject: [Dev-flock] new fixture error In-Reply-To: <470C561B.4090309@mit.edu> References: <470C561B.4090309@mit.edu> Message-ID: <470D8E70.3070702@gmail.com> I don't know about Lucy & Mike, but I'm still getting the following error: /C:\dev\tm\src>python manage.py loaddata database\db\fixtures\santa.json Loading 'database\db\fixtures\santa' fixtures... Installing json fixture 'database\db\fixtures\santa' from absolute path. Problem installing fixture 'database\db\fixtures\santa.json': Article matching query does not exist./ / /I've tried a few times with django versions 6269 and 6473 (current) - no luck. Anything I'm missing? Sean Daniel Ring wrote: > http://code.djangoproject.com/changeset/6269 > > Try to keep your Django checkout updated. And - just in case - we're > using the development version, not 0.96. Both my Django checkout and > the one on the server are kept within a day or two of current ... > differences in revision like this won't often cause problems, but it's > good to rule it out preemptively. > > If updating Django doesn't fix it, let me know. > > Dan > > > Mike Eggar wrote: > >> I get something similar, >> Installing json fixture 'database/db/fixtures/santa' from absolute path. >> Problem installing fixture 'database/db/fixtures/santa.json': >> on_create() takes exactly 5 non-keyword arguments (4 given) >> >> >> >>> I think you just need to loaddata: >>> >>> lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src >>> $ ./manage.py loaddata database/db/fixtures/santa.json >>> >>> but I get this error: >>> >>> Loading 'database/db/fixtures/santa' fixtures... >>> Installing json fixture 'database/db/fixtures/santa' from absolute >>> path. >>> Problem installing fixture 'database/db/fixtures/santa.json': >>> Article matching query does not exist. >>> >>> after doing a reset and sync first. >>> >>> On Wed, 10 Oct 2007, Mike Eggar wrote: >>> >>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.mit.edu/pipermail/dev-flock/attachments/20071010/934d64e6/attachment.htm From digitalecho at gmail.com Wed Oct 10 23:14:07 2007 From: digitalecho at gmail.com (Sean Driedger) Date: Wed, 10 Oct 2007 23:14:07 -0400 Subject: [Dev-flock] Search Status Message-ID: <470D94FF.1060509@gmail.com> A quick update on the full-text search project - after wasting far too much time debugging, I realized something painfully obvious: the simple django-search library I've been trying to use (http://info.wsisiz.edu.pl/~blizinsk/simple-django-search.html ) is out of date with the current Django project, and thus not useful to us. Unless someone has a better suggestion (which I'd be quite open to!), I'm going to start investigating django-sphinx (http://code.google.com/p/django-sphinx/). It'll require an additional app on the server to run, but at least it appears to be reasonably up-to-date. Sean From lmendel at MIT.EDU Wed Oct 10 23:29:33 2007 From: lmendel at MIT.EDU (Lucy R Mendel) Date: Wed, 10 Oct 2007 23:29:33 -0400 (EDT) Subject: [Dev-flock] Search Status In-Reply-To: <470D94FF.1060509@gmail.com> References: <470D94FF.1060509@gmail.com> Message-ID: Sean, Word. Make sure to coordinate with Dan, since I think he's looked into text search, too. I'm getting MySQL errors since I don't have mysql. I will get it, though. I went to http://sourceforge.net/svn/?group_id=22307 to check out the mysql-python stuff for MySQLdb. I'd like to get things building again so I can see what's going on and make sure we're on track for Saturday. Our main goal is for people to log on, navigate through the santa demo data set, and vote and write arguments. It looks like we're nearly there! Tomorrow I'm presenting at an IDEAS dinner at MIT to rally support (and funding) for ThoughtAndMemory. Keep it up! Lucy. On Wed, 10 Oct 2007, Sean Driedger wrote: > A quick update on the full-text search project - after wasting far too > much time debugging, I realized something painfully obvious: the simple > django-search library I've been trying to use > (http://info.wsisiz.edu.pl/~blizinsk/simple-django-search.html > ) is > out of date with the current Django project, and thus not useful to us. > > Unless someone has a better suggestion (which I'd be quite open to!), > I'm going to start investigating django-sphinx > (http://code.google.com/p/django-sphinx/). It'll require an additional > app on the server to run, but at least it appears to be reasonably > up-to-date. > Sean > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From eggar at hotmail.com Wed Oct 10 23:41:02 2007 From: eggar at hotmail.com (Mike Eggar) Date: Thu, 11 Oct 2007 03:41:02 +0000 Subject: [Dev-flock] Search Status In-Reply-To: Message-ID: Having some problems getting everything working on my windows machine, I have down-time at work to figure it out tommorow morning. Mike > >Sean, > >Word. Make sure to coordinate with Dan, since I think he's looked into >text search, too. > >I'm getting MySQL errors since I don't have mysql. I will get it, though. >I went to > http://sourceforge.net/svn/?group_id=22307 >to check out the mysql-python stuff for MySQLdb. > >I'd like to get things building again so I can see what's going on and >make sure we're on track for Saturday. >Our main goal is for people to log on, navigate through the santa demo >data set, and vote and write arguments. It looks like we're nearly there! > >Tomorrow I'm presenting at an IDEAS dinner at MIT to rally support (and >funding) for ThoughtAndMemory. > >Keep it up! >Lucy. > >On Wed, 10 Oct 2007, Sean Driedger wrote: > > > A quick update on the full-text search project - after wasting far too > > much time debugging, I realized something painfully obvious: the simple > > django-search library I've been trying to use > > (http://info.wsisiz.edu.pl/~blizinsk/simple-django-search.html > > ) is > > out of date with the current Django project, and thus not useful to us. > > > > Unless someone has a better suggestion (which I'd be quite open to!), > > I'm going to start investigating django-sphinx > > (http://code.google.com/p/django-sphinx/). It'll require an additional > > app on the server to run, but at least it appears to be reasonably > > up-to-date. > > Sean > > _______________________________________________ > > 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 _________________________________________________________________ More photos; more messages; more storage—get 5GB with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_2G_0507 From danring at MIT.EDU Thu Oct 11 10:17:04 2007 From: danring at MIT.EDU (Daniel Ring) Date: Thu, 11 Oct 2007 10:17:04 -0400 Subject: [Dev-flock] new fixture error In-Reply-To: <470D8E70.3070702@gmail.com> References: <470C561B.4090309@mit.edu> <470D8E70.3070702@gmail.com> Message-ID: <470E3060.3020009@mit.edu> Did this not work for you? Even after './manage.py reset db'? "For some reason, './manage.py loaddata database/db/fixtures/santa.json' fails with an error about a missing article. If you run the command 3 or 4 times, it should eventually succeed, and this is okay, because the fixtures have unique ids, so they will just overwrite old entries rather than adding duplicates." Sean Driedger wrote: > I don't know about Lucy & Mike, but I'm still getting the following error: > /C:\dev\tm\src>python manage.py loaddata database\db\fixtures\santa.json > Loading 'database\db\fixtures\santa' fixtures... > Installing json fixture 'database\db\fixtures\santa' from absolute path. > Problem installing fixture 'database\db\fixtures\santa.json': Article > matching query does not exist./ > / > /I've tried a few times with django versions 6269 and 6473 (current) - > no luck. Anything I'm missing? > Sean > > Daniel Ring wrote: >> http://code.djangoproject.com/changeset/6269 >> >> Try to keep your Django checkout updated. And - just in case - we're >> using the development version, not 0.96. Both my Django checkout and >> the one on the server are kept within a day or two of current ... >> differences in revision like this won't often cause problems, but it's >> good to rule it out preemptively. >> >> If updating Django doesn't fix it, let me know. >> >> Dan >> >> >> Mike Eggar wrote: >> >>> I get something similar, >>> Installing json fixture 'database/db/fixtures/santa' from absolute path. >>> Problem installing fixture 'database/db/fixtures/santa.json': >>> on_create() takes exactly 5 non-keyword arguments (4 given) >>> >>> >>> >>>> I think you just need to loaddata: >>>> >>>> lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src >>>> $ ./manage.py loaddata database/db/fixtures/santa.json >>>> >>>> but I get this error: >>>> >>>> Loading 'database/db/fixtures/santa' fixtures... >>>> Installing json fixture 'database/db/fixtures/santa' from absolute >>>> path. >>>> Problem installing fixture 'database/db/fixtures/santa.json': >>>> Article matching query does not exist. >>>> >>>> after doing a reset and sync first. >>>> >>>> On Wed, 10 Oct 2007, Mike Eggar wrote: >>>> >>>> >> > > ------------------------------------------------------------------------ > > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock From dan at thoughtandmemory.org Fri Oct 12 14:51:57 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Fri, 12 Oct 2007 14:51:57 -0400 (EDT) Subject: [Dev-flock] r307 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071012185157.9D46175A5F@thoughtandmemory.org> r365 at insignificant: dan | 2007-10-12 14:46:28 -0400 Added cached_weighting to Edge. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/graph.py From dan at thoughtandmemory.org Fri Oct 12 15:22:58 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Fri, 12 Oct 2007 15:22:58 -0400 (EDT) Subject: [Dev-flock] r308 - in huginmunin/trunk/web: . src/database/db/fixtures Message-ID: <20071012192258.B735675A5F@thoughtandmemory.org> r367 at insignificant: dan | 2007-10-12 15:23:40 -0400 Adding a default users fixture. Added: huginmunin/trunk/web/src/database/db/fixtures/users.json Modified: huginmunin/trunk/web/ From eggar at hotmail.com Fri Oct 12 18:54:20 2007 From: eggar at hotmail.com (Mike Eggar) Date: Fri, 12 Oct 2007 22:54:20 +0000 Subject: [Dev-flock] r307 - in huginmunin/trunk/web: . src/database/db In-Reply-To: <20071012185157.9D46175A5F@thoughtandmemory.org> Message-ID: Ok, I finally have everything working so I'll have some new stuff committed later tonite. I had to switch back to sqlite to get it working, mysql doesn't like the foreign keys or something. Mike _________________________________________________________________ Help yourself to FREE treats served up daily at the Messenger Café. Stop by today! http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline From lmendel at MIT.EDU Fri Oct 12 19:15:12 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Fri, 12 Oct 2007 19:15:12 -0400 (EDT) Subject: [Dev-flock] r307 - in huginmunin/trunk/web: . src/database/db In-Reply-To: References: Message-ID: snap! I'm looking forward to your commits. Dan is working on a javascript database library in addition (or rather using) the python one. THat should make the UI work go faster and be less fragile to changes. Keeping your repo not up-to-date may have been the way to go (svn revert) until now. User login is our main priority right now. We want to capture people's email addresses and eventually their actions and impacts, too. since the amount of data will be quite small tomorrow we don't have to worry about the action/impact goals too much, or other data (argument) organization problems either. l. On Fri, 12 Oct 2007, Mike Eggar wrote: > Ok, I finally have everything working so I'll have some new stuff committed > later tonite. > > I had to switch back to sqlite to get it working, mysql doesn't like the > foreign keys or something. > > Mike > > _________________________________________________________________ > Help yourself to FREE treats served up daily at the Messenger Café. Stop by > today! > http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline > > From eggar at thoughtandmemory.org Fri Oct 12 21:49:35 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Fri, 12 Oct 2007 21:49:35 -0400 (EDT) Subject: [Dev-flock] r309 - in huginmunin/trunk/web/src/web_app/Main: media templates Message-ID: <20071013014935.236E275A5F@thoughtandmemory.org> added link "create new account" between node info and behaviors, opens a form to add new user. Doesn't add user yet. create new account should probably be its own page, just putting it on node_centric for now Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/node_centric.html From eggar at thoughtandmemory.org Fri Oct 12 23:01:06 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Fri, 12 Oct 2007 23:01:06 -0400 (EDT) Subject: [Dev-flock] r310 - in huginmunin/trunk/web/src/web_app/Main: media views Message-ID: <20071013030106.599F475A5F@thoughtandmemory.org> who's the python guru? I need create_new_user in main.js to call add_new_user in views.py Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/views/views.py From danring at MIT.EDU Fri Oct 12 23:10:48 2007 From: danring at MIT.EDU (Daniel Ring) Date: Fri, 12 Oct 2007 23:10:48 -0400 Subject: [Dev-flock] r310 - in huginmunin/trunk/web/src/web_app/Main: media views In-Reply-To: <20071013030106.599F475A5F@thoughtandmemory.org> References: <20071013030106.599F475A5F@thoughtandmemory.org> Message-ID: <47103738.50302@mit.edu> I'm on it eggar at thoughtandmemory.org wrote: > who's the python guru? I need create_new_user in main.js to call add_new_user in views.py > > > Modified: > huginmunin/trunk/web/src/web_app/Main/media/main.js > huginmunin/trunk/web/src/web_app/Main/views/views.py > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock From dan at thoughtandmemory.org Sat Oct 13 06:22:10 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 06:22:10 -0400 (EDT) Subject: [Dev-flock] r311 - in huginmunin/trunk/web: . src/web_app/Main src/web_app/Main/account src/web_app/Main/account/t Message-ID: <20071013102210.1384075A63@thoughtandmemory.org> r372 at insignificant: dan | 2007-10-13 06:22:54 -0400 Adding non-ajaxy registration/activation stuff. Added: huginmunin/trunk/web/src/web_app/Main/account/ huginmunin/trunk/web/src/web_app/Main/account/ostruct.py huginmunin/trunk/web/src/web_app/Main/account/t/ huginmunin/trunk/web/src/web_app/Main/account/t/activate.html huginmunin/trunk/web/src/web_app/Main/account/t/activate_done.html huginmunin/trunk/web/src/web_app/Main/account/t/activate_error.html huginmunin/trunk/web/src/web_app/Main/account/t/activation_email.txt huginmunin/trunk/web/src/web_app/Main/account/t/login.html huginmunin/trunk/web/src/web_app/Main/account/t/logout.html huginmunin/trunk/web/src/web_app/Main/account/t/register.html huginmunin/trunk/web/src/web_app/Main/account/t/register_done.html huginmunin/trunk/web/src/web_app/Main/account/urls.py huginmunin/trunk/web/src/web_app/Main/account/views.py Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Sat Oct 13 06:29:20 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 06:29:20 -0400 (EDT) Subject: [Dev-flock] r312 - in huginmunin/trunk/web: . src/web_app/Main/views Message-ID: <20071013102920.CB1EA75A63@thoughtandmemory.org> r374 at insignificant: dan | 2007-10-13 06:30:11 -0400 Factored some utility functions out of views.py so they could be used in account/views also. Added: huginmunin/trunk/web/src/web_app/Main/views/utils.py Modified: huginmunin/trunk/web/ From dan at thoughtandmemory.org Sat Oct 13 06:42:46 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 06:42:46 -0400 (EDT) Subject: [Dev-flock] r313 - in huginmunin/trunk/web: . src/database/db Message-ID: <20071013104246.3DA2C75A63@thoughtandmemory.org> r376 at insignificant: dan | 2007-10-13 06:42:01 -0400 The 'name' field isn't needed (since it exists in User), but I don't want to change the DB today, so this just adds a method 'activation_code' which returns the value of UserExtended.name. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/database/db/user.py From dan at thoughtandmemory.org Sat Oct 13 06:42:49 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 06:42:49 -0400 (EDT) Subject: [Dev-flock] r314 - in huginmunin/trunk/web: . src/web_app/Main/account src/web_app/Main/account/t Message-ID: <20071013104249.7337575A63@thoughtandmemory.org> r377 at insignificant: dan | 2007-10-13 06:43:19 -0400 Removed some commented-out code, fixed a link, changed 'u.profile.activation_code' to 'u.profile.name' to avoid a db change. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/account/ostruct.py huginmunin/trunk/web/src/web_app/Main/account/t/login.html huginmunin/trunk/web/src/web_app/Main/account/views.py From dan at thoughtandmemory.org Sat Oct 13 06:46:27 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 06:46:27 -0400 (EDT) Subject: [Dev-flock] r315 - in huginmunin/trunk/web: . src/web_app/Main/account Message-ID: <20071013104627.56DA875A63@thoughtandmemory.org> r380 at insignificant: dan | 2007-10-13 06:47:16 -0400 Didn't realize I couldn't do this. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/account/views.py From dan at thoughtandmemory.org Sat Oct 13 06:56:30 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 06:56:30 -0400 (EDT) Subject: [Dev-flock] r316 - in huginmunin/trunk/web: . src/web_app/Main/templates Message-ID: <20071013105630.D77CB75A63@thoughtandmemory.org> r382 at insignificant: dan | 2007-10-13 06:57:19 -0400 Adding "Login" and "Sign up" links to top right to point to account pages; when logged in, the links are "Logout" and to the user's user_centric page. Changed a couple lines in user_centric. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/templates/base.html huginmunin/trunk/web/src/web_app/Main/templates/user_centric.html From dan at thoughtandmemory.org Sat Oct 13 07:04:33 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 07:04:33 -0400 (EDT) Subject: [Dev-flock] r317 - in huginmunin/trunk/web: . src/web_app/Main/media Message-ID: <20071013110433.0B3B075A63@thoughtandmemory.org> r384 at insignificant: dan | 2007-10-13 07:05:04 -0400 Small change in main.js to make user names show up. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/media/main.js From danring at MIT.EDU Sat Oct 13 07:11:31 2007 From: danring at MIT.EDU (Daniel Ring) Date: Sat, 13 Oct 2007 07:11:31 -0400 Subject: [Dev-flock] r316 - in huginmunin/trunk/web: . src/web_app/Main/templates In-Reply-To: <20071013105630.D77CB75A63@thoughtandmemory.org> References: <20071013105630.D77CB75A63@thoughtandmemory.org> Message-ID: <4710A7E3.8090607@mit.edu> okay, signup/login should work now, a little inelegantly. i didn't finish the ajax stuff so all the account stuff is separate pages. to signup, go to /Main/account/register, to login go to /Main/account/login. you should all try this today and make sure you get the activation email, that the activation link works, that you can log in, and that it records who you are when you add arguments. let me know what's broken (and/or fix it). if it's totally broken, let me know and i'll back out the changes on the server, but i think it works. dan dan at thoughtandmemory.org wrote: > r382 at insignificant: dan | 2007-10-13 06:57:19 -0400 > Adding "Login" and "Sign up" links to top right to point to account pages; when logged in, the links are "Logout" and to the user's user_centric page. > Changed a couple lines in user_centric. > > > Modified: > huginmunin/trunk/web/ > huginmunin/trunk/web/src/web_app/Main/templates/base.html > huginmunin/trunk/web/src/web_app/Main/templates/user_centric.html > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock From lmendel at MIT.EDU Sat Oct 13 10:05:44 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 10:05:44 -0400 (EDT) Subject: [Dev-flock] r307 - in huginmunin/trunk/web: . src/database/db In-Reply-To: References: Message-ID: Mike and Dan, I'm having the same trouble with MySQL on my mac. How did you switch back to sqlite3 while still using the santa data and all the cool code changes ya'll have been making recently? It's looking great! We definitely met our goals--wow!! Lucy. On Fri, 12 Oct 2007, Mike Eggar wrote: > Ok, I finally have everything working so I'll have some new stuff committed > later tonite. > > I had to switch back to sqlite to get it working, mysql doesn't like the > foreign keys or something. > > Mike > > _________________________________________________________________ > Help yourself to FREE treats served up daily at the Messenger Café. Stop by > today! > http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGHM_OctHMtagline > > From lmendel at MIT.EDU Sat Oct 13 11:37:38 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 11:37:38 -0400 (EDT) Subject: [Dev-flock] running prototype locally help Message-ID: yo, To keep you updated, I have mysql and mysqldb installed, though perhaps incorrectly ocnfigured. here's my latest error when running syncdb: (ps - i haven't run build fixtures in a while!) i will keep at this, but if you get this message send me a note so we can combine forces! word! lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src $ ./manage.py syncdb Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", line 264, in execute_manager utility.execute() File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", line 215, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", line 70, in run_from_argv self.execute(*args, **options.__dict__) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", line 83, in execute self.validate() File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", line 110, in validate num_errors = get_validation_errors(s, app) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/validation.py", line 28, in get_validation_errors for (app_name, error) in get_app_errors().items(): File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", line 126, in get_app_errors self._populate() File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", line 55, in _populate self.load_app(app_name, True) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", line 70, in load_app mod = __import__(app_name, {}, {}, ['models']) File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/models.py", line 4, in import log, citation, user, rating, tag, graph, state File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/log.py", line 8, in import graph, citation, user, tag, rating File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/user.py", line 5, in import graph, rating, citation, tag File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/tag.py", line 8, in from django.db.backends.mysql.base import Database File "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/mysql/base.py", line 12, in raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Users/lucy/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so, 2): Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib Referenced from: /Users/lucy/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so Reason: image not found From lmendel at MIT.EDU Sat Oct 13 11:42:34 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 11:42:34 -0400 (EDT) Subject: [Dev-flock] running prototype locally help In-Reply-To: References: Message-ID: yo, Ok, that was a simple path error. I'm at the same stage as Mike and Sean, I believe: lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src $ ./manage.py loaddata database/db/fixtures/santa.json Loading 'database/db/fixtures/santa' fixtures... Installing json fixture 'database/db/fixtures/santa' from absolute path. Problem installing fixture 'database/db/fixtures/santa.json': Article matching query does not exist. Dan, is there a way to rebuild santa.json? I've run this command 22 times (exactly!) with the same error each time. I can run the prototype (/Main/node/0) but there is no data. L. On Sat, 13 Oct 2007, Lucy Mendel wrote: > yo, > > To keep you updated, I have mysql and mysqldb installed, though perhaps > incorrectly ocnfigured. here's my latest error when running syncdb: > (ps - i haven't run build fixtures in a while!) > i will keep at this, but if you get this message send me a note so we can > combine forces! > word! > > lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src > $ ./manage.py syncdb > Traceback (most recent call last): > File "./manage.py", line 11, in > execute_manager(settings) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > line 264, in execute_manager > utility.execute() > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", > line 215, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > line 70, in run_from_argv > self.execute(*args, **options.__dict__) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > line 83, in execute > self.validate() > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", > line 110, in validate > num_errors = get_validation_errors(s, app) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/validation.py", > line 28, in get_validation_errors > for (app_name, error) in get_app_errors().items(): > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", > line 126, in get_app_errors > self._populate() > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", > line 55, in _populate > self.load_app(app_name, True) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", > line 70, in load_app > mod = __import__(app_name, {}, {}, ['models']) > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/models.py", > line 4, in > import log, citation, user, rating, tag, graph, state > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/log.py", > line 8, in > import graph, citation, user, tag, rating > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/user.py", > line 5, in > import graph, rating, citation, tag > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/tag.py", > line 8, in > from django.db.backends.mysql.base import Database > File > "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/mysql/base.py", > line 12, in > raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) > django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: > dlopen(/Users/lucy/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so, > 2): Library not loaded: > /usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib > Referenced from: > /Users/lucy/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so > Reason: image not found > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From lucy at thoughtandmemory.org Sat Oct 13 12:18:13 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Sat, 13 Oct 2007 12:18:13 -0400 (EDT) Subject: [Dev-flock] r318 - in huginmunin/trunk/web/src: database database/db/fixtures web_app Message-ID: <20071013161813.B98EB75A63@thoughtandmemory.org> reordered items in santa.json so that referenced objects have been defined earlier in file. called this reordering santa2.json. ./manage loaddata database/db/fixtures/santa2.json should load fine Added: huginmunin/trunk/web/src/database/db/fixtures/santa2.json Modified: huginmunin/trunk/web/src/database/hm_development.db huginmunin/trunk/web/src/web_app/urls.py From lmendel at MIT.EDU Sat Oct 13 12:20:56 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 12:20:56 -0400 (EDT) Subject: [Dev-flock] reordered json file worked In-Reply-To: References: Message-ID: Yo, The trick was to reorder the json file. ./manage.py laoddata santa2.json (or database/db/fixtures/santa2.json) should work. Yeah!!!! I'm going to work on add behavior now. l. On Sat, 13 Oct 2007, Lucy Mendel wrote: > yo, > Ok, that was a simple path error. I'm at the same stage as Mike and Sean, > I believe: > > lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src > $ ./manage.py loaddata database/db/fixtures/santa.json > Loading 'database/db/fixtures/santa' fixtures... > Installing json fixture 'database/db/fixtures/santa' from absolute path. > Problem installing fixture 'database/db/fixtures/santa.json': Article > matching query does not exist. > > Dan, is there a way to rebuild santa.json? I've run this command 22 times > (exactly!) with the same error each time. > > I can run the prototype (/Main/node/0) but there is no data. > > L. > > On Sat, 13 Oct 2007, Lucy Mendel wrote: > >> yo, >> >> To keep you updated, I have mysql and mysqldb installed, though perhaps >> incorrectly ocnfigured. here's my latest error when running syncdb: >> (ps - i haven't run build fixtures in a while!) >> i will keep at this, but if you get this message send me a note so we can >> combine forces! >> word! >> >> lucy at snoopy ~/Projects/Workspace/ThoughtAndMemory/trunk/web/src >> $ ./manage.py syncdb >> Traceback (most recent call last): >> File "./manage.py", line 11, in >> execute_manager(settings) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> line 264, in execute_manager >> utility.execute() >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/__init__.py", >> line 215, in execute >> self.fetch_command(subcommand).run_from_argv(self.argv) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> line 70, in run_from_argv >> self.execute(*args, **options.__dict__) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> line 83, in execute >> self.validate() >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/base.py", >> line 110, in validate >> num_errors = get_validation_errors(s, app) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/core/management/validation.py", >> line 28, in get_validation_errors >> for (app_name, error) in get_app_errors().items(): >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", >> line 126, in get_app_errors >> self._populate() >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", >> line 55, in _populate >> self.load_app(app_name, True) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/models/loading.py", >> line 70, in load_app >> mod = __import__(app_name, {}, {}, ['models']) >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/models.py", >> line 4, in >> import log, citation, user, rating, tag, graph, state >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/log.py", >> line 8, in >> import graph, citation, user, tag, rating >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/user.py", >> line 5, in >> import graph, rating, citation, tag >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/database/db/tag.py", >> line 8, in >> from django.db.backends.mysql.base import Database >> File >> "/Users/lucy/Projects/Workspace/ThoughtAndMemory/trunk/web/src/django/db/backends/mysql/base.py", >> line 12, in >> raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) >> django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: >> dlopen(/Users/lucy/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so, >> 2): Library not loaded: >> /usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib >> Referenced from: >> /Users/lucy/.python-eggs/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg-tmp/_mysql.so >> Reason: image not found >> _______________________________________________ >> 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 > From lmendel at MIT.EDU Sat Oct 13 12:47:49 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 12:47:49 -0400 (EDT) Subject: [Dev-flock] db and ui out of sync In-Reply-To: <20071013161813.B98EB75A63@thoughtandmemory.org> References: <20071013161813.B98EB75A63@thoughtandmemory.org> Message-ID: Yo, The UI is pretty out of sync with the database... I can't get things to build even. I'm not sure how this happened. Dan, does it work for you? Hopefully I can find the right revision for things to work, but I'm sorry to see the functionality go backwards. Hmm... Lucy. On Sat, 13 Oct 2007, lucy at thoughtandmemory.org wrote: > reordered items in santa.json so that referenced objects have been defined earlier in file. called this reordering santa2.json. ./manage loaddata database/db/fixtures/santa2.json should load fine > > Added: > huginmunin/trunk/web/src/database/db/fixtures/santa2.json > Modified: > huginmunin/trunk/web/src/database/hm_development.db > huginmunin/trunk/web/src/web_app/urls.py > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From lmendel at MIT.EDU Sat Oct 13 13:09:35 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 13:09:35 -0400 (EDT) Subject: [Dev-flock] santa2.json, users.json error Message-ID: Hmm. I've loaded santa2.json and users.json but I still get the error: list index out of range for {{ node.user.id }} in node_centric From lmendel at MIT.EDU Sat Oct 13 13:16:52 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 13:16:52 -0400 (EDT) Subject: [Dev-flock] santa2.json, users.json error In-Reply-To: References: Message-ID: I deleted from node_centric the line with {{ node.user.id }} (it's the {{ node.user }} part that doesn't work. I mucked with adding python for that but that introduced other errors, so for now: we can run the latest from the repo just without saying who added the node. Yeah !!! I might hard code that in just for the hell of the text. Users can't add nodes right now anyway. The style looks great Mike. I'm glad you cleaned up the parent and child stuff. Dan, I really like the db functionality you've added. I'm going to browse it some more tonight, get up to speed, and hopefully add a little more functionality. Good work guys! Clay, Bear, Chia (did the press kit) and I are heading over to the fair now. We won't ahve internet, but I have my phone. Lucy. On Sat, 13 Oct 2007, Lucy Mendel wrote: > Hmm. I've loaded santa2.json and users.json but I still get the error: > > list index out of range > for {{ node.user.id }} in node_centric > > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From dan at thoughtandmemory.org Sat Oct 13 13:49:27 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 13:49:27 -0400 (EDT) Subject: [Dev-flock] r319 - in huginmunin/trunk/web: . src/web_app/Main src/web_app/Main/views Message-ID: <20071013174927.A2C5975A63@thoughtandmemory.org> r386 at insignificant: dan | 2007-10-13 13:49:42 -0400 urls.py to include accounts Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From dan at thoughtandmemory.org Sat Oct 13 14:56:20 2007 From: dan at thoughtandmemory.org (dan@thoughtandmemory.org) Date: Sat, 13 Oct 2007 14:56:20 -0400 (EDT) Subject: [Dev-flock] r320 - in huginmunin/trunk/web: . src/web_app/Main/views Message-ID: <20071013185620.4B71475A63@thoughtandmemory.org> r389 at insignificant: dan | 2007-10-13 14:27:18 -0400 Backed out changes I didn't mean to commit. Modified: huginmunin/trunk/web/ huginmunin/trunk/web/src/web_app/Main/views/views.py From lmendel at MIT.EDU Sat Oct 13 16:27:26 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 13 Oct 2007 16:27:26 -0400 (EDT) Subject: [Dev-flock] festival going great! Message-ID: hey guys-- we have wireless!! the prototype on the server looks great. people are filling out serveys and buying comic books, too. l. From lmendel at MIT.EDU Tue Oct 16 15:10:12 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Tue, 16 Oct 2007 15:10:12 -0400 (EDT) Subject: [Dev-flock] next phase Message-ID: Yo, What is the next phase for the prototype? Navigation. Eventually there will be many behaviors, many theses (arguments attached to each behavior), and many discussion threads (arguments attached to arguments). Usability principle: Users shouldn't have to do the work to find what they're looking for. The old model is that as much information is listed on the screen as possible for the user to look through. The new model is that we do the filtering. Right now behaviors are shown vertically with arguments inlined. I think we should show behaviors horizontally right below the node's information block. The behaviors would be in a film strip, like the comic strip slide view (http://www.thoughtandmemory.org/blog/wp-content/uploads/DataHunt/index.html). This filmstrip just adds dynamic fun. The main thing is that a limited number of behaviors are shown at a time *in a designated space*, while arguments are shown below in their own designated space. Behaviors can be sorted by radio buttons that sort based on * nothing ("show all") * last modified ("most recent") * evaluations ("most popular") * ratings ("pro" "con") * tags--this is actually a *filter* operation. Selecting tags opens a div that shows check boxes labeled with tags. For our demo data set, the tags on a set of behaviors might be "Additives" and "Hoax". Eventually we may want to discover tags or sorts dynamically depending on the data set. We shouldn't show sorts or tags that return the empty set (or should at least grey them out). Etc. The vertical column now contains only arguments, and only arguments for the selected behavior (but perhaps there should still be an 'all' button to see everything. At first it shows only theses, or arguments attached directly to the behavior. Eventually we'll want to sort these, too! Arguments can be opened into the normal looking discussion thread. Usability principle cont: The user shouldn't be able to do work that doesn't help them find what they're looking for (eg, a filter option that returns the empty set, or a filter option that returns the universe). We should do as much work as we can to show the user what they're looking for (eg, automatically showing the argument thread if a selected behavior only has one argument thesis-- we should show information when the set size is small, and intelligently hide information when the set size is large. Ok, this is fairly general and intuitive, but hopefully headed in a good direction. I expect to be up and running tonight on my local machine or personal work space on the server and can start implementing (or designing the implementation for) some of this. Mike, if you have any feedback or inspiration let me know. I won't be able to complete this alone, so this will have to be a team effort. We'd like to 'go live' with the prototype Monday night, but it's not a killer deadline. We've reached the functionality necessary for user tests, and now we just need to steadily increase the functionality and usability. Todo * users should be able to add nodes and add behaviors via the ui * users should be able to navigate bheaviors and arguments using different sorts and filters * are votes being tallied correctly? they should be displayed * user status, feathers should also be tallied. and displayed on a user centric page that also shows a user's impact. Cool. Also, if you're interested in doing a work retreat on the cape some weekend soon let me know (if and when). The goal is to get together for efficient and fun work sessions (hopefully more productive than most weekends), and also to have fun in general in a friends beach house. From lucy at thoughtandmemory.org Tue Oct 16 23:50:32 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Tue, 16 Oct 2007 23:50:32 -0400 (EDT) Subject: [Dev-flock] r321 - in huginmunin/trunk/web/src/web_app/Main: . media templates views Message-ID: <20071017035032.EB1E775A63@thoughtandmemory.org> refactored templates to separate sippets into their own files. added explanations for rating numbers. added node list to node_centric when id out of range or not given. Added: huginmunin/trunk/web/src/web_app/Main/media/slide.js huginmunin/trunk/web/src/web_app/Main/templates/node_arguments_snippet.html huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html huginmunin/trunk/web/src/web_app/Main/templates/node_info_snippet.html huginmunin/trunk/web/src/web_app/Main/templates/node_list_snippet.html huginmunin/trunk/web/src/web_app/Main/templates/node_navigation_snippet.html Modified: huginmunin/trunk/web/src/web_app/Main/templates/node_centric.html huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From lucy at thoughtandmemory.org Wed Oct 17 00:30:47 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Wed, 17 Oct 2007 00:30:47 -0400 (EDT) Subject: [Dev-flock] r322 - in huginmunin/trunk/web/src/web_app/Main: media templates Message-ID: <20071017043047.4019A75A63@thoughtandmemory.org> slide.js added to base.html header started to get class tags hooked in, but haven't finished. next and prev links don't do anything. Removed: huginmunin/trunk/web/src/web_app/Main/templates/node_list.html Modified: huginmunin/trunk/web/src/web_app/Main/media/slide.js huginmunin/trunk/web/src/web_app/Main/templates/base.html huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html From eggar at thoughtandmemory.org Sat Oct 20 14:51:13 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Sat, 20 Oct 2007 14:51:13 -0400 (EDT) Subject: [Dev-flock] r323 - in huginmunin/trunk/web/src/web_app/Main: media templates Message-ID: <20071020185114.273FA75A63@thoughtandmemory.org> working on the slider Added: huginmunin/trunk/web/src/web_app/Main/media/eslides.css Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/slide.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html huginmunin/trunk/web/src/web_app/Main/templates/node_info_snippet.html From eggar at thoughtandmemory.org Sat Oct 20 16:15:45 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Sat, 20 Oct 2007 16:15:45 -0400 (EDT) Subject: [Dev-flock] r324 - huginmunin/trunk/web/src/web_app/Main/media Message-ID: <20071020201545.398F975A63@thoughtandmemory.org> Modified: huginmunin/trunk/web/src/web_app/Main/media/eslides.css huginmunin/trunk/web/src/web_app/Main/media/slide.js From eggar at thoughtandmemory.org Sat Oct 20 18:44:08 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Sat, 20 Oct 2007 18:44:08 -0400 (EDT) Subject: [Dev-flock] r325 - in huginmunin/trunk/web/src/web_app/Main: media templates views Message-ID: <20071020224408.BE41A75A63@thoughtandmemory.org> Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/slide.js huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html huginmunin/trunk/web/src/web_app/Main/views/views.py From lmendel at MIT.EDU Sat Oct 20 19:43:24 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 20 Oct 2007 19:43:24 -0400 (EDT) Subject: [Dev-flock] r325 - in huginmunin/trunk/web/src/web_app/Main: media templates views In-Reply-To: <20071020224408.BE41A75A63@thoughtandmemory.org> References: <20071020224408.BE41A75A63@thoughtandmemory.org> Message-ID: Mike, Cool. I'm glad you're tackling this. Additional features on the todo list: similar to add argument: * add behavior * add node ways to sort arguments: * most recent * most good (highest evaluations to lowest evalutions (a mix of the first two should be default... or maybe arguments with 0 evaluations are considered 'highest evaluations' until someone marks them) ways to filter arguments: * dynamically show all tags that full set of arguments have. these tags are checkboxes-- arguments are only shown if the checkbox is selected * show all arguments written by employees of the company versus not-employees of the company, or whatever user-data exists that yields non-empty and non-universe sets behaviors can be sorted similarly instead of checkboxes and such for filtering, we could automatically group arguments into their tag categories, and then just show the categories (make a hierarchy for users to navigate). feel free to be creative. I'm poking around at getting the filtering to work, but I definitely don't want to get in your way. Feel free to alter my code or redirect my efforts. If you're having any trouble with the new python/javascript api let us know. I've asked Dan to post a quick overview on the wiki so that we know what methods we should be calling and how it works. rockin! l. On Sat, 20 Oct 2007, eggar at thoughtandmemory.org wrote: > > > Modified: > huginmunin/trunk/web/src/web_app/Main/media/main.js > huginmunin/trunk/web/src/web_app/Main/media/slide.js > huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html > huginmunin/trunk/web/src/web_app/Main/views/views.py > _______________________________________________ > Dev-flock mailing list > Dev-flock at mit.edu > http://mailman.mit.edu/mailman/listinfo/dev-flock > From eggar at thoughtandmemory.org Tue Oct 23 21:25:05 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Tue, 23 Oct 2007 21:25:05 -0400 (EDT) Subject: [Dev-flock] r326 - huginmunin/trunk/web/src/web_app/Main/media Message-ID: <20071024012505.34AA275A63@thoughtandmemory.org> Modified: huginmunin/trunk/web/src/web_app/Main/media/eslides.css huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css From eggar at thoughtandmemory.org Tue Oct 23 21:30:09 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Tue, 23 Oct 2007 21:30:09 -0400 (EDT) Subject: [Dev-flock] r327 - huginmunin/trunk/web/src/web_app/Main/media Message-ID: <20071024013010.024A075A63@thoughtandmemory.org> Modified: huginmunin/trunk/web/src/web_app/Main/media/slide.js From eggar at thoughtandmemory.org Tue Oct 23 23:12:24 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Tue, 23 Oct 2007 23:12:24 -0400 (EDT) Subject: [Dev-flock] r328 - in huginmunin/trunk/web/src/web_app/Main: media media/images templates Message-ID: <20071024031224.7F31875A63@thoughtandmemory.org> Added: huginmunin/trunk/web/src/web_app/Main/media/images/Picture3.png Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html From clayward at MIT.EDU Tue Oct 23 20:44:16 2007 From: clayward at MIT.EDU (Clay Ward) Date: Tue, 23 Oct 2007 20:44:16 -0400 Subject: [Dev-flock] RSVP for TAM retreat on December 8th and 9th! Message-ID: <20071023204416.5c9ukf8thd4oo0g8@webmail.mit.edu> Hi folks! Harvard Prof and all around great guy, Pete Huybers, is donating the use of his house on the cape for our first retreat on the weekend of Dec 8th. Thanks Pete! The house is a beautiful 2-level cabin with a cranking wood stove, full kitchen, and wireless internet. There are two beds (Becca and Wayne: you get your own room too if you're not too pregnant to come) and plenty of space for sleeping bags. This will be our first formal Board Meeting! It will also be a weekend of planning, working, hot tubbing, cooking, and walking the dog along the beach. We'll use our time well: meet all at once, work on projects with subgroups, and take lots of breaks. This retreat weekend will be a turning point for ThoughtAndMemory. We will begin to elaborate on the technology that will have already been operational for several weeks by then. And we will plan the organizing of a massive community of participants. Please rsvp to let me know that you can make it! Also, please suggest topics for discussion, dietary needs and anything else. I will send a schedule and an agenda once I hear from everyone. woohoo! -clay From sean at thoughtandmemory.org Thu Oct 25 22:09:50 2007 From: sean at thoughtandmemory.org (sean@thoughtandmemory.org) Date: Thu, 25 Oct 2007 22:09:50 -0400 (EDT) Subject: [Dev-flock] r329 - huginmunin/trunk/web/src Message-ID: <20071026020950.5F10F75A63@thoughtandmemory.org> Adding quickstart database setup script. Checks for required libraries, clears database and re-initializes with santa data. Requires some dynamic user input - still working on full automation with popen(...). Should be multiplatform. Added: huginmunin/trunk/web/src/quickstart.py From lmendel at MIT.EDU Fri Oct 26 11:59:06 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Fri, 26 Oct 2007 11:59:06 -0400 (EDT) Subject: [Dev-flock] database docs online Message-ID: THanks dan! http://thoughtandmemory.org/trac/wiki/ImplementationOverview From lmendel at MIT.EDU Sat Oct 27 00:03:13 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 27 Oct 2007 00:03:13 -0400 (EDT) Subject: [Dev-flock] slashdot software Message-ID: interesting to know: slashdot's software setup http://meta.slashdot.org/article.pl?sid=07/10/22/145209 (we're definitely still playing small and scrappy, and need not worry about that now, though scale and performance issues will (hopefully!) arise eventually.) From lmendel at MIT.EDU Sat Oct 27 14:29:37 2007 From: lmendel at MIT.EDU (Lucy Mendel) Date: Sat, 27 Oct 2007 14:29:37 -0400 (EDT) Subject: [Dev-flock] rating, status computations posted Message-ID: check the designoverview: http://www.thoughtandmemory.org/trac/wiki/DesignOverview I'm filling out queries right now. Mike, The slider work will definitely be important for making the site fun to use, but perhaps we should table it temporarily to make sure the following gets in: * add node and * add behavior (just like add argument) Clay is pretty excited about how things look, and is going to hold some focus groups for feedback soon. Keep it up-- Also, do get back to us about whether you can make the retreat, Dec 8 and 9th. Let's try to meet next week sometime to coordinate what to do next, with what kind of timeframe, and also to check in with our process (which seems to be working out great, but do let me know if you want more feedback/direction/interaction etc). Good luck, Lucy. From eggar at thoughtandmemory.org Mon Oct 29 22:44:44 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Mon, 29 Oct 2007 22:44:44 -0400 (EDT) Subject: [Dev-flock] r330 - in huginmunin/trunk/web/src/web_app/Main: . media templates views Message-ID: <20071030024444.BA33575B41@thoughtandmemory.org> added a couple of links under the slider to add new node/behavior. add_new_node is working, add_new_behavior isn't saving to the database yet, I think its because I'm not creating the new behavior with the right parameters in views.add_new_behavior. also, doesn't work in IE yet. Modified: huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html huginmunin/trunk/web/src/web_app/Main/urls.py huginmunin/trunk/web/src/web_app/Main/views/views.py From lucy at thoughtandmemory.org Tue Oct 30 12:08:21 2007 From: lucy at thoughtandmemory.org (lucy@thoughtandmemory.org) Date: Tue, 30 Oct 2007 12:08:21 -0400 (EDT) Subject: [Dev-flock] r331 - huginmunin/trunk/web/src/web_app/Main/media Message-ID: <20071030160821.BE18A75B41@thoughtandmemory.org> fixed css errors in stylesheet.css. please look at the diff to see what they were as a reminder (end lines with ';', use /* */ for comments, etc). now that they're fixed things look funny, but i'm sure that can be fixed up soon. more to the point, i thought perhaps they were responsible for behaviors not displaying their arguments when i click on them. i will investigate further when i have time. Modified: huginmunin/trunk/web/src/web_app/Main/media/stylesheet.css From eggar at thoughtandmemory.org Tue Oct 30 22:20:46 2007 From: eggar at thoughtandmemory.org (eggar@thoughtandmemory.org) Date: Tue, 30 Oct 2007 22:20:46 -0400 (EDT) Subject: [Dev-flock] r332 - in huginmunin/trunk/web/src/web_app/Main: media templates views Message-ID: <20071031022046.3A8B175B41@thoughtandmemory.org> works in IE, add_new_behavior isnt saving yet Modified: huginmunin/trunk/web/src/web_app/Main/media/main.js huginmunin/trunk/web/src/web_app/Main/templates/node_behaviors_snippet.html huginmunin/trunk/web/src/web_app/Main/views/views.py From danring at MIT.EDU Wed Oct 31 00:53:47 2007 From: danring at MIT.EDU (Daniel Ring) Date: Wed, 31 Oct 2007 00:53:47 -0400 Subject: [Dev-flock] Reorganization In-Reply-To: <20071031022046.3A8B175B41@thoughtandmemory.org> References: <20071031022046.3A8B175B41@thoughtandmemory.org> Message-ID: <47280A5B.7010603@mit.edu> hey all, Unless someone tells me not to, I'm going to reorganize the file structure of the /web repository. Since development is currently happening under /web/doc, /web/src/database/db, and /web/src/web_app/Main, I want to remove the unused/unnecessary parts of the file structure and shrink it to: /web/doc, /web/db, /web/app, /web/middleware, etc. the /web/app directory will contain /view, /template, /js, /css, /img. I'll fix all the appropriate python module references, urls, javascript/css/image/link/ajax addresses, and thoughtandmemory.org apache server settings before I commit, so there shouldn't be any breakage unless you run your own apache server. (And I can't fix your unique 'settings.py' changes, but I'll add a directory /env to hold developer/server-specific settings.) Note that all the old files will still be accessible from the repository in past revisions. Use the '-r' switch with 'svn checkout' if you want these. The old/unused files just won't needed in new checkouts So two things: 1. If you think this is a bad idea, or have another proposal, reply to dev-flock. 2. If you have any pending changes to commit, please do so or let me know by tomorrow night if you want me to hold off. Otherwise, I'll probably commit the new structure late tomorrow night, say 10pm or so. yeah. dan