Re: errors dictionary

2006-05-01 Thread PythonistL
Ivan,Thank you for your reply. Best regards, L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group

Non English characters in URL

2006-05-01 Thread PythonistL
Is it possible to use non English characters in URL?To explain, in my urls.py I use (r'^shop/(?P.*?)/(?P.*?)/','shopproject.apps.shop.views.shop.IndexByCategory'), where category_name can consist non English characters.In my view i use def IndexByCategory(request,shop_name,category_name): ...

[M-R] order by on custom SELECT column

2006-05-01 Thread Cheng Zhang
On the models of tutorial 1, I want to get a list of Poll, order by how many choices it has. class Poll(models.Model): question = models.CharField(maxlength=200) pub_date = models.DateTimeField('date published') class Choice(models.Model): poll = models.ForeignKey(Poll) cho

Re: How can users only edit their own files?

2006-05-01 Thread layik
Thanks Max & James, that did it. I was terrified and I couldnt do any work yesterday, I should have come back here soon after. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Re: How can users only edit their own files?

2006-05-01 Thread layik
Hi Olive, I couldnt do that, anywhere I can find more help about that? the notes seem to be too difficult for me, I would need more help on those, coz I have two types of staff who do differnet things. thanks --~--~-~--~~~---~--~~ You received this message becau

Re: Non English characters in URL

2006-05-01 Thread gabor
PythonistL wrote: > Is it possible to use non English characters in URL?To explain, > > in my urls.py I use > > (r'^shop/(?P.*?)/(?P.*?)/','shopproject.apps.shop.views.shop.IndexByCategory'), > > where > category_name > can consist non English characters.In my view i use > > def IndexByCategor

Re: Non English characters in URL

2006-05-01 Thread James Bennett
On 5/1/06, gabor <[EMAIL PROTECTED]> wrote: > but then it also depends on the browser, for example firefox > (intentionally) does not display them correctly... Actually, in this case there are multiple "correct" ways to display the characters; one is to render the Unicode glyphs, which is what Sa

Checking if ManyToManyField is empty in pre_save function

2006-05-01 Thread Dagur
Hi, I have a ManyToManyField called "authorised" (which is supposed to be a list of users) and a BooleanField called "is_private" which should be set to false if there are no users in "authorised" so I did this: def save(self): if self.authorised.count() == 0: self.is_priv

Re: Non English characters in URL

2006-05-01 Thread gabor
James Bennett wrote: > On 5/1/06, gabor <[EMAIL PROTECTED]> wrote: >> but then it also depends on the browser, for example firefox >> (intentionally) does not display them correctly... > > Actually, in this case there are multiple "correct" ways to display > the characters; one is to render the U

Re: Django-based wiki engine

2006-05-01 Thread iGL
Hi Daniel, Thank you for the hint. Your wiki app is nicely designed! Meanwhile, I launched a project, - empty, right now, - to make a plugable wiki engine: http://www.self-propelled-python.com/trac/knossos/ Everybody willing to participate is welcome. greetings, Giorgi --~--~-~--~---

Re: Django-based wiki engine

2006-05-01 Thread Dmitry Sorokin
Daniel Poelzleithner ÐÉÛÅÔ: >It's part of a django suite for public mash networks: >http://ff-firmware.quamquam.org/trac/browser/ffsomething/trunk > > > what would be the proper command line to checkout the svn code? WBR, dimas --~--~-~--~~~---~--~~ You receive

Re: MR Branch diff than MR trunk?

2006-05-01 Thread Sandro
How often do you use svn to ensure that you're at the latest version? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsub

Re: Checking if ManyToManyField is empty in pre_save function

2006-05-01 Thread Luke Plant
On Monday 01 May 2006 12:08, Dagur wrote: > On further inspection I found out > that the "authorised" field is set to all users before saving but is > empty after saving. > > >>> t = Topic() > >>> t.authorised.count() > > 2773L > > >>> t.save() > >>> t.authorised.count() > > 0L > > Is this the de

Re: Custom manipulator - multiple records

2006-05-01 Thread yml
Hi winston, I a couple of weeks ago I was thinking about using this method to solve one of the pb I was facing. I don't see anything there that should not work, also I have never done such thing. Could you please let us know what is exactly your problem? If there is one, :-), could you also post

Re: __repr__ or __str__?

