Re: ModelForms and the Rails input handling vulnerability

2012-06-19 Thread Honza Král
Thanks Luke for writing this up and representing all views. I am the proponent of "we are all adults here". On Thu, Jun 14, 2012 at 6:48 AM, Anssi Kääriäinen wrote: > ... > I hadn't realized all fields present on the Python form but not in the > HTML form will get

Re: ModelForms and the Rails input handling vulnerability

2012-06-19 Thread Honza Král
> On Tue, Jun 19, 2012 at 8:42 PM, Honza Král <honza.k...@gmail.com> wrote: >> I believe exclude is way more useful than fields (I do see the >> security advantage but in my mind this is the case where convenience >> beats security, also still afraid of

[GSoC] model validation

2009-05-12 Thread Honza Král
//honzakral.com/validation.pdf Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send ema

[GSoC] model validation - update

2009-05-17 Thread Honza Král
, all_values={}, model_instance=None): ... I will start actual work the week after the next one, I will start with porting the unique validation and writing more tests (possibly migrating some tests from doctest to unittests). Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585

[GSoC] model validation - update

2009-05-31 Thread Honza Král
3 - http://github.com/HonzaKral/django/blob/8ee1fe70c955c037176fa3b8ac0580b41eddbf12/tests/regressiontests/model_fields/tests.py#L135 Honza Král E-Mail: honza.k...@gmail.com Phone:  +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscrib

[GSoC] model validation - status update

2009-06-06 Thread Honza Král
into validators * more tests Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-

Re: EuroPython Sprints

2009-06-22 Thread Honza Král
Hi, I will definitely be there. I will be working on my GSoC project (model validation) and if anybody wants to join me, I would be more than glad for any testing of the branch in real world applications. Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 On Mon, Jun 22, 2009

Re: Validation within models.py

2009-07-02 Thread Honza Král
Hello, this is made possible by #6845 which is a Google Summer of Code project for this year. You can check the progress at http://code.djangoproject.com/browser/django/branches/soc2009/model-validation Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 On Wed, Jul 1, 2009 at 1

[soc2009/model-validation] status

2009-07-09 Thread Honza Král
. They are run on form or model level when the field passes it's own .clean(). Again all the errors from validators are aggregated for the field. Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you

Re: Filter on is-a test

2009-07-26 Thread Honza Král
inheritance patterns. (and burdening people who don't care about this with the tiny overhead). Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 On Sun, Jul 26, 2009 at 4:22 PM, Forest Bond<for...@alittletooquiet.net> wrote: > Hi, > > I have a simple implementat

Re: Filter on is-a test

2009-07-27 Thread Honza Král
On Mon, Jul 27, 2009 at 5:13 AM, Forest Bond<for...@alittletooquiet.net> wrote: > Hi Honza, > > On Mon, Jul 27, 2009 at 01:59:39AM +0200, Honza Král wrote: >> you can already do this yourself - just add a FK to ContentType to >> Transaction and in .save() method

Re: SoC merge plans?

2009-09-12 Thread Honza Král
Hi, see inline answers for info about model-validation On Sat, Sep 12, 2009 at 6:40 AM, Jacob Kaplan-Moss wrote: > > Hi folks -- > > I'd like to start thinking about merging the SoC branches. As far as I > can tell we've got solid, worth-merging work out of all six of 'em

Re: 1.2 Feature freeze

2009-12-23 Thread Honza Král
I have to work on to get it committed or, better yet, do the actual commit? Thanks! Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 On Wed, Dec 23, 2009 at 2:33 PM, Karen Tracey <kmtra...@gmail.com> wrote: > I'm listed as one of the interested committers on GSo

Re: Finalizing model-validation: ComplexValidator

2010-01-03 Thread Honza Král
Hi everybody, On Fri, Jan 1, 2010 at 10:30 PM, Joseph Kocherhans wrote: > The ComplexValidator doesn't know in advance if it's going to be used > for model validation or form validation. ComplexValidator's get_value > method is meant to help with this situation, but it

Re: Model validation incompatibility with existing Django idioms

2010-01-07 Thread Honza Král
really go for that? 4) Making 3) the default and enable switching it off if people want their admin page to save atomically. Please let me know what you think Thanks! Honza Král E-Mail: honza.k...@gmail.com Phone: +420 606 678585 -- You received this message because you are subscribed to

Re: Model validation incompatibility with existing Django idioms

