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 overwritten to NULL... The above

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 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 the fields = [f.name for f in >> ...

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 non-core community member, I welcome a strea

Re: [GSoC] Aggregate Support to the ORM

2008-04-25 Thread Honza Král
value list rather than an object - but > that's perfectly consistent with the behaviour of values() currently. > 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

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
y, each 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

Re: newforms admin m2m field

2008-05-08 Thread Honza Král
on. > > Is this possible, or does this need to be done using some sort of > javascript hack? > -- Honza Král E-Mail: [EMAIL PROTECTED] ICQ#: 107471613 Phone: +420 606 678585 --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

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

2008-05-15 Thread Honza Král
ing that this will fail on PostgreSQL and do it anyways) 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 --~--~-~

Re: Rethinking silent failures in templates

2008-05-15 Thread Honza Král
hink we need a way to distinguish between what parts of >> > the template should fail silently, and what parts should not. Perhaps >> > some sort of filter or tag or combination thereof. Not unlike >> > autoescaping -- fail

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

2008-05-16 Thread Honza Král
fequal 0 1 %}{% load non_existant_tag_library %}{% endifequal %} > > ... 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 > > > >

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

2008-05-17 Thread Honza Král
ad the library 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]> wro

Re: Many to Many Inline Editing

2008-05-20 Thread Honza Král
; I'm sure I'm not the only one that needs 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 reg

Re: newforms-admin FormSet API

2008-05-21 Thread Honza Král
, it looks pretty good to me. 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 %-) > > > > -

Re: newforms-admin customisation hook suggestions

2008-05-28 Thread Honza Král
from > scratch) > * Changing the application labels that appear in the admin homepage - > we needed to do this and it ended up being a complete nightmare (our > end users don't want to see an interface full of obscure terms like > gcap_sectiona

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. Las

Re: FormWizard - GETs on all but last step?

2008-07-01 Thread Honza Král
#x27;t just 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: +

Admin validation

2008-07-21 Thread Honza Král
DEBUG). 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

Validate Unique and new/existing models

2009-01-10 Thread Honza Král
think? 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 dj

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 wrote: > > Hi there, > > I'm writing some python

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 wrote

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 wrote: > > On Jan 23, 3:40 am, Malcolm Tredinnick > wrote: >> On Thu, 2009-01-22

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 Field.default_error_messages dict and corre

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 fo

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

GSOC - model validation

2009-04-24 Thread Honza Král
http://github.com/ella 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 dj

Re: GSOC - model validation

2009-04-24 Thread Honza Král
) * Move the validation logic from form Fields into validators seamlessly (2 weeks) Part of the work will be covered by existing test cases testing the current ModelForms behavior. I will add test cases for newly created code and possibilities. Honza Král E-Mail: honza.k...@gmail.com Phone

[GSoC] model validation

2009-05-12 Thread Honza Král
e answers. 0 - http://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 t

[GSoC] model validation - update

2009-05-17 Thread Honza Král
validator(value, 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:

[GSoC] model validation - update

2009-05-31 Thread Honza Král
c955c037176fa3b8ac0580b41eddbf12/tests/modeltests/validation/tests.py 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 --~--~-~--~~--

[GSoC] model validation - status update

2009-06-06 Thread Honza Král
alidation logic 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, s

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 at

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
k etc. 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

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 wrote: > Hi, > > I have a simple implementation that allows filtering based on wh

Re: Filter on is-a test

2009-07-27 Thread Honza Král
On Mon, Jul 27, 2009 at 5:13 AM, Forest Bond 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 assign it the correct value: &g

Re: Ticket resolution question

2007-02-10 Thread Honza Král
On 2/11/07, Gary Wilson <[EMAIL PROTECTED]> wrote: > > On Feb 10, 3:36 am, Malcolm Tredinnick <[EMAIL PROTECTED]> > wrote: > > Do we need an "enhancement" resolution, or some other way of saying > > "some day, maybe"? The benefit of this is keeping the very low priority > > stuff out of the queue o

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 t

Re: Passing external data to Form objects in newforms

2007-02-11 Thread Honza Král
On 2/12/07, Benjamin Slavin <[EMAIL PROTECTED]> wrote: > > On 2/11/07, Honza Kr�l <[EMAIL PROTECTED]> wrote: > > > > is this really necessary ? since you always subclass formsForm, why > > wouldn't you use: > > class PasswordChangeForm(forms.Form): > > def __init__( self, user, *args, **kwargs

Re: newforms: proposal ModelForm Baseclass for model related Forms

2007-02-12 Thread Honza Král
].widget = some.widget.class() > > You can still add clean methods after the fact by assigning functions to > EntryForm.clean_title, ie: > EntryForm.clean_title = lambda self: pass # do stuff > > -- > Scott Paul Robertson > ht

Delete permission and no change permission in Admin

