Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-27 Thread limodou
You can read this thread, and someone given a patch, you can test it. The newest code is in the svn. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide <>: http://code.google.com/p/meide/ My Blog: http://www.donews

Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread limodou
e the svn http://code.google.com/p/db-dump/, but I haven't tested it, so maybe Matthew can help me to test it. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide <>: http://code.google.com/p/meide/ My Blog: http://www.donews.net/limodou --~--~-~--~

Re: GeoDjango--no "django_session_id_seq" with pgsql?

2007-10-26 Thread limodou
seq') cursor.execute('ALTER SEQUENCE %s RESTART WITH %d;' % (seq, nb)) So I think maybe this function makes the bug, and can someone help me to fix it? -- I like python! UliPad <>: http://code.google.com/p/ulipad/ meide <>: http://code.google.com/p/meide/ My Blog:

Re: Taming management.py, the 1730-line behemoth

2007-08-15 Thread limodou
nt.py can find them. And this could be treated as global command extension. And for per installed app, there maybe also a `commands` folder, and management.py can find all command script file according to all installed apps' `commands` folder. Just a suggestion. -- I like python! UliPad <&

Re: Taming management.py, the 1730-line behemoth

2007-08-15 Thread limodou
led apps. -- I like python! UliPad <>: http://code.google.com/p/ulipad/ My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: Breaking out Django templates into a standalone library

2007-08-08 Thread limodou
> Plainly put, the system should work without requiring configuration. I agree! -- I like python! UliPad <>: http://code.google.com/p/ulipad/ My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subs

Question about UserProfile

2007-03-05 Thread limodou
, this will make the information is out of sync. Or if I can disable this cache process in User Model? -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message bec

Re: suggestion for a slightly extended {% for ... in ... %} tag

2007-02-17 Thread limodou
> > > > for i in zip(L1,L2) > > > > +0 - I like this feature, but I didn't know when I first looked at it > > whether its a zip() or concatenation, that should be clear > > +0 > For the same reason Honza mentioned. I would be ok with introduci

Re: Some ideas for Django ;)

2007-02-05 Thread limodou
de.djangoproject.com/ticket/2539 -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django develope

Re: Some ideas for Django ;)

2007-02-04 Thread limodou
0. pay more attention to Google Summer of code projects. Last > projects are still far from being merged and for some of them even > finished... Fulltext search is nice feature but now it's just a wish. > +1 -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/

Re: Subversion change notifications

2006-12-29 Thread limodou
in django update google group http://groups.google.com/group/django-updates -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Enhancement:Open tag cannot support multiline

2006-12-28 Thread limodou
On 12/29/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: On 12/28/06, limodou <[EMAIL PROTECTED]> wrote: > > I found if I write the tag like that: > > {{{ > {% extends > "base.html" %} > }}} > > Django will complains an error about it. So I

Re: Enhancement:Open tag cannot support multiline