2010-01-08 Thread Honza Král
On Fri, Jan 8, 2010 at 11:59 AM, koenb wrote: > > > On 8 jan, 10:03, James Bennett wrote: > >> Suppose I have a ModelForm and call save(commit=False) to get the >> instance so I can do some more work on it. I'm basically saying to >> Django "I

Re: Admin app not installed properly

2007-01-22 Thread Honza Král
seems like you are missing some css files... do you have everything set correctly? On 1/23/07, furby <[EMAIL PROTECTED]> wrote: > > Has anyone had a problem with the admin app not displaying correctly? > When I log into the admin page, the content is not formatted like all > of the pretty

Re: Looking up into an ordered list... A new feature?

2007-01-24 Thread Honza Král
On 1/23/07, Yann VR <[EMAIL PROTECTED]> wrote: > > How to achieve to search within a list of id that have been > sorted in a precise way? you have to sort it yourself > > the __in lookup tag will automatically reorder the list > by ascendancy (and I reckon in_bulk does the same too). > > I have

Re: Dynamic choices for newforms?

2007-01-31 Thread Honza Král
Hi, see ticket http://code.djangoproject.com/ticket/3257 it conatins a ModelChoiceField, that does a bit more - it also returns a valid object, not just the ID the ticket has been accepted I am only waiting for decision on whether to prepend an empty choice ("", "--") or any suggestion on

Re: newforms: "forms with prefixes", nitpick

2007-02-01 Thread Honza Král
On 2/1/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > On 1/31/07, Honza Kr�l <[EMAIL PROTECTED]> wrote: > > what if I have one Form class and want to use it twice in one > > view/template/ tag ? > > in that case, prefixes are my only hope... ;) > > > Prefixes are good idea, but implementation is a

Re: newforms: "forms with prefixes", nitpick

2007-02-01 Thread Honza Král
On 2/1/07, Frankie Robertson <[EMAIL PROTECTED]> wrote: > On 01/02/07, Honza Král <[EMAIL PROTECTED]> wrote: > > On 2/1/07, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > > On 1/31/07, Honza Kr�l <[EMAIL PROTECTED]> wrote: > > > > what if

Re: Passing external data to Form objects in newforms

2007-02-11 Thread Honza Král
On 2/11/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > I've run into a few situations where I need to pass data into a Form > for validation. > > Consider, for example, a 'change password' form. > Validation of the current password is required to ensure correct > authorization. > To validate

Delete permission and no change permission in Admin

2007-02-17 Thread Honza Král
) if this is not the desired state of things. Thanks for any comments -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" grou

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

2007-02-17 Thread Honza Král
On 2/17/07, oggie rob <[EMAIL PROTECTED]> wrote: > > > I find it useful to have the {% for %} tag syntax extended so that one can > > write: > > {% for a,b in L %} meaning the obvious thing +1 > > You can do this. a,b return type is implicitly (a,b) in Python. In > other words: > {% for x in L

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

2007-02-18 Thread Honza Král
On 2/18/07, SmileyChris <[EMAIL PROTECTED]> wrote: > > > > On Feb 18, 10:10 pm, "Arnaud Delobelle" <[EMAIL PROTECTED]> > wrote: > > > However - I acknowledge the use case: Two lists, n items long, that > > > are from independent sources. I think a separate template tag in the > > > same vein as

Re: proposal: expand save() to force update/insert to avoid race conditions

2007-02-19 Thread Honza Král
On 2/19/07, Jimmy Scott <[EMAIL PROTECTED]> wrote: > > Hello developers, > > To be aware of the background, it started with ticket #3507. > > What I define to be the problem is: if you roll your own public key, > you have a chance that someone else also gets or chooses the same > value as a public

Re: Upcoming Django release, and the future

2007-03-01 Thread Honza Král
On 3/1/07, Rubic <[EMAIL PROTECTED]> wrote: > > On Mar 1, 3:12 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > > AFAIK it will be migrated eventually to being 'max_length' everywhere, > > but probably not for this release because that's a > > backwards-incompatible change. > > One possibility

Re: Refactoring QuerySet

2007-03-10 Thread Honza Král
On 2/26/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 2/25/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > What would the new (QuerySet) world order look like > > > > What I propose to do is to split out the SQL

Re: DateField and DateTimeField and auto_now, auto_now_add

2007-03-13 Thread Honza Král
On 3/13/07, Norjee <[EMAIL PROTECTED]> wrote: > > Both have the behaviour that "the current date is always used". For > auto_now, it meas it is impossible to set a custom timestamp. For > auto_now_add it means you first have to create the object, save it, > set custom stamp, save again. > > First

Re: Authentication issue (Proposal)

2007-03-22 Thread Honza Král
Hi, On 3/22/07, Mario Gonzalez <[EMAIL PROTECTED]> wrote: > > Hello. I've got an issue that I want to deal with if you let me. I > think, as everybody we've got a project with many applications on it. > And also there are lots of users available, however what about if I > want to deny some apps

Re: Switching the db_table on the fly

2007-03-26 Thread Honza Král
On 3/26/07, Wolfram Kriesing <[EMAIL PROTECTED]> wrote: > > I would like to change the table of a model on the fly. > I was looking into the Manager code, but since the get_query_set() > method in there uses the model as is, changing the > model._meta.db_table would most probably change the

Re: Support for a binary storage field?

2007-03-26 Thread Honza Král
On 3/27/07, Marc Fargas Esteve <[EMAIL PROTECTED]> wrote: > Hi, > If you provide a BinaryField it's just a matter of time that "hacks" will > start to go out on blogs, the wiki or even django-users to get ImageField > and FileField on the database (there's a hack on this already), maybe it's > 99%