2006-05-01 Thread gegard
I took a copy of the MR branch yesterday and worked through the rather good tutorial this morning (at least to the end of #3 - I began to lose my way in #4 in my first pass through). I found that the recommended __str__ method in tutorial #1 did not produce the human-readable output (still giving

Re: Checking if ManyToManyField is empty in pre_save function

2006-05-01 Thread Ivan Sagalaev
Luke Plant wrote: >It would be possible to get Django to throw an exception in this case. >What do people think about that? > > I think it makes sense. As well as documenting that though dependent objects (both M2M and 12M) look like they are belong to the parent they really can't be proces

ordering by fields in related objects

2006-05-01 Thread pbx
This may be a dumb question but I've been banging my head against it for a while. Two questions, actually. (I'm using the M-R branch.) 1) How can I use a field in a related model in a Meta.ordering clause? E.g. I want my Articles sorted by Reporter.lastname 2) How can I use a computed value in

Re: ordering by fields in related objects

2006-05-01 Thread pbx
> plugging the FK field into the ordering clause produces an > OpertationalError, "Unknown table > 'RELATED_TABLE_THAT_MOST_CERTAINLY_IS_KNOWN' in order clause." Sorry, I meant to say specifically that this happens when I search in the admin. pb --~--~-~--~~~---~--~

Send POST data for unchecked checkboxes

2006-05-01 Thread Sam Tran
Hi All, I am having the problem described in ticket 1045: http://code.djangoproject.com/ticket/1045 Was this problem fixed in Django 0.91? Thanks in advance. Regards, Sam --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Re: Send POST data for unchecked checkboxes

2006-05-01 Thread Luke Plant
On Monday 01 May 2006 20:03, Sam Tran wrote: > I am having the problem described in ticket 1045: > http://code.djangoproject.com/ticket/1045 > > Was this problem fixed in Django 0.91? It was closed as a WONTFIX, so I doubt it (the patch certainly has not been applied). The problem you are havi

Apache and static files

2006-05-01 Thread tgone
Hello, I followed the tutorial on how to serve static files with Apache+mod_python but I'm still having problems. I get a 404 when I try to access an image at http://localhost/project/media/test.png. I know for sure that mod_python is disabled for the /media/ dir, but I can't get the images to di

Re: Apache and static files

2006-05-01 Thread Steven Armstrong
On 05/01/06 22:36, tgone wrote: > Hello, > > I followed the tutorial on how to serve static files with > Apache+mod_python but I'm still having problems. I get a 404 when I try > to access an image at http://localhost/project/media/test.png. I know > for sure that mod_python is disabled for the /

Re: Send POST data for unchecked checkboxes

2006-05-01 Thread Sam Tran
On 5/1/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Monday 01 May 2006 20:03, Sam Tran wrote: > > > I am having the problem described in ticket 1045: > > http://code.djangoproject.com/ticket/1045 > > > > Was this problem fixed in Django 0.91? > > It was closed as a WONTFIX, so I doubt it (the

Re: Apache and static files

2006-05-01 Thread tgone
Steven Armstrong wrote: > On 05/01/06 22:36, tgone wrote: > > Hello, > > > > I followed the tutorial on how to serve static files with > > Apache+mod_python but I'm still having problems. I get a 404 when I try > > to access an image at http://localhost/project/media/test.png. I know > > for sure

FileField fieldRequired error

2006-05-01 Thread layik
Hi, I have read this thread: http://groups.google.com/group/django-users/browse_frm/thread/399360004a8d0716/d6d355feecef7f7a?q=filefield+error&rnum=6#d6d355feecef7f7a please help me to use those two {{form.field}}{{form.field_file}} when I do my template! do I creat two differnet lables? do I

Re: Apache and static files

2006-05-01 Thread Steven Armstrong
On 05/01/06 22:51, tgone wrote: > > Steven Armstrong wrote: >> On 05/01/06 22:36, tgone wrote: >> > Hello, >> > >> > I followed the tutorial on how to serve static files with >> > Apache+mod_python but I'm still having problems. I get a 404 when I try >> > to access an image at http://localhost/p

Re: Send POST data for unchecked checkboxes

2006-05-01 Thread Luke Plant
On Monday 01 May 2006 21:47, Sam Tran wrote: > On 5/1/06, Luke Plant <[EMAIL PROTECTED]> wrote: > > On Monday 01 May 2006 20:03, Sam Tran wrote: > > > I am having the problem described in ticket 1045: > > > http://code.djangoproject.com/ticket/1045 > > > > > > Was this problem fixed in Django 0.9

Django Architect/Developer Consultant needed Immediately

