Re: nested function

2007-06-29 Thread Jeremy Dunck
On 6/29/07, dailer <[EMAIL PROTECTED]> wrote: ... > found my answer on comp.lang.python (these nested functions are a bit > crazy)... For this example: def foo(msg1): def bar(msg2): print msg1, msg2 return bar if it helps, you can consider the parent declaration (foo) to be an

Re: nested function

2007-06-29 Thread dailer
On Jun 27, 8:52 pm, dailer <[EMAIL PROTECTED]> wrote: > I created a validator for use in a validator_list in the admin > interface like so... > > def startDate_EndDate_CrossValidation(modelName): > def result(field_data, all_data): > > > being new to python, I stole this from an

Re: nested function

2007-06-29 Thread dailer
On Jun 27, 8:52 pm, dailer <[EMAIL PROTECTED]> wrote: > I created a validator for use in a validator_list in the admin > interface like so... > > def startDate_EndDate_CrossValidation(modelName): > def result(field_data, all_data): > > > being new to python, I stole this from an

Re: nested function

2007-06-27 Thread dailer
errr. i didn't do too well with my first post. Actually, my model validation calls startDate_EndDate_CrossValidation just find via a validator_list. The problem is I'm trying to write a tester and don't know how to call startDate_EndDate_CrossValidation and get field_data and all_data passed in.

Re: nested function

2007-06-27 Thread dailer
errr. i didn't do too well with my first post. Actually, my model validation calls startDate_EndDate_CrossValidation just find via a validator_list. The problem is I'm trying to write a tester and don't know how to call startDate_EndDate_CrossValidation and get field_data and all_data passed in.

nested function

2007-06-27 Thread dailer
I created a validator for use in a validator_list in the admin interface like so... def startDate_EndDate_CrossValidation(modelName): def result(field_data, all_data): being new to python, I stole this from an example somewhere. I have these 3 attributes, but how do I call