Re: Should $HOME be an absolute path?

2007-03-29 Thread Honza Král
On 3/30/07, topper <[EMAIL PROTECTED]> wrote: > > Hi, > > I've just (maybe stupidly on my behalf) spent an hour digging through > Django code to find out why Django thought the template at $HOME/web/ > my_site/templates/home_page.html doesn't exist. The answer is that I > in the TEMPLATE_DIRS

Re: Are we dropping auto_now and auto_now_add for 1.0?

2007-04-01 Thread Honza Král
On 4/2/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 4/1/07, SmileyChris <[EMAIL PROTECTED]> wrote: > > I'm not sure if there's a ticket for this, but I remember talk about > > it being an unnecessary wart which was going to be removed eventually. > > Is it in the 1.0 plan? > > Yes, I'd

Re: contrib proposal: django-values

2007-04-09 Thread Honza Král
On 4/9/07, Marc Fargas Esteve <[EMAIL PROTECTED]> wrote: > Hi, > > On 4/8/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > * The name "values" is a bit too abstract -- it took me a while to > > figure out exactly what this framework *does*. Maybe something like > > "editable constants" or

Re: Aggregates: anything planned for 1.0?

2007-04-12 Thread Honza Král
the queryset refactoring must (well, should) happen before aggregation support. After the refactoring, it should be relatively easy to put in the aggregations. see: http://code.djangoproject.com/ticket/3566

Re: Aggregates: anything planned for 1.0?

2007-04-13 Thread Honza Král
On 4/13/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 4/13/07, Honza Kr�l <[EMAIL PROTECTED]> wrote: > > the queryset refactoring must (well, should) happen before aggregation > > support. After the refactoring, it should be relatively easy to put in > > the aggregations. > > > > see:

Re: Aggregates: anything planned for 1.0?

2007-04-13 Thread Honza Král
sorry, forgot to include the group_by columns in the select clause: > qset.values('field', 'field2', 'field3__sum', 'f4__count', ...) < = > > SELECT field, field2, SUM(field3), count(f4) FROM some_table GROUP BY field, > field2; --~--~-~--~~~---~--~~ You

Re: Aggregates: anything planned for 1.0?

2007-04-16 Thread Honza Král
Hi Russ, great comments, thanks. On 4/16/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > Hi Honza, > > Over the weekend, I tried responding to our last message inline, but > my response kept getting long and confused. So, I've summarized my > thoughts. I have three problems with your

Re: Aggregates: anything planned for 1.0?

2007-04-16 Thread Honza Král
On 4/17/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-04-16 at 21:55 +0800, Russell Keith-Magee wrote: > [...] > > > btw. refactoring the queryset code is necessary for this to work, so > > > perhaps we should focus our efforts there first. Maybe something will > > > emerge

Re: Cache missunderstanding?

2007-04-22 Thread Honza Král
On 4/22/07, aaloy <[EMAIL PROTECTED]> wrote: > > Hello All! Hello, > > I have a view like > > def record(request, id, type): > # some database code here > # some log code here > record=cache_page(record,60) > > If I have correctly understood the documentation, if I maque a request > to that