2006-05-01 Thread Digital Variant
Hello all, Digital Variant, an Interactive Services shop is looking for an experienced Django Architect/Developer to help guide our app architecture and potentially work as a freelance developer on a number of current/future projects. We are using Django as the framework to develop next generation

FilePathField blank=True

2006-05-01 Thread Adam
(in M-R) I have a model with this field: image = models.FilePathField(path='/my/path', blank=True, null=True) In the admin interface, the image field shows up dimmed like the rest of the optional fields. However the select list lists all the files in /my/path, without any blank option. So you ar

Re: Custom manipulator - multiple records

2006-05-01 Thread Winston Lee
No error message, but I don't know how to populate the _inline_collections property in FormWrapper. FormWrapper has a fill_inline_collections method: def fill_inline_collections(self): if not self._inline_collections: ic = [] related_objects = self.manipulator.get_related_obje

ATTENTION: magic-removal being merged to trunk TODAY

2006-05-01 Thread Adrian Holovaty
Attention all users of the Django development version (a.k.a. trunk)! We are merging the magic-removal branch to trunk this evening, Monday, May 1. Do not "svn update" your Django code unless you're ready to convert your code to magic-removal syntax. If you "svn update" by mistake and aren't ye

Re: FileField fieldRequired error

2006-05-01 Thread layik
layik wrote: > Hi, > > I have read this thread: > http://groups.google.com/group/django-users/browse_frm/thread/399360004a8d0716/d6d355feecef7f7a?q=filefield+error&rnum=6#d6d355feecef7f7a > > > please help me to use those two {{form.field}}{{form.field_file}} when > I do my template! > > do I cre

Re: __repr__ or __str__?

2006-05-01 Thread Malcolm Tredinnick
Hi Geoff, On Mon, 2006-05-01 at 07:46 -0700, gegard wrote: > I took a copy of the MR branch yesterday and worked through the rather > good tutorial this morning (at least to the end of #3 - I began to lose > my way in #4 in my first pass through). Three out of four isn't bad on the first path. T

Re: FileField fieldRequired error

2006-05-01 Thread layik
layik wrote: > Hi, > > I have read this thread: > http://groups.google.com/group/django-users/browse_frm/thread/399360004a8d0716/d6d355feecef7f7a?q=filefield+error&rnum=6#d6d355feecef7f7a > > > please help me to use those two {{form.field}}{{form.field_file}} when > I do my template! > > do I cre

Re: FileField fieldRequired error

2006-05-01 Thread Malcolm Tredinnick
On Tue, 2006-05-02 at 00:46 +, layik wrote: > > layik wrote: > > Hi, > > > > I have read this thread: > > http://groups.google.com/group/django-users/browse_frm/thread/399360004a8d0716/d6d355feecef7f7a?q=filefield+error&rnum=6#d6d355feecef7f7a > > > > > > please help me to use those two {{for

Re: FileField fieldRequired error

2006-05-01 Thread layik
I really appreciate all that you say! I am sorry just realised I typed in capital letters. I really tried more than 10 combinations, searched for all possible keywords here, tried all the documentations, compared my produced HTML with some from the admin one I have and this is what I get for HTML

ANN: magic-removal branch merged to trunk

2006-05-01 Thread Adrian Holovaty
All, We've merged the magic-removal branch to trunk. All Django development will focus primarily on the branch formerly known as magic-removal, and all documentation on djangoproject.com will focus on the development version. Previous versions of the documentation are here: http://www.djang

Re: ATTENTION: magic-removal being merged to trunk TODAY

2006-05-01 Thread Max Battcher
Adrian Holovaty wrote: > Attention all users of the Django development version (a.k.a. trunk)! > > We are merging the magic-removal branch to trunk this evening, Monday, May 1. > > Do not "svn update" your Django code unless you're ready to convert > your code to magic-removal syntax. > > If yo

Re: ANN: magic-removal branch merged to trunk

2006-05-01 Thread Cheng Zhang
Fantastic! Django rocks the world. Thanks for the hard work of Django team and all participant all over the world. On May 2, 2006, at 9:50 AM, Adrian Holovaty wrote: > We'd like to thank ALL the dozens of people, all over the world, who > have submitted code, documentation, bug reports and oth

Google SoC: Call for student applications

2006-05-01 Thread Jacob Kaplan-Moss
Howdy folks -- Google's opened up the Summer of Code student application process, so if you (a) are a student (at any level) and (b) want to make $4500 this summer hacking on Django, go apply! All the Django-specific info is over at http://code.djangoproject.com/ wiki/SummerOfCode2006 and t