2006-12-28 Thread limodou
On 12/29/06, limodou <[EMAIL PROTECTED]> wrote: On 12/29/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 12/28/06, limodou <[EMAIL PROTECTED]> wrote: > > > > I found if I write the tag like that: > > > > {{{ > > {% extends > > &

Enhancement:Open tag cannot support multiline

2006-12-28 Thread limodou
jangoproject site from China. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&

Re: newforms: feedback

2006-12-26 Thread limodou
http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send

Re: why error: (10054, 'Connection reset by peer') when add user?

2006-12-24 Thread limodou
But it seems that no one fixed it till now. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: [Proposal]newforms render can use subtemplate

2006-12-15 Thread limodou
at in __str__ I'll get a form_template, and use it to render the html code. So user can change the template, and make his own html code, and don't need to change the source code at all, just change the template code is enough. -- I like python! UliPad <>: http://wiki

[Proposal]newforms render can use subtemplate

2006-12-14 Thread limodou
change these templates, and this will make the representation is separated from the soure code. So I think newforms can also support this appoach. Just a suggestion. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/l

Re: fixed the problem about simplejson in utf-8 when use chinese

2006-12-07 Thread limodou
ot unicode. And you should convert it to unicode. Of cause you can convert it to unicode manually, and the other way you can use a public method to do this thing. Both are the same. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou

Re: fixed the problem about simplejson in utf-8 when use chinese

2006-12-07 Thread limodou
On 12/8/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > >> Why not use unicode object directly ? > >> > >> dict={"adviser":u"n.顾问, <美> (学生的)指导老师","od":"dd"} > >> > > because d

Re: fixed the problem about simplejson in utf-8 when use chinese

2006-12-07 Thread limodou
t a unicode string, and just like I descibed that there are some objects which can be convert to string. -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/limodou --~--~-~--~~~---~--~~ You received

Re: fixed the problem about simplejson in utf-8 when use chinese

2006-12-07 Thread limodou
'__str__') and callable(getattr(a, '__str__'))): if getattr(a, '__str__'): a = str(a) return unicode(a, encoding) is not like your. Because for some objects their type are not string, but they can be convert to string. So you sho

Re: active tickets with patches

2006-12-06 Thread limodou
On 12/7/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 12/7/06, limodou <[EMAIL PROTECTED]> wrote: > > > > On 12/7/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > > > On 12/6/06, limodou <[EMAIL PROTECTED]> wrote

Re: active tickets with patches

2006-12-06 Thread limodou
On 12/7/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 12/6/06, limodou <[EMAIL PROTECTED]> wrote: > > > > > [1] Note that 'non-trivial' doesn't just mean 'only affects 1-2 lines > > > of code' - it also includes

Does anyone has seen toscawidgets

2006-12-06 Thread limodou
http://www.toscawidgets.org/ I think toscawidgets does not only aim for widgets, but also aims for plugable components. Anyone has any ideas? -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: http://www.donews.net/l

Re: active tickets with patches

2006-12-05 Thread limodou
ng > modified don't have a significant follow-on effect on the overall > design of Django. > All above are aimed to submitter, I think that are very good. But I hope that the developers of django team should do something. For example simply close them, it means that these tickets

Re: Enhance enclose tag template process

2006-12-03 Thread limodou
tax, I think it's a thing for developer, and if the developer want more powerful , why django must disable the idea, and many things in django also has been changed. What I want just a support but not an implementation, and this support is not only aimed introduc

Re: Enhance enclose tag template process

2006-12-02 Thread limodou
On 12/3/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 12/2/06, limodou <[EMAIL PROTECTED]> wrote: > > 1. The expression can be a python expression, so you don't need > > ifequal, ifnotequal, and the expression will be more flexiable. > > 2. It will

Enhance enclose tag template process

2006-12-02 Thread limodou
lif tag usage. Expr can be found at http://code.djangoproject.com/wiki/ExprTag Hope this tag will be useful! And the pyif can be found at: http://code.djangoproject.com/wiki/PyifTag -- I like python! UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad My Blog: htt

Re: Extend URL resolver support for HTTP Methods / REST support

2006-09-22 Thread limodou
thout adding noise to the whole urlresolver. > > Any ideas? > -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~~ You

Re: Extend URL resolver support for HTTP Methods / REST support

2006-09-22 Thread limodou
On 9/22/06, Simon de Haan <[EMAIL PROTECTED]> wrote: > Hi Limodou, > > Not sure about your decorator idea, personally I think it goes beyond the > scope of the url's in general and django's urlpatterns and is quite view > specific. > > Any ideas about imp

Re: Extend URL resolver support for HTTP Methods / REST support

2006-09-22 Thread limodou
bout the format, just an idea. So we don't need to write the decorator in the view code, just write them in urls.py. And I think it will be easier maintained. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http:/

[Suggestion]Simple Ajax communication data structure suggestion

2006-09-20 Thread limodou
or message, so I suggest using '_':[errormessage1, errormessage2]. -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~~

Re: Proposal: Forms and BoundForms

2006-09-12 Thread limodou
(don't repeat them again, that's good, I don't think them before) -- I like python! My Blog: http://www.donews.net/limodou UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad UliPad Maillist: http://groups.google.com/group/ulipad --~--~-~--~~~---~--~---

Re: Was:[Django] #2656: After creating a new user with create_user, calling login is failed

2006-09-05 Thread limodou
On 9/5/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 9/5/06, limodou <[EMAIL PROTECTED]> wrote: > > So I think the later is more comfortable. But there is no automaticly > > authenticate in create_user, so for now, I must write like the former. > > As I

Was:[Django] #2656: After creating a new user with create_user, calling login is failed

2006-09-05 Thread limodou
(request, user) else ... I want to write: user = User.objects.create_user(...) login(request, user) So I think the later is more comfortable. But there is no automaticly authenticate in create_user, so for now, I must write like the former. What do you think, everyone? -- I like python!

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > > On 24/08/2006, at 2:00 PM, limodou wrote: > > > > > On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > >> > >> so Limodou. > >> > >> what's the next step. >

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/24/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > so Limodou. > > what's the next step. > have you got a prototype of it ? or a idea on how it will work? > I've got a old linux box you can use to host it until it gets popular. No, I haven't a plan abo

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
On 8/24/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > I think if this functionality built on django official site is the > > better, because every djangor can easy find it. I think the first > > stage could be the index site supplied by django si

Re: Proposal: Django Apps & Project Repository (again)

2006-08-23 Thread limodou
ngor can easy find it. I think the first stage could be the index site supplied by django site, and the exact projects could be found everywhere. And the second stage could be hosting the most django relative projects in django repository site. -- I like python! My Blog: http://www.donews.net/lim

Re: Proposal: Django Apps & Project Repository (again)

2006-08-22 Thread limodou
On 8/23/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > There are some threads talking about the apps repository already, but > > till now, no repository be found. So I want to suggest again: we > > should build an official project web site to ho

Re: Improved Norwegian translation files

2006-08-21 Thread limodou
/newticket, and upload the updated files in the ticket. And anything about i18n should be discussed in django-i18n maillist. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~

[Fw]The Python Web Framework

2006-08-21 Thread limodou
http://www.cmlenz.net/blog/2006/08/the_python_web_.html Some points I think are reasonable, for example: django configuration -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit

Re: Proposal: Django Apps & Project Repository (again)

2006-08-20 Thread limodou
On 8/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi limodou, > > limodou schrieb: > > There are some threads talking about the apps repository already, but > > till now, no repository be found. So I want to suggest again: we > > should build an offi

Proposal: Django Apps & Project Repository (again)

2006-08-20 Thread limodou
enought, and why we still need to wait 1.0, if there is an official web site to host these things, we can reuse others source code easily and make django more improvement I think. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist

Re: Proposal: Can custom tag use namespace

2006-08-13 Thread limodou
On 8/13/06, limodou <[EMAIL PROTECTED]> wrote: > On 8/13/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > On 8/7/06, limodou <[EMAIL PROTECTED]> wrote: > > > How to use namespace? For example, > > > > > > {% load example %

Re: Proposal: Can custom tag use namespace

2006-08-12 Thread limodou
On 8/13/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/7/06, limodou <[EMAIL PROTECTED]> wrote: > > How to use namespace? For example, > > > > {% load example %} > > {% example.testtag %} > > > > And I think if the namespace can be op

Re: django unicode-conversion, beginning

2006-08-10 Thread limodou
well while not being a standard > ISO name which is 'windows-1251' and works well also. > > So may be we can just rely on Python's smart little brain and do > something like this: > In python Lib/encodings/aliases.py, you would find the encod

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread limodou
On 8/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 8/7/06, limodou <[EMAIL PROTECTED]> wrote: > > Maybe more. So which one is the best, and whether it can be used in > > django as a default solution? And whether we need a good solution? Or > > we don&

Proposal: Can custom tag use namespace

2006-08-07 Thread limodou
the correct tag definition file is somewhat diffcult. If I can add namespace in the front of a custom tag name, it'll be easy to locate the source file. If it's not useful, just put it away. That's ok. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: h

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread limodou
On 8/8/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > On 08/07/06 18:39, limodou wrote: > > On 8/8/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > >> > >> limodou wrote: > >> > On 8/7/06, Kevin Menard <[EMAIL PROTECTED]

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread limodou
On 8/8/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > On 8/7/06, Kevin Menard <[EMAIL PROTECTED]> wrote: > >> On 8/7/06, Joe <[EMAIL PROTECTED]> wrote: > >>> Wouldn't you want to put your database settings (Username a

Re: Proposal: Saving SECRET_KEY in a seperate file

2006-08-07 Thread limodou
ichael Radziej suggested need to be considered. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Proposal: Enable manage.py to run my own scripts

2006-08-05 Thread limodou
nerally is better. Of course I can accept import settings now, after all it's handy enough. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---

Re: file tests

2006-08-05 Thread limodou
ons? > > Todd > Maybe you can test existence of the file and its filesize. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You recei

Re: Proposal: Enable manage.py to run my own scripts

2006-08-05 Thread limodou
On 8/6/06, Todd O'Bryan <[EMAIL PROTECTED]> wrote: > > On Aug 5, 2006, at 10:32 PM, Malcolm Tredinnick wrote: > > > On Sun, 2006-08-06 at 07:05 +0800, limodou wrote: > >> If I write my own scripts which will use models and deal with them, > &g

Re: Proposal: Enable manage.py to run my own scripts

2006-08-05 Thread limodou
On 8/6/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Sun, 2006-08-06 at 07:05 +0800, limodou wrote: > > If I write my own scripts which will use models and deal with them, > > but I also need to set PYTHONPATH and DJANGO_SETTING_MODULE evn > > variables

Proposal: Saving SECRET_KEY in a seperate file

2006-08-05 Thread limodou
ons.com/). Thanks. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Proposal: Enable manage.py to run my own scripts

2006-08-05 Thread limodou
yscripts, "main") and callable(myscripts, "main") myscripts.main() I don't know if this proposal is reasonable, if it's, I'll make it a ticket. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djan

Re: About model's manager method -- update

2006-07-21 Thread limodou
On 7/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Fri, 2006-07-21 at 15:00 +0800, limodou wrote: > > I know there is a create method in model manager class, I can use a > > dict parameter to create an object and auto save the object. And I > > want

About model's manager method -- update

2006-07-21 Thread limodou
, **params) but not: obj = Model.objects.get(pk=object_id) obj.fieldA = valueA obj.fieldB = valueB ... obj.save() -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/gro

Re: file upload progress

2006-06-07 Thread limodou
rted this POST, so it can distinguish > between concurrent uploads. > > So, where would you recommend starting to tackle the problem? > I don't know how to do this. But I remember that you can not use ajax do uploading things directly. You should use IFrame to do that. -- I like pyt

Re: [MR] -- adding functions to a model from another model

2006-04-21 Thread limodou
On 4/21/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > Hi Limodou. > Thanks for the reply. > > what I was trying to do was slightly different. > > def all_models_setup_post_init(): > for ct in Comments.get_content_types(): > ... add the query o

Re: [MR] -- adding functions to a model from another model

2006-04-20 Thread limodou
ble to construct this post_init, or something. > > but my python and MR skills are lacking.. any hints from the gurus ? > from xxx import Comment def funca(self): pass setattr(Comment, 'funcname', funca) or just Comment.funcname = funca I think is ok. -- I like python! My Bl

Re: magic-removal call for testing

2006-04-20 Thread limodou
-- no need to file a ticket on > that. We know! :) > > Timeline: Let's aim for a merge on next Friday, April 28. That should > give us enough time to work on documentation and iron out last-minute > bugs. > > This page has all you need to know about the ma