Re: Cache missunderstanding?

2007-04-22 Thread Honza Král
On 4/22/07, aaloy <[EMAIL PROTECTED]> wrote: > > 2007/4/22, Honza Kr�l <[EMAIL PROTECTED]>: > > On 4/22/07, aaloy <[EMAIL PROTECTED]> wrote: > > > > > > Hello All! > > Hello, > > > > > > > > I have a view like > > > > > > def record(request, id, type): > > > # some database code here > > > #

comments framework

2007-05-06 Thread Honza Král
with newforms. Is there any work done there? How does this look to everybody, anybody interested? comments are most welcome. Honza -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you

Re: Proposal: Generic newforms media

2007-05-27 Thread Honza Král
Hi all, we recently stumbled on a similar problem, but not specifically related to (new)forms... we are rendering articles with some boxes (polls, images, quizes etc.) and some of these boxes need specific media files to be linked to the page. We put together a simple mechanism for allowing this

Re: Proposal: Generic newforms media

2007-05-27 Thread Honza Král
On 5/27/07, Jeremy Bowers <[EMAIL PROTECTED]> wrote: > > Russell Keith-Magee wrote: > > > > > > > > > > > > > > > > This is a bad thing. Requests are extremely expensive and this is > encouraging scenarios where you end up with 30, 40, maybe more little > CSS and JS files. I'd never deploy

ticket ping: #3050 enable values() even with extra(select=...)

2007-05-30 Thread Honza Král
the patch to cooperate with current version. Tests are included. Could any of the core devs spare five minutes of their time and look over it please? It shouldn't take any longer (the patch only have 77 lines). thank you very much HK -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone

Re: Optgroups from nested choices in newforms (discussion of patch on #4412)

2007-05-31 Thread Honza Král
Has anything changed since Adrian ruled optgroups as unwanted? see http://code.djangoproject.com/ticket/3262 and http://groups.google.com/group/django-developers/browse_frm/thread/b27f19d932c84316/37a4fa049dc63733?lnk=gst=optgroup On 5/31/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > >

newforms-admin - why propagate AttributeError?

2007-06-05 Thread Honza Král
of the column. What do you think? Thanks -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-06-07 Thread Honza Král
Hello, what is the current status of newforms-admin? We just started developing a major project with it and we will need the edit_inline functionality. Is there any chance this will be supported in next few weeks? Since we really need newforms-admin for this project, my employer agreed to pay me

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-06-08 Thread Honza Král
On 6/8/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > On 6/7/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > > On 6/7/07, Honza Kr�l <[EMAIL PROTECTED]> wrote: > > > Since we really need newforms-admin for this project, my employer > > > agreed to pay me to work on the newforms-admin if

Re: "else" clause on "ifchanged"

2007-06-11 Thread Honza Král
All the other IF* tags have else clause, I see no reason why ifchanged should be alone without it. I say +1 for consistency On 6/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > I don't want to start an opening/closing battle in Trac, so I'll bring > this up here: I'm almost convinced by

[newforms-admin] edit_inline support for generic relations

2007-06-23 Thread Honza Král
me, thanks. -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email

Re: Inline editing without a parent model

2007-06-25 Thread Honza Král
On 6/24/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > On 6/24/07, Tomi Pievil�inen <[EMAIL PROTECTED]> wrote: > > > > Will there be a possibility to use edit_inline with a model that > > doesn't have a parent model in newforms admin? It would be really > > useful to see other lines when you

Re: unique email in User model

2007-07-01 Thread Honza Král
On 7/1/07, Vladimir Pouzanov <[EMAIL PROTECTED]> wrote: > > Hi all, > > Is there any reason for having not-unique email field in User model? > I'm going to duplicate email in my 1-to-1 model to make it unique, and > it doesn't look like a clean solution. If you want to do just that you could just

Re: CacheManager

2007-07-05 Thread Honza Král
On 7/5/07, David Cramer <[EMAIL PROTECTED]> wrote: > > Ya cache invalidation is something you'll always have a problem with. > The clean() method can be used (at the end of a queryset, or on the > Manager itself) to force the invalidation. We have been working on this issue recently and came up

Re: CacheManager

2007-07-11 Thread Honza Král
, ICQ#43799892, http://www.linkedin.com/in/ > neshdj > Studio Quattro - Niš - Serbia > http://studioquattro.biz/ | http://code.google.com/p/django-utils/ > Registered Linux User 282159 [http://counter.li.org] > > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#

Re: CacheManager

2007-07-11 Thread Honza Král
> model subclassing don't work, yet ;) ) > > > > Tried this code on the one of the my projects and it's working nice > > (no real testing tough). > > > > -- > > Nebojša Đorđević - nesh, ICQ#43799892,http://www.linkedin.com/in/ > > neshdj > > Stud

Re: Proposal: QuerySet.exists() method

2007-07-14 Thread Honza Král
problem being that count(*) is not > an optimised operation in PostgreSQL, however, we haven't yet split up > those cases in a lot of the code (the recent Oracle merge moved a bunch > of similar things to the count(*) case and I keep meaning to look at > whether we can move them all to c

Re: Django moving from SVN to distributed VCS

2007-08-23 Thread Honza Král
Do you really need this? I am currently keeping my own two branches in git repository, that I synchronize with the master svn repository. It is very simple to do and completely painless. As you said yourself - since there are many conversion tools, nothing is stopping you from running your own

Re: [Fwd: Memory leaks]

2007-09-08 Thread Honza Král
can you replicate this with DEBUG=False in your settings? without DEBUG turned on, no queries will be saved. I very much doubt that all these sites built on Django are either leaking memory or not using large quantities of objects like this one here. On 9/8/07, Tomas Kopecek <[EMAIL PROTECTED]>

Re: ANN: newforms-admin syntax change for inlines

2007-09-09 Thread Honza Král
On 9/9/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/9/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > > > If you use the newforms-admin branch and the edit inline > > functionality, you want to read this. > > > > I'm planning on breaking the current syntax for defining inlines

Re: proposal: helper functions for validation

2007-09-09 Thread Honza Král
On 9/9/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 9/9/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > > On Sun, 2007-09-09 at 21:46 +0800, Russell Keith-Magee wrote: > > > No - this has nothing to do with the test framework. It's a set of > > > helper functions to support

Re: [Fwd: Memory leaks]

2007-09-09 Thread Honza Král
On 9/9/07, Tomas Kopecek <[EMAIL PROTECTED]> wrote: > > Honza Kr�l napsal(a): > > can you replicate this with DEBUG=False in your settings? > > > > without DEBUG turned on, no queries will be saved. I very much doubt > > that all these sites built on Django are either leaking memory or not > >

Re: Call to Arms -- Caching Mechanisms

2007-09-14 Thread Honza Král
we use something like http://dpaste.com/19671/ it - invalidates the cache when object is updated (based on registered test) - can cooperate with apache active mq to propagate the signals accross multiple boxes - provides decorator for any function, including handling the invalidation

Re: Missing patch files on code.djangoproject.com

2007-09-18 Thread Honza Král
not quite it would seem: http://code.djangoproject.com/attachment/ticket/3218/wizard.5.py On 9/18/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 9/18/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > D'oh -- forgot to rsync over the Trac attachments directory again. > > I'll take

Re: Missing patch files on code.djangoproject.com

2007-09-18 Thread Honza Král
I could reupload that one, but there are other patches missing (even in that ticked) that I do not have... :( for example http://code.djangoproject.com/attachment/ticket/3218/form_wizard_with_tests_and_docs_r6199.diff which contains the older patch along with tests and documentation... On

Model aware validation for newforms admin

2007-10-17 Thread Honza Král
on individual fields and propagate this to the appropriate form field validations thanks for any answers/ideas you may have -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because

Re: newforms and edit_inline

2007-11-11 Thread Honza Král
On Nov 11, 2007 7:58 PM, cory <[EMAIL PROTECTED]> wrote: > > Hello, > > I've spent the last day or so wrestling with something that I'm sure > has a very simple solution, I just haven't found it or figured it out. > I've got two classes, organized like this: > > class Foo(models.Model): > bar =

Re: Problems making custom widgets with newforms-admin

2007-11-25 Thread Honza Král
On 11/25/07, Julien <[EMAIL PROTECTED]> wrote: > > Hi all, Hi, > I have tried my chance in the user group with no avail. I think this > might be of interest for the developer's community. > > I've been trying to create a custom widget using the newforms-admin > branch. This widget is to replace

Re: FormWizard and __call__

2008-04-11 Thread Honza Král
osals on how to go around this, I will be happy to help out. > > Jay P. > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: FormWizard and __call__

2008-04-13 Thread Honza Král
On Sat, Apr 12, 2008 at 3:37 AM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On 4/11/08, Honza Král <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 11, 2008 at 4:15 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > > Currently when we call get_

Re: FormWizard and __call__

2008-04-15 Thread Honza Král
On Mon, Apr 14, 2008 at 5:56 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On Sun, Apr 13, 2008 at 6:13 PM, Honza Král <[EMAIL PROTECTED]> wrote: > > > I was going to say "Put the cache into self.foo", but now I'm just > > > realizing

Re: validators as Meta attribute in ModelForms

2008-04-15 Thread Honza Král
= ('name', 'active') > list_filter = ('active',) > search_fields = ('name',) > form = DomainModelForm > admin.site.register(Domain, DomainAdmin) > > > Anybody interested in this? > Is it worth opening a ticket with a patch? > > Cheers > Steven > >

Re: [GSoC] Aggregate Support to the ORM

2008-04-25 Thread Honza Král
> However, in the simple case - where you are grouping by full object > instances - I don't see why we shouldn't return object instances. > > Yours, > Russ Magee %-) > > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 -

Re: {{ something or something_else }}

2008-04-25 Thread Honza Král
ns on that? > my 2 cents > > -- > cu > > Wolfram > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Want to have unit tests in multiple files

2008-05-06 Thread Honza Král
ch main-line .py file having a > corresponding unit-test file. Is there a convenient way to do this in > Django? > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message beca

#7142 and ValuesQueryset.distinct() and order_by()

2008-05-15 Thread Honza Král
) What do people think? a) Leave it b) add the sorting field to the result c) try and prevent it by dropping or filtering order_by columns -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received

