Re: editing multiple records

2006-01-24 Thread patrick kranzlmüller
are there any plans to integrate this feature? thanks, patrick Am 24.01.2006 um 15:58 schrieb Adrian Holovaty: On 1/24/06, patrick k <[EMAIL PROTECTED]> wrote: we have several tables for things like "films of the week", "top trailers" and so on. these tables consist of 5 to 15 records. now

Re: field lookups: isnull

2006-01-23 Thread patrick kranzlmüller
ok, i have to use writeboard_list = project.get_writeboard_list(parent__isnull=True) not sure if this is continous. patrick Am 23.01.2006 um 16:24 schrieb patrick kranzlmüller: writeboard_list = project.get_writeboard_list(parent__id__isnull=True) doesn´t give any results (although there

field lookups: isnull

2006-01-23 Thread patrick kranzlmüller
writeboard_list = project.get_writeboard_list(parent__id__isnull=True) doesn´t give any results (although there are some records with parent_id NULL in the database) the other way round, writeboard_list = project.get_writeboard_list(parent__id__isnull=False) works fine. any suggestions? patr

Re: passing additional parameters to a view

2006-01-17 Thread patrick kranzlmüller
since my server is down again, i can´t verify the code. anyway, thanks everybody for your help. patrick Am 17.01.2006 um 16:19 schrieb Adrian Holovaty: On 1/17/06, scum <[EMAIL PROTECTED]> wrote: Okay- that is a lot trickier. Here's some yucky code that uses the exec command to accomplish

Re: passing additional parameters to a view

2006-01-17 Thread patrick kranzlmüller
hmm, i thought this is quite easy as it´s already used in the admin-interface (with filters). thanks for the code, patrick Am 17.01.2006 um 16:14 schrieb scum: Okay- that is a lot trickier. Here's some yucky code that uses the exec command to accomplish the same goal... but it's definitel

Re: passing additional parameters to a view

2006-01-17 Thread patrick kranzlmüller
unfortunately, it doesn´t. Am 17.01.2006 um 15:53 schrieb Andreas Stuhlmüller: On 1/17/06, patrick kranzlmüller <[EMAIL PROTECTED]> wrote: actually, i don´t really know my query parameters. could be responsible__id__exact=5 or status__exact=1 or responsible__id__exact=5&statu

Re: passing additional parameters to a view

2006-01-17 Thread patrick kranzlmüller
thanks for answering. actually, i don´t really know my query parameters. could be responsible__id__exact=5 or status__exact=1 or responsible__id__exact=5&status__exact=5 ... and so on. so, it´d be nice to have something like milestones_list = milestones.get_list(x), where x is the query. th

passing additional parameters to a view

2006-01-17 Thread patrick kranzlmüller
my url looks like: http://mysite.com/manage/projects/1/milestones/?responsible__id__exact=1 in the user-group, i found a posting where adrian said: "The query parameters are, essentially, the same as keyword arguments that can be passed to get_list(). " can anybody give me a hint on how to ac

Re: Dreamhost - problem with Django installation

2006-01-13 Thread patrick kranzlmüller
i also have the error (in error.log) you mentioned when dreamhost has problem with my server - which happens very often lately (about twice a day). besides that, i followed the steps in the wiki and everything works fine. patrick Am 13.01.2006 um 17:00 schrieb PythonistL: I am trying to

Re: manipulators and action log

2006-01-09 Thread patrick kranzlmüller
we´re working on a basecamp-like project management system which we´ll include into the admin-interface. therefore, we´re having custom views (based on Add- and ChangeManipulator) and we´d like to log user-actions. maybe i should just import log_add_message (e.g.) from admin.main. then again,

deleting multiple objects

2006-01-04 Thread patrick kranzlmüller
i like the way, related objects are being displayed (and deleted) in the admin-interface and i´d like to integrate that into my application. is there a way to display (and delete) multiple related objects using generic views? right now, i am importing some stuff from admin.main like _get_d

manipulators and action log

2006-01-02 Thread patrick kranzlmüller
when using AddManipulator or ChangeManipulator, is there a convenient way of logging actions in admin_log? patrick

Re: get_list() with foreignkey-parameters

2005-12-19 Thread patrick kranzlmüller
thanks. i then used milestone_list = milestones.get_list(responsible__id__exact=request.user.id) to display the milestones for the logged-in user. seems to work. Am 19.12.2005 um 17:07 schrieb Adrian Holovaty: On 12/19/05, patrick kranzlmüller <[EMAIL PROTECTED]> wrote: this work

get_list() with foreignkey-parameters

2005-12-19 Thread patrick kranzlmüller
first issue: this works fine: milestone_list = milestones.get_list(id__exact=3, order_by=['-id']) this doesn´t: milestone_list = milestones.get_list(responsible__exact=1, order_by=['-id']) the model looks like; responsible = meta.ForeignKey(auth.User) second issue: i´m now able to display

Re: user information on website

2005-12-19 Thread patrick kranzlmüller
thanks, "context = Context( request )" was the key. Am 19.12.2005 um 15:38 schrieb Bryan Murdock: On 12/19/05, patrick kranzlmüller <[EMAIL PROTECTED]> wrote: i´m sorry if this is a trivial question, but i´m struggling with getting the username displayed on my app. user i

user information on website

2005-12-19 Thread patrick kranzlmüller
i´m sorry if this is a trivial question, but i´m struggling with getting the username displayed on my app. user is already logged in, using django authentication (for my app is part of the admin-interface) - i just need to output the name. patrick

Re: [NOOB] ImportError: No module named django.core

2005-12-13 Thread patrick kranzlmüller
[patrick] ImportError: No module named django.core By a weird coincidence I hit this just last night, and eventually worked out that it was because I'd added a source file called "site.py". (My site.py was being imported in place of Python's own site.py, which is partly responsible for se

Re: [NOOB] ImportError: No module named django.core

2005-12-13 Thread patrick kranzlmüller
On Dec 13, 2005, at 9:43 PM, patrick kranzlmüller wrote: i just wanted to create a new app using django-admin.py startapp manage and i get the error ImportError: No module named django.core by the way, i already created an app last week, which worked fine. patrick This is due to old

[NOOB] ImportError: No module named django.core

2005-12-13 Thread patrick kranzlmüller
i just wanted to create a new app using django-admin.py startapp manage and i get the error ImportError: No module named django.core by the way, i already created an app last week, which worked fine. patrick

Re: templates & content-elements

2005-11-17 Thread patrick kranzlmüller
i´d like to do something similar to TemplaVoila (used within Typo3). i don´t like Typo3 at all, but their concept of "Futuristic Template Building" is really good, i think. if anyone has an idea of how to implement this functionality with django, please let me know. patrick