2007-02-17 Thread Honza Král
table and newforms branch) 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

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

Fwd: Aggregate class: a first-attempt

2007-02-22 Thread Honza Král
I think we should really move this to the developers' list On 2/23/07, Tim Chase <[EMAIL PROTECTED]> wrote: > > >> I haven't yet figured out a way to suppress the order_by portion, > >> so what's currently in there is an ugly hack. But it would need > >> to prevent the standard methods from inser

Re: Refactoring QuerySet

2007-02-25 Thread Honza Král
On 2/25/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > I noticed today that a new GIS branch has been created, which includes a > goal to develop a custom QuerySet-derivative. There has also been a > discussion on trying to work out an API for aggregates, which seems to > be moving along, al

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 woul

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 construction

Re: Refactoring QuerySet

2007-03-10 Thread Honza Král
quot;t0"."user_id", "t0"."content_type_id", "t0"."object_id", "t0"."object_repr", "t0"."action_flag", "t0"."change_message" FROM "django_admin_log" as "t0" INNER JOIN "auth_

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 i

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 db_tabl

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 tuple

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 lik

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 "model-

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 http://groups.google.com/group/django-developers/browse_frm/thread/691da1d6e3b0661d/3e7aaad

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 received

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 propos

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 fro

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 view

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 > > > # some

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 becaus

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 (j

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 th

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

2007-05-30 Thread Honza Král
dated 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#: 10747

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&q=optgroup On 5/31/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > >

newforms-admin - why propagate AttributeError?

2007-06-05 Thread Honza Král
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 t

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
easy for 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, s

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: How to resize text box

2007-06-29 Thread Honza Král
Hi, On 6/29/07, bhaskar jebamani <[EMAIL PROTECTED]> wrote: > > Hi > > I m a new Django programmer. I m struggling with one stuff can u help > me. Welcome > > The problem is : > > I created a dynamic form which is connected to database. I have used > text boxes for accepting strings and integer

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 wi

Re: CacheManager

2007-07-11 Thread Honza Král
vić - nesh, 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]

Re: CacheManager

2007-07-11 Thread Honza Král
able names so I returned to this approach. (I know, I know, > > 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ć - nes

Re: Proposal: QuerySet.exists() method

2007-07-14 Thread Honza Král
The 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 the

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 dis

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]> w

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 i

Re: Let's schedule a Django sprint

2007-09-09 Thread Honza Král
There will also be a Prague chapter in my company - NetCentrum, we can provide space, connectivity and perhaps some junk food ;) Everybody's wellcome, just drop me a line if you are interested along with some details so that I can prepare enough tables and computers (if needed)... Location NetCe

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 wri

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 > > usin

Re: Overriding admin forms

2007-09-11 Thread Honza Král
On 9/11/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > On Mon, 2007-09-10 at 18:25 -0500, Joseph Kocherhans wrote: > > There's a ticket in Trac to override the BaseForm in the admin > > add/change views of the newforms admin branch. [1] It seems to me that > > it would also be useful to over

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 registr

Re: Call to Arms -- Caching Mechanisms

2007-09-15 Thread Honza Král
On 9/15/07, msaelices <[EMAIL PROTECTED]> wrote: > > Oh! beautiful code! could you paste Dependency model besides? Thanks, the dependency model is the part I am least satisfied with: http://dpaste.com/19694/ it gets created automatically whenever and object is used within other object's box > > >

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 care

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 9/18/0

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 = m

Re: Signal-based cache invalidation & cached function decorator

2007-11-14 Thread Honza Král
On Nov 14, 2007 2:41 PM, Sergey Kirillov <[EMAIL PROTECTED]> wrote: > > Hi all > > In my project I frequently encountered a situation where I need to > cache some data, and then invalidate it on signal. > > So I wrote following decorator: > > def cached(slot_name, timeout=None): > def decorator

Re: Signal-based cache invalidation & cached function decorator

2007-11-14 Thread Honza Král
On Nov 14, 2007 9:13 PM, Sergey Kirillov <[EMAIL PROTECTED]> wrote: > > For shared cache backends, like Memcached it works fine. You just need > to be sure that signal handlers will be registered in all processes > (i.e. put them in models.py) sorry, my bad - we do a similar thing but dynamic, and

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 t

Re: FormWizard and __call__

2008-04-11 Thread Honza Král
in previous steps. If you have any proposals 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 receive

Re: FormWizard and __call__

2008-04-11 Thread Honza Král
On Fri, Apr 11, 2008 at 4:15 PM, Jay Parlar <[EMAIL PROTECTED]> wrote: > > On Fri, Apr 11, 2008 at 8:03 AM, Honza Král <[EMAIL PROTECTED]> wrote: > > you could perhaps postpone the validation of data till the end of the > > wizard, so only run this once, but

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_

  1   2   >