Re: Rethinking silent failures in templates

2008-05-15 Thread Honza Král
> > the template should fail silently, and what parts should not. Perhaps >> > some sort of filter or tag or combination thereof. Not unlike >> > autoescaping -- fail by default and fail silently only were >> > explici

Re: Patch #7521: Template if/ifequal/ifnotequal evaluate despite condition

2008-05-16 Thread Honza Král
equal %} > > ... because non_existant_tag_library doesn't exist. This should not > raise a TemplateSyntaxError. > > I've submitted a patch on ticket #7251 to correct this. Thanks! > > -jag > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone:

Re: Patch #7521: Template if/ifequal/ifnotequal evaluate despite condition

2008-05-17 Thread Honza Král
ry at parsing time to access the parsing functions, there is no going around that... It might nit be ideal, but I don't see any other way this could go with the current logic of templates > > -jag > > On Fri, May 16, 2008 at 5:01 PM, Honza Král <[EMAIL PROTECTED]> wrote: >> But pyt

Re: Many to Many Inline Editing

2008-05-20 Thread Honza Král
ds this and can't seem to get it >>> > done myself, so maybe this is a useful feature that could be added by >>> > someone with a better understanding of the admin internals? >>> >>> -- >>> Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.babur

Re: newforms-admin FormSet API