Re: dumping your django data

2006-04-17 Thread limodou
7;ll do my best to get > something online that people can discuss in the near future! > > Jacob > Great! -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~-

Re: startapp creating urls.py?

2006-04-11 Thread limodou
nience to create > the urls.py automatically. Ehh, I'm +0 either way. > > Adrian > Yes, I also remember this. So -0 Because copy urls.py from the project is easily. You can modify the project's urls.py to suit for your need. -- I like python! My Blog: http://www.donews.net/limodo

Re: Reverse URL lookup implementation

2006-04-06 Thread limodou
27;t even plan for it. Wow! Thank > you for impressing me once again! > > As soon as it matures let's create a repository for reusable Django apps. > Wow, another amazing idea. > Thanks, > > Eugene > -- I like python! My Blog: http://www.donews.net/limodou My Django Si

Re: Reverse URL lookup implementation

2006-04-06 Thread limodou
o this. Something like: > > {% link 'path.to.month_view' 2005 'apr' %} > {% link 'path.to.person_view' state='il' name='adrian' %} > > It's implemented by analyzing the regular expression, which was quite > fun. This

Re: Yet another proposal for urlconf: use urls.py! (Was: Think about urlconf again)

2006-04-05 Thread limodou
iew. It appears to be useful in some special situations, like > in the Admin. How to do it? One way is to follow "convention over > configuration" path requiring a default name (or url) to be available > for that. > > If you want to put this functionality in the model, you h

