I have been trying to install GeoDjango for the first time following
the instructions on: http://code.djangoproject.com/wiki/GeoDjangoInstall
The install seems to go fine, but I get an error when running the
test_gdal.run() test that is testing the closing of a polygon object
(output included at
I am still a newbie with Django but I am well on my way to completing
my first Django application, but not yet as I am having some trouble
testing and any help would be greatly recieved.
I am having trouble testing some POST data. What I am trying to do in
my view is post some dynamic data and
eloped an application using the search form from chapter 7
> of the Django Book,http://www.djangobook.com/en/1.0/chapter07/. I am
> having trouble testing the search view, it seems like (from my view
> below) it is not returning 'q', but rather, returning nothing. It
> might be the way
I have developed an application using the search form from chapter 7
of the Django Book, http://www.djangobook.com/en/1.0/chapter07/. I am
having trouble testing the search view, it seems like (from my view
below) it is not returning 'q', but rather, returning nothing. It
might be
some tests.
>
> > First thing you'll wanna check out if you haven't is:
>
> >http://www.djangoproject.com/documentation/testing/
>
> > But I assume you have, so I'll just get on to the fixtures.
>
> > Probably the easiest way to create a fixture is to ent
definitely
> don't
> know how to write good tests, at least I wrote some tests.
>
> First thing you'll wanna check out if you haven't is:
>
> http://www.djangoproject.com/documentation/testing/
>
> But I assume you have, so I'll just get on to the fixture
I just did this for the first time last night, although I definitely
don't
know how to write good tests, at least I wrote some tests.
First thing you'll wanna check out if you haven't is:
http://www.djangoproject.com/documentation/testing/
But I assume you have, so I'l
I am relatively new to Django, and I am having trouble getting my head
around fixtures.
The Django documentation just assumes that you should know what a
test fixture is and how to write one. I understand that fixtures are
just test data, but how is one written?
Any guidance/examples on this wo
Firstly, thanks for your suggestions!
I change the apps and class name then turn on the verbosity mode to
test, but I can't see nothing abnormal output.
Today I run the same unit test of this project on another computer and
they all passed, so I think there are some problem with my development
en
On Sat, Mar 29, 2008 at 11:00 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> but when I run unit test to test the failed function use:
> $ ./manage.py test apps.test.test_template
> there will be ok:
> """
> .
> ---
On 30-Mar-08, at 1:31 PM, [EMAIL PROTECTED] wrote:
> Any one who can help me? Thank you so much!
be patient - it is a weekend ;-)
--
regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/code/
--~--~-~--~~~---~--~~
You received this message be
Any one who can help me? Thank you so much!
On Mar 29, 11:00 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi, all,
>
> I meet a strangely problem on django unittesting. I use django svn
> version, the test code like this:
>
> """
> from djan
Hi, all,
I meet a strangely problem on django unit testing. I use django svn
version, the test code like this:
""""""""""""""""""""""""""""""&qu
On Tue, Mar 25, 2008 at 11:44 PM, Jeff Gentry <[EMAIL PROTECTED]> wrote:
>
> Hi there ...
>
> As a relative newcomer to Django, I recently starting looking at how best
> to implement unit tests for my app. I came across this page:
> http://www.djangoproject.com/docu
tive newcomer to Django, I recently starting looking at how best
> to implement unit tests for my app. I came across this page:
> http://www.djangoproject.com/documentation/testing/
> as well as a couple of other examples online.
>
> If I'm understanding things correctly, the
Hi there ...
As a relative newcomer to Django, I recently starting looking at how best
to implement unit tests for my app. I came across this page:
http://www.djangoproject.com/documentation/testing/
as well as a couple of other examples online.
If I'm understanding things correctly, the
Hi Jacob,
>
> Under Sqlite tests run in an in-memory database, so this is perfectly
> normal. Like you, I see about a 10x speedup running tests against
> Sqlite.
>
Not surprisingly the tests slowed down once I added the
TEST_DATABASE_NAME parameter to settings. It made debugging easier
though.
On 2/5/08, Manoj Govindan <[EMAIL PROTECTED]> wrote:
> Recently I tried using Sqlite instead of Postgres as the database
> engine for testing one of my django applications.
> My observations follow:
>
> 1) Tests ran significantly faster[1].
Under Sqlite tests run in an i
Recently I tried using Sqlite instead of Postgres as the database
engine for testing one of my django applications.
My observations follow:
1) Tests ran significantly faster[1].
2) Some tests failed in Windows while some of them failed in both
Windows and Linux. All tests succeeded in both
P RFCs applies here. (I might be
completely wrong ...)
Otherwise, REMOTE_ADDR in request is set either directly from
remote_ip/client_address or from HTTP_X_FORWARDED_FOR using specific
middleware.
Regards, Thomas
Malcolm Tredinnick wrote:
> On Fri, 2008-01-04 at 14:30 -0
On Fri, 2008-01-04 at 14:30 -0800, Thomas wrote:
> I am testing django.contrib.comments with django.test.client that does
> not provide request.META['REMOTE_ADDR'] and therefore dies at
> http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/views/comments
I am testing django.contrib.comments with django.test.client that does
not provide request.META['REMOTE_ADDR'] and therefore dies at
http://code.djangoproject.com/browser/django/trunk/django/contrib/comments/views/comments.py#L252
There has been a ticked #407 but that did not
Interface is still a bit clunky - it's Swing after all, though not as
bad as something like SoapUI (ugh).
Stability is reasonable if don't mix java versions when doing
distributed testing.
On 1/3/08, mamcxyz <[EMAIL PROTECTED]> wrote:
>
> I remember use JMeter eons ago
I remember use JMeter eons ago. I dislike the clunky interface and the
stability problems...
Maybe is improved now?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send em
Apache JMeter should be able to give you #1, #2 & #5 and can operate
in a distributed fashion.
On 1/2/08, Ryan K <[EMAIL PROTECTED]> wrote:
>
> For all your testing needs http://www.softwareqatest.com/qatweb1.html
>
> On Jan 2, 2:58 pm, mamcxyz <[EMAIL PROTECTED]&
For all your testing needs http://www.softwareqatest.com/qatweb1.html
On Jan 2, 2:58 pm, mamcxyz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I wonder what tool let me to do web load & stress testing with this
> options:
>
> - Run on Windows, test target are windows & sol
Hi,
I wonder what tool let me to do web load & stress testing with this
options:
- Run on Windows, test target are windows & solaris
- Simulate diferent users, with separation of surfers vs content
uploaders (ej: send photos, links, etc)
- Tell me page size & maybe benefit
I'm close to launch a redesing of www.paradondevamos.com, with social
& multimedia capabilities.
I wonder what kind of tool let me do load testing against the site.
This is my base config:
- I'm running under joyent "M" virtual server, so Solaris 10, 256 RAM.
- I plan to
Responding to myself:
I choosed solution 2 (parse HTML form) with the help of ClientForm:
http://www.djangosnippets.org/snippets/467/
Comments welcome
Am Freitag, 16. November 2007 13:03 schrieb Thomas Guettler:
> Hi,
>
> my has a lot of input widgets which are build from several
> newform.f
Hi,
my has a lot of input widgets which are build from several newform.form
instances.
If I want to test the form with client.post(), I need to pass all values of
the input fields in a dictionary, even if I just want to modify one value.
It would be nice if I could get all initial values in
_NAME"]
Cheers,
Amit
ביום ראשון 11 נובמבר 2007, 02:43, נכתב על ידי Malcolm Tredinnick:
>
> On Sat, 2007-11-10 at 16:52 -0500, Faheem Mitha wrote:
> >
> > Hi.
> >
> > I'm having the following problem while testing. I'm writing a unit test
> >
On Sat, 2007-11-10 at 16:52 -0500, Faheem Mitha wrote:
>
> Hi.
>
> I'm having the following problem while testing. I'm writing a unit test
> for a file upload (using newforms). This works. However, the file gets
> written to the same media directory as is use
Hi.
I'm having the following problem while testing. I'm writing a unit test
for a file upload (using newforms). This works. However, the file gets
written to the same media directory as is used in normal work. I'd prefer
this happened somewhere where it would have no i
> Django demonstrates at least one example of an alternative in its own
> test framework, through the way that email is handled during testing.
>
Perfect!
Thanks,
Manoj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
On 11/2/07, Manoj Govindan <[EMAIL PROTECTED]> wrote:
>
> One of my applications has a view that uses a random number generator.
> I am having some trouble passing a mock random generator to the view
> for testing purposes.
> I am relying on the mock object to get predictabl
One of my applications has a view that uses a random number generator.
I am having some trouble passing a mock random generator to the view
for testing purposes.
I am relying on the mock object to get predictable results for testing
the view's logic.
After several attempts I came up with a
> Hi,
>
> Here is a simple question about testing. I have a django file upload
> application which needs to operate on the filesystem as part of its
> functionality (create files/directories etc. under media root) I use
> Debian etch. So, I want a way to test filesystem operations
Hi,
Here is a simple question about testing. I have a django file upload
application which needs to operate on the filesystem as part of its
functionality (create files/directories etc. under media root) I use
Debian etch. So, I want a way to test filesystem operations, preferably
without
Hi everyone,
i can use some help here.
Im doing some unittesting for my app (yep i finally decided to start
testing my code) and encountered a strange "bug".
basically, I follow the testing documentation and try to do a get
request and then test the response context using something
are very easy to read (and thus validate);
unittests have more infrastructure, so they can make some complex
tests easier to set up. A good test suite will probably use elements
of both.
> 2) Is it recommended to have unit tests within each class in the
> models.py file or in a separate
coming from Rails so any help appreciated
1) I realize you can use doctests or unit tests - but is one
recommended over the other ?
2) Is it recommended to have unit tests within each class in the
models.py file or in a separate testing file ?
3) Fixtures using json (I assume json is the
[ Sorry for long delay, django is one of my "also projects" ]
On Aug 11, 11:15 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> As for how to fix this problem, I have two suggestions.
>
> 1) Are you sure you can't just fix this with a static fixture?
Yes, that should work just fine. The
thanks for all the answers and your patience. got the basic testing-
setup now ...
patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
> self.assertEquals(list(self.movie.details_genre.all()), "[ Action-Komödie>, ]")
> ...
>
> output:
> AssertionError: [, ] !
> = '[, \xc3\xb6die>]'
First, it looks like you're comparing a list of objects to a string.
I'm not sure if QuerySets override the magic method to determine
if they're
et object that has list-like behaviors.
> However, it isn't a list and thus (as you discovered) likely has
> trouble when testing for equality with a list-object. You can
> try either
>
> self.assertEquals(list(self.movie.details_country.
However, it isn't a list and thus (as you discovered) likely has
trouble when testing for equality with a list-object. You can
try either
self.assertEquals(list(self.movie.details_country.all()), [])
or something like
self.assertEquals(self.movi
AIL PROTECTED]>
wrote:
> On 8/13/07, patrickk <[EMAIL PROTECTED]> wrote:
>
>
>
> > thanks russ.
>
> > is it possible to make the testing-output more verbose? I tried "-v",
> > but that doesn´t work. It´d be nice to see what tests have been
> > r
On 8/13/07, patrickk <[EMAIL PROTECTED]> wrote:
>
> thanks russ.
>
> is it possible to make the testing-output more verbose? I tried "-v",
> but that doesn´t work. It´d be nice to see what tests have been
> running and what the output is (more than just "
On 13 Sie, 09:48, patrickk <[EMAIL PROTECTED]> wrote:
> thanks russ.
>
> is it possible to make the testing-output more verbose? I tried "-v",
> but that doesn´t work. It´d be nice to see what tests have been
> running and what the output is (more than just "
thanks russ.
is it possible to make the testing-output more verbose? I tried "-v",
but that doesn´t work. It´d be nice to see what tests have been
running and what the output is (more than just "OK").
in the django-docs it says, that doctests provide automatic
documentatio
On Aug 12, 4:35 am, "Russell Keith-Magee" <[EMAIL PROTECTED]>
wrote:
> This is one approach - another would be an abstract base class.
Great.
> The simplest approach would be to write a simple test app, use the
> normal Django test framework on that app, and then not install/include
> that test
r gets blown
> > > away by the TestCase architecture. Works as documented. However, I'm
> > > not sure where I should put things that should happen post-each syncdb
> > > for testing only. Should there be a testrunner function that gets
> > > called post eac
On 8/10/07, patrickk <[EMAIL PROTECTED]> wrote:
>
> here are a couple of questions:
> 1. where to define the testing? in models.py or in tests.py? I´d like
> to seperate the testing from models.py, so how can I write doctests
> in a seperate file (the example in the djan
ly
implement abstract base classes is one of the goals of this work.
> But management.syncdb() doesn't create any tables, which is because it
> doesn't have any INSTALLED_APPS. But I don't have any django apps,
> just a handful of testing classes.
If you're going to te
ls.IntegerField()
family = models.IntegerField()
identifying_columns = (family,owner)
SimpleTreeNodes can now be used as a tree structure.
Firstly, is a mixin a good way to do this?
Secondly, I'm having a nightmare trying to set up testing for this
class outside of a DJango installat
the TestCase architecture. Works as documented. However, I'm
> > not sure where I should put things that should happen post-each syncdb
> > for testing only. Should there be a testrunner function that gets
> > called post each sync or should I create a single TestCase derive
to name
your app "tests" (such as you're writing academic software or
software whose purpose is testing the user or something they
have), I would avoid tempting fate by using "tests" as my appname.
I just create a folder called "tests/" within my regular app.
0, 2:19 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > 1. where to define the testing? in models.py or in tests.py? I´d like
> > to seperate the testing from models.py, so how can I write doctests
> > in a seperate file (the example in the django documentation only
> >
> 1. where to define the testing? in models.py or in tests.py? I´d like
> to seperate the testing from models.py, so how can I write doctests
> in a seperate file (the example in the django documentation only
> explains seperate unit-testing)?
my understanding is that doctests
I´ve been reading the slides for "Django Master Class" and the django
documentation on testing, but I´m still not sure how to actually do
some testing.
here are a couple of questions:
1. where to define the testing? in models.py or in tests.py? I´d like
to seperate the te
called "constant_data". The fixtures
> documentation in testing does say it gets synched each time but also
> says its purpose is to populate the initial empty new database.
There is an argument to be made that initial_data for a model should
only be loaded once - when the model
Для тестов существуют модули doctest и unittest, попробуй почитать
документацию :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.c
) Change out my authentication middleware (I use CAS for production
but local accounts work just fine for unittesting)
3) Add testcases that aren't related to INSTALLED_APPLICATIONS
4) unittest.TestCase()s
I've been adding most data manually for testing but would like to move
towards using fixtur
try sending this to the python mailing list.
On Wed, 2007-08-08 at 17:18 +0300, nikolay marinov wrote:
> Hi,there.I'm a young tester (4 months,still learning what is "testing
> software!?!"). I work on Linux and i write my tests with Python.
> Our assignment is to
Hi,there.I'm a young tester (4 months,still learning what is "testing
software!?!"). I work on Linux and i write my tests with Python.
Our assignment is to build a module from our 'BIG' program that
have to be able to edit xls files, without using MSExcel, OpenOffic
Russ,
RK> On 7/29/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>>
>> I'm not using django's testing framework for several reasons:
>> - I'm using django from 0.91 days and wasn't following django-users all
>> this way
>> -
Russ,
RK> On 7/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>>
>> So what advantages are there to the mocking approach over just replacing
>> the setting?
RK> Genuine mocking (as opposed to this proposal) has one really big
RK> advantage - it's lightning fast. All the db-calls get
On 7/29/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> So what advantages are there to the mocking approach over just replacing
> the setting?
Genuine mocking (as opposed to this proposal) has one really big
advantage - it's lightning fast. All the db-calls get faked using a
cache-like set
On 7/29/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>
> I'm not using django's testing framework for several reasons:
> - I'm using django from 0.91 days and wasn't following django-users all
>this way
> - I use nose and twill for te
Malcolm,
MT> That isn't an answer to the question Russell asked, though. You can get
MT> exactly the same end-effect (using in-memory SQLite) if you specify
MT> SQLite as the database engine in the settings file you use for testing.
MT> Deriving your testing settings f
mock to speedup tests.
> Mocking them into in-memory sqlite was the simplest way to reach this w/o
> losing flexibility.
That isn't an answer to the question Russell asked, though. You can get
exactly the same end-effect (using in-memory SQLite) if you specify
SQLite as the database eng
Russell,
RK> On 7/27/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>>
>> Then I've paused and wrote DbMock class for django that uses some black
>> magic to steal django db connection and substitute it with temporary sqlite
>> in-memory db.
RK> How is this different to the default D
On 7/27/07, Andrey Khavryuchenko <[EMAIL PROTECTED]> wrote:
>
> Then I've paused and wrote DbMock class for django that uses some black
> magic to steal django db connection and substitute it with temporary sqlite
> in-memory db.
How is this different to the default Django behavior if you specify
I do hardcore test-driven development and hate when tests hit my mysql
database (even local one). Things get only worse when testcases start
demanding radically different datasets.
Then I've paused and wrote DbMock class for django that uses some black
magic to steal django db connection and sub
Thanks bob
cheers,
james
On Jul 25, 11:48 pm, "Bob T." <[EMAIL PROTECTED]> wrote:
> > I don't have any idea what is the
> > testing all about.
>
> James, you might want to take a look at Dive Into Python [1] as a
> starting place. It has a couple
> I don't have any idea what is the
> testing all about.
James, you might want to take a look at Dive Into Python [1] as a
starting place. It has a couple good chapters on testing and test
driven development.
Bob
[1] http://diveintopython.org/unit_testing
hi,
Here's another newbie stupid question ... I've heard testing
everywhere from software development world, and the testing I know is
to run the application I am developing and do all the possibilities
that I user might do to make sure that the application behaves how it
should
the dict was supposed to be passing in the logged user, though I am
starting to think I don't need to pass anything as long as I can get
the session set.
Another developer in the office wrote the auth code so it took me a
bit to get a handle on just what it was doing.
I am thinking if i get the s
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Jeremy,
>Thanks for the response.
>
> to be more clear maybe -
>i was actually trying to pass the dictionary as part of the request
> object - since the view looks for the logged participant in the
> request from the page.
>
> wh
Jeremy,
Thanks for the response.
to be more clear maybe -
i was actually trying to pass the dictionary as part of the request
object - since the view looks for the logged participant in the
request from the page.
what if my view does not take a qstring? I need to pass it some
pieces in th
On 6/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
...
> response = self.client.get('/broadcasts/new/',
> {'loggedParticipant': participant} )
It's not clear to me what the dictionary there is meant to do. That
dictionary is passed as the querystring, *not* as the session.
Also, i
I am in the process of working up my unit tests for an app set to
release pretty soon, the issue I am having is with getting the unit
tests for my views to run properly.
The issue is that in each view I have a login check for a custom login
function (we could not use the django auth system unfort
On Fri, Jun 15, 2007 at 09:48:02AM -0400, Forest Bond wrote:
> Do note that it must be symmetric, since you need to be able to decrypt the
> answer.
Sorry, this is not true. It must not be a hash, anyway, and I don't see the
benefit of using public key crypto here. To me, it makes the most sense
On Fri, Jun 15, 2007 at 09:55:30AM +0200, Martin Winkler wrote:
>
> Am Thu, 14 Jun 2007 15:51:10 -0400
> schrieb Forest Bond <[EMAIL PROTECTED]>:
>
> > You can do it without external persistence (sessions and/or database
> > table) by encrypting the correct response in the image filename.
>
> So
Am Fri, 15 Jun 2007 14:53:59 +0800
schrieb "Nimrod A. Abing" <[EMAIL PROTECTED]>:
> I will be downloading your module and testing it out soon.
Cool! I'd love to get some feedback especially with different setup
than I have.
> If I have patches for your module,
Am Thu, 14 Jun 2007 15:51:10 -0400
schrieb Forest Bond <[EMAIL PROTECTED]>:
> You can do it without external persistence (sessions and/or database
> table) by encrypting the correct response in the image filename.
So when the request to get the image is sent to django, we have to
decrypt the sol
aracters - the captcha test
> is also successful, even if the image also shows uppercase characters)
Yes, that was actually one of the requirements for my project: to make
sure that lazy users are taken into account :)
I will be downloading your module and testing it out
Hi,
Nice implementation but dont see any logic to save captcha temporary,
you should add option like "nosave" and use cStringIO in that case.
Cheers,
Deepak
On Jun 13, 5:11 pm, MartinWinkler <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I just uploaded the captcha module I recently mentioned
> toht
On Thu, Jun 14, 2007 at 08:14:54PM +0200, Martin Winkler wrote:
> Am Thu, 14 Jun 2007 12:00:11 +0800
> schrieb "Nimrod A. Abing" <[EMAIL PROTECTED]>:
>
> > Are you planning to implement a configuration to allow in-memory
> > images?
>
> One thing that annoys me with in-memory images is that you h
g outdated captchas. FIXED
* new configuration options
* save as gif image with adaptive color palette to minimize filespace.
if it*s not possible to save as gif, it falls back to jpg.
(I had a problem on FreeBSD with gif images)
* there is now an "iterations" option - which wr
Hello,
I am about to try your module and I haven't downloaded it yet but I
have a few questions and some suggestions. I have my own CAPTCHA
module too which is slightly different from yours in some respects:
1. It does not need a dedicated directory to save image files. Images
are created in-mem
Am Wed, 13 Jun 2007 18:47:10 -
schrieb JustJohnny <[EMAIL PROTECTED]>:
> I just installed your captcha module. I'm not sure if it was me, my
> setup or the code but I kept getting a 'help_text' error.
That is very strange - help_text is part of django's newforms fields. I
tried to reproduce
Martin,
I just installed your captcha module. I'm not sure if it was me, my
setup or the code but I kept getting a 'help_text' error. I ended up
removing all references to help text from captcha/__init__.py", line
169 and other areas.
After I got past that, I discovered that I needed to install
Hi all,
I just uploaded the captcha module I recently mentioned to
http://django.agami.at/media/captcha/
Please take a look at it and tell me what you think of it. I really
hope this module can be put into the trunk on django.contrib some day.
Maybe one of the lead developers can take a look too
agement.py
===
--- management.py (Revision 5422)
+++ management.py (Arbeitskopie)
@@ -1158,6 +1158,19 @@
sys.stderr.write(s.read())
sys.exit(1)
+def runtestserver(addr, port, use_reloader=True, admin_media_dir=''):
+ "Starts a lightweight Web server for testing."
+
On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Has anybody experience in selenium and django ?
>
> During ./manage test there are mechanism to load fixtures, which I tried to
> use. During first tests with selenium I need to run ./manage runserver on my
> test system. Since the test
Hi all,
I currently working on an company application which needs a lot of automated
tests to make sure that changes on code won't break usability for out
production environment.
I wrote doctests for our models via models.py. I wrote small application tests
via TestCases. Until now I have not
New update, I used ModelChoiceFields and ModelMultipleChoiceFields.
Problem solved :)
On May 23, 9:01 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I wrote a newforms form, but I have some problems when I want to test
> the class. Here's the definition:
>
> def _users():
>
On Wed, 2007-05-23 at 06:01 -0700, [EMAIL PROTECTED] wrote:
> Hello,
>
> I wrote a newforms form, but I have some problems when I want to test
> the class. Here's the definition:
>
> def _users():
> print "calling _users()"
> return [(u.id, u.get_full_name()) for u in
> User.objects.fil
If you put the call to your _users() function in the form __init__() I
think it will be what you are looking for. initi s called
automatically whenever an instance is created.
class MemoForm(forms.Form):
-snip-
def __init__(self,*args,**kwarg)
super(MemoForm,self).__init__(*args,**kw
901 - 1000 of 1090 matches
Mail list logo