2008-05-21 Thread Honza Král
One suggestion - the > 'can_order' option needs a little more elaboration on how the order > field can actually be used - i.e., how do I use the order field to > effect organization in my children? > > Yours, > Russ Magee %-) > > > > -- Honza Král E-Mail: [EMAIL PROTECT

Re: newforms-admin customisation hook suggestions

2008-05-28 Thread Honza Král
ng a complete nightmare (our > end users don't want to see an interface full of obscure terms like > gcap_sectional_revisions). > * Making some fields read-only in some admin screens (again, > reasonably well addressed by easier custom widgets above) &g

Re: RFC: Django 1.0 roadmap and timeline

2008-06-12 Thread Honza Král
Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 On Thu, Jun 12, 2008 at 10:32, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 12, 2008 at 4:03 AM, Jacob Kaplan-Moss > <[EMAIL PROTECTED]> wrote: >> >> "Maybe" features

Re: RFC: Django 1.0 roadmap and timeline

2008-06-12 Thread Honza Král
On Thu, Jun 12, 2008 at 16:39, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On Thu, Jun 12, 2008 at 3:32 AM, Gábor Farkas <[EMAIL PROTECTED]> wrote: >> >>> 5. Model-level validation (#6845). > [...] >> and i thought it's in the plan to have this in 1.0. > > It is, assuming it gets done.

Re: FormWizard - GETs on all but last step?

2008-07-01 Thread Honza Král
for posting, but in my opinion, when I want to use something like a wizard, I really want POST. That's -1 from me. I am not opposed to the idea in general, I just don't feel it's needed and should be in the code. Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 On Tue, Jul 1

Admin validation

2008-07-21 Thread Honza Král
). Any thoughts? thanks Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

#6845 - model validation status

2008-10-14 Thread Honza Král
Hi, I took a great email from Gary Wilson to get me started on the status structure. Some of the core design decisions were finalised by Jacob, Malcolm (please scream if I have misunderstood or don't remember things correctly) and me at DjangoCon. Honza Král E-Mail: [EMAIL PROTECTED] ICQ

Validate Unique and new/existing models

2009-01-10 Thread Honza Král
? Thanks Honza Král E-Mail: honza.k...@gmail.com ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-

Re: Order of models metaclass __new__ dict

2009-01-11 Thread Honza Král
Hi, look into django/db/models/fields/__init__.py and search for 'creation_counter' Honza Král E-Mail: honza.k...@gmail.com ICQ#: 107471613 Phone: +420 606 678585 On Sun, Jan 11, 2009 at 10:19 PM, dauerbaustelle <jo...@jonashaag.de> wrote: > > Hi there, > > I'm writing

Re: Order of models metaclass __new__ dict

2009-01-12 Thread Honza Král
You are using self.__class__ which is different for foo and bar (BooleanField), buzz (IntegerField) etc. use Field.creation_counter instead of self.__class__ Honza Král E-Mail: honza.k...@gmail.com ICQ#: 107471613 Phone: +420 606 678585 On Mon, Jan 12, 2009 at 3:15 PM, Jonas Haag <

Re: Model-validation: call for discussions

2009-01-23 Thread Honza Král
I should be around during the weekend so I will give it a try as well... Honza Král E-Mail: honza.k...@gmail.com ICQ#: 107471613 Phone: +420 606 678585 On Fri, Jan 23, 2009 at 2:56 AM, mrts <m...@mrts.pri.ee> wrote: > > On Jan 23, 3:40 am, Malcolm Tredinnick <malc...@p

Re: Model-validation: call for discussions

2009-02-18 Thread Honza Král
Hi, see inline text. On Wed, Feb 18, 2009 at 1:28 PM, mrts wrote: > > The last unsolved model-validation design issue is the error message > protocol (my work on fields is waiting on it). Let me present the > approach that looks sane to me. > > The old

Re: Revised 1.1 release plan

2009-02-18 Thread Honza Král
> I've already talked to a few folks who want to focus > on this at the PyCon sprints next month. It's looking like model validation > and > 1.1 will be like aggregation and 1.0: a feature nearly done that just needs > another release cycle for full maturity. It's almost becomming a tradition

Re: Model validation

2009-03-10 Thread Honza Král
Hi, The code on github works (tests pass) but is not ready for production use. What you can do to help is test and mostly, write tests to help us get there. There will be a sprint on model-validation during pycon, which should resolve most of the outstanding issues. Honza Král E-Mail: honza.k

Re: Updating the organization of the Django Project

2014-07-27 Thread Honza Král
+1 Thanks for pushing for this! On Jul 25, 2014 5:22 PM, "Jacob Kaplan-Moss" wrote: > +1. > > Aymeric, I can't thank you enough for taking this on and running with it. > > Jacob > > > On Fri, Jul 25, 2014 at 7:20 AM, Chris Foresman > wrote: > >> As a

Re: Making URLconfs accept view objects, not just paths to views

2006-05-07 Thread Honza Král
gt; > Cheers, > Jason > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: composite primary key

2006-05-10 Thread Honza Král
ork. And I'm not talking > about the admin pages, they are out of question anyway. > Have you already tried this path? I'll try along these lines (though, > it's late evening here, so probably tomorrow) > > Michael > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] IC

Re: introduction

2006-05-27 Thread Honza Král
t; > expand and modify what is written there during my journey into it. Any > > mistakes you notice, please let me know. > > > > Thanks, > > > > Chris > > > > > > > > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 10747

Re: inability to use decorators on template filters

2006-06-10 Thread Honza Král
s, which usually include *args and **kwargs. The > decorator doesn't always have the same number of arguments as the > function it's decorating. > > > > > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~-

  1   2   >