Re: How to merge two queryset, and sort the result by date

2006-04-05 Thread limodou
> results.sort(lambda a, b: cmp(a.date, b.date)) > Maybe it's the only way. Thanks a lot. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~-

How to merge two queryset, and sort the result by date

2006-04-05 Thread limodou
Say I have a digest and blog model, and I also need to search from them. And the results will come from two tables, and how to easily merge them, and sort the result by date? Or there is an alternative way to do such thing? -- I like python! My Blog: http://www.donews.net/limodou My Django Site

Re: Yet another proposal for urlconf: use urls.py! (Was: Think about urlconf again)

2006-04-04 Thread limodou
. So, if you later change to rename this field, you > have to change url configuration, which is not nice. > > Michael > I think this case is not very well. Because id will be a parameter, it'll not be an apps url prefix commonly. -- I like pyt

Re: Yet another proposal for urlconf: use urls.py! (Was: Think about urlconf again)

2006-04-04 Thread limodou
On 4/4/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > James Bennett schrieb: > > On 4/4/06, limodou <[EMAIL PROTECTED]> wrote: > >> [...] > > You've taken this completely out of context; as I understand it, Jacob > > and Adrian were

Re: Think about urlconf again

2006-04-04 Thread limodou
> On 4/4/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 4/4/06, limodou <[EMAIL PROTECTED]> wrote: > > And there are many people except me consider that: django need a good > > urls system: > > You've taken this completely out of context; as

