Re: "Powered by Django" directory - Designer Wanted!

2007-06-05 Thread Frédéric Roland
Hi, nice idea. Just some thought: There is a great resource where people look for solutions: Python Cheese Shop. I see some turbogear module there but very few Django related modules. FR Ross Poulton a �crit : > Hi all, > > I've been using Django for quite a while now, some of you may kn

(x)html tags used to render newforms

2007-03-11 Thread Frédéric Roland
Hi, I was discussing about layout of forms using CSS and heard that there was some tags such as fieldset, label and legend that should allow us to make the layout of forms without tables. Is there a reason these tags aren't used to render forms in Django ? Does it is hard to add them ? (Somet

Re: (x)html tags used to render newforms

2007-03-13 Thread Frédéric Roland
Thank you for your answers. James Bennett a écrit : > If you have Django print out the entire form's HTML in one go, it will > automatically add 'label' elements for each field. It will not (at the > moment) add fieldsets and legends. > > It's also quite easy to output these yourself in a templat

What is the FloatField type returned when accessing the field value ?

2007-01-06 Thread Frédéric Roland
I have a strange problem with Satchmo (eCommerce solution built using Django) with a field defined as a FloatField but is returned as an "str" instead of a Decimal. Here is an excerpt of the code: class SubItem(models.Model): """ The unique inventoriable item. For instance, if a shirt

Re: What is the FloatField type returned when accessing the field value ?

2007-01-07 Thread Frédéric Roland
The version of MySql is 5.0.21. Using MySQl Query browser I can see that product_item.price is defined as DECIMAL(6,2). I seem to recall running into this same issue using MySQL on Windows. What version of MySQLdb are you using. If I'm remembering this correctly, I was using an older version

Problem solved (Re: What is the FloatField type returned when accessing the field value ?)

2007-01-07 Thread Frédéric Roland
David, I seem to recall running into this same issue using MySQL on Windows. What version of MySQLdb are you using. If I'm remembering this correctly, I was using an older version of MySQLdb which mapped DB float/numeric fields to str and then I updated it and the newer version mapped them corr

Re: Threaded versus forked how can I tell?

2007-02-04 Thread Frédéric Roland
Hi, I found the answer here http://httpd.apache.org/docs/2.0/mpm.html in short just type ./httpd -l (Lower case "L") And you will see the list of all modules compiled in your apache server. If you see prefork.c it should be ok. CC Jakub Labath a �crit : > Hi, > > Is there a way to detect in

Re: Generic Authorization vs per-object-permissions branch

2007-02-06 Thread Frédéric Roland
I would like to see these branches merged with the trunk too but lack sufficient experience with working with trunk/branches. What are the steps needed to merge the last change from the trunk into the branches to keep the branches up to date ? How would you do it ? Start with the patch committed

Error in model while trying to model a parent/child relation.

2006-05-17 Thread Frédéric Roland
Hello, I'm both new to Python and to Django. I'm using Django from subversion (after magic removal has been merged in trunk). When doing python manage.py install Manager I get the following error: NameError: name 'Reference_Data_Value' is not defined here is my code: class Reference_Data_Valu

Reference Data Values

2006-06-19 Thread Frédéric Roland
Hi, I have a database where many tables links to a table that store reference data values. Data from many "domains" are stored in a single reference data table. The reference data table structure is something like this: primary_key, domain_fkey, short_code,description,is_default_value,sort_order

Re: Reference Data Values

2006-06-20 Thread Frédéric Roland
It seems that what I want to achieve can be done using "choices" as seen here: http://www.djangoproject.com/documentation/model_api/#choices I think that I will define the three tables I use (reference_data_domains, reference_data_values, reference_data_links) in a model and make a function re