Re: Think about urlconf again

2006-04-04 Thread limodou
On 4/4/06, binaryfeed <[EMAIL PROTECTED]> wrote: > > This has been solved in Aquarium. http://aquarium.sf.net/ > But Aquarium is not Django, it's another web framework. -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org Ne

Re: Think about urlconf again

2006-04-03 Thread limodou
On 4/4/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > No, urlconf just one place, we also have view and template need to > > deal with. > > Last I checked, none of my views have URLs, other than redirects to > relative paths like '../

Re: Think about urlconf again

2006-04-03 Thread limodou
ember there is also model need to deal with. So there are four places need to think about: 1. urlconf 2. view 3. template 4. model -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~

Think about urlconf again

2006-04-03 Thread limodou
a $ string or %() string, if there is, it'll auto check the APPS_PREFIX, and find if there is a match string, if it does so, replace the $ string or %() string, and if it does not, replace $string or %(string)s be string. So if the develop didn't define APPS_PREFIX that's ok. In

Re: magic-removal: plans/estimates for the trunk-merge?

2006-03-28 Thread limodou
e > magic-removal branch and reporting any and all problems. It's getting > to a point where it's not too horrible. :) > > Adrian > I'm using MR all the time, and I think it's good. -- I like python! My Blog: http://ww

Re: results_per_page does not work properly

2006-03-24 Thread limodou
me according to the core/paginator.py. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&

Re: results_per_page does not work properly

2006-03-24 Thread limodou
_list|length }} to get the exactly number of the objects on the page. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: results_per_page does not work properly

2006-03-24 Thread limodou
e source code about object_list, and the docstring says that: results_per_page number of objects per page (if paginated) So results_per_page is a integer but not a object list. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://

Re: Broken Filters in Template Conditional

2006-03-24 Thread limodou
gt; > it's as if it strips anything that's before the '.' > > please correct me if this is not a bug. > > It seems that ifequal tag cann't deal with filter. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/g

Re: How to use not equal in QuerySet

2006-03-20 Thread limodou
On 3/21/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > I seen that in the db-api.txt document, > > > > neNot equal to. > > > > But when I want to get the users who are not the superuser, I got the > > error below: > > &

How to use not equal in QuerySet

2006-03-20 Thread limodou
d there is no one has the 'ne' operator mapping in OPERATOR_MAPPING, so I think the document is wrong, and I want to know how to use "not equal" in query? Can anyone help me? I'm using magic-removal branch, thanks. -- I like python! My Blog: http://www.donews

Re: about template extension

2006-03-19 Thread limodou
On 3/20/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 3/19/06, limodou <[EMAIL PROTECTED]> wrote: > > But there is no editor can deal with django template, so .html maybe > > the most suitable file extension. > > TextMate has a bundle for Django temp

Re: about template extension

2006-03-19 Thread limodou
the different things. So +0 for me. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django de

Re: about template extension

2006-03-19 Thread limodou
f it and when you use editors you need some special > approach to special file types. > But there is no editor can deal with django template, so .html maybe the most suitable file extension. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://grou

Re: about template extension

2006-03-19 Thread limodou
it's just a taste thing. Django template is simple and powerful, there are only two tags definition just now, I think is enough. Maybe {# #} is better. {{ }} is the same as <%= %>. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/Ne

Re: proposal: endif, endfor etc assume whatever follows in tag is comment

2006-03-14 Thread limodou
{# comment #} is a shortcut for comment tag, I like it. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
On 3/14/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 3/13/06, limodou <[EMAIL PROTECTED]> wrote: > > Maybe or maybe not. What django has implemented is exactly as what I > > said, I think the ways is good. And I remember there was a discussion > > abo

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
I am more accustomed tiered achieved. Design more concentrated, the more impossible to separate. If django team decided not to use other orm module to replace current one, then to realize. But I said the logic of validation and custom validation is

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
On 3/14/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 3/13/06, limodou <[EMAIL PROTECTED]> wrote: > > In most cases we do not do anything alone use model, but always there > > is a ui layer, such as gui or web. They have to do any such thing. > > There

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
On 3/14/06, limodou <[EMAIL PROTECTED]> wrote: > On 3/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2006-03-14 at 09:34 +0800, limodou wrote: > > [...] > > > > > > -1 I agree with gabor. Many orm models don't process

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
On 3/14/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Tue, 2006-03-14 at 09:34 +0800, limodou wrote: > [...] > > > > -1 I agree with gabor. Many orm models don't process validation, and > > these things should be implemented by manipulator. Why do

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
On 3/14/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 3/13/06, limodou <[EMAIL PROTECTED]> wrote: > > -1 I agree with gabor. Many orm models don't process validation, and > > these things should be implemented by manipulator. Why do so much > > thi

Re: Validation-aware models: First stab

2006-03-13 Thread limodou
:) some points: > > - explicit is better than implicit > - we're removing the magic there or adding it back? :-) > - does this not tie too much the web-layer to the db-layer? > > basically.. what does the developer win wi

Re: proposal: endif, endfor etc assume whatever follows in tag is comment

2006-03-13 Thread limodou
f %}{# endif start_process #} +1 for me > > I think that original idea is cleaner: {% endif start_process %}. > > Thanks, > > Eugene if endif has a comment string, what about endifequal and others end block tags? If doing this, all these end blog tags maybe need different treate as

Re: Why settings.py option name should be capital letters

2006-03-10 Thread limodou
On 3/11/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 3/10/06, limodou <[EMAIL PROTECTED]> wrote: > > I want to put some variables in settings.py, and I used lowercase > > variable name, and I could not access the attribute from settings. And > > I che

  1   2   >