Re: DB migration from Oracle to MySQL

2008-04-04 Thread olive
Thank you for your answer Ian. Then I dropped the models for which there is no id (in fact I don't need them). I also removed these apps to prevent dumpdata from trying to read the related tables (which does not exists in the source Oracle DB): 'django.contrib.auth', 'django.contrib.cont

Re: DB migration from Oracle to MySQL

2008-04-03 Thread olive
Hello again, I've tried dumpdata after having copied back my tweaked models.py to the Oracle powered Django project. After 1 minute of intensive CPU activity this message appears: D:\test>python manage.py dumpdata test Traceback (most recent call last): File "manage.py", line 11, in exec

DB migration from Oracle to MySQL

2008-04-03 Thread olive
Hello, I need to migrate a DB schema and data from Oracle to MySQL. How would perform that : 1) Using Oracle SqlDevelopper migration tool ? 2) Using MySql migration tool ? 3) Using inspectdb/syncdb ? 4) ? I've already tried inspectdb/syncdb with some apparent success by tw

Re: Django Development Position

2007-08-29 Thread olive
Yes, me too. I am desperately seeking this kind of job offering here in southern Europe. I hope it will happen before I retire (if I am not already too old). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Is it possible to give a verbose name to my projects ?

2007-06-15 Thread olive
Hello, I can't remember if it is possible or not. Is possible to have a different name for my projects in the admin Site Management panel ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Dj

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

2007-06-13 Thread olive
Ross, in fact there was an error, but it didn't catch my eyes. You should make it more visible. Nice work anyway, Olivier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Re: Jasper Reports

2007-06-12 Thread olive
ample) - PyUno API (to automate document opening and exporting) - very good performance Feel free (of charge) to ask question ;-) HTH, Olive --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

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

2007-06-11 Thread olive
Hi Ross, I've tried to add my site but I don't know if it succeed or not. After having click on "Add site" the form displayed again without any success or failure message. Olive. --~--~-~--~~~---~--~~ You received this message because you a

Re: Is it a bug: f.data = data return False instead of True ?

2007-06-01 Thread olive
Malcom, I don't see any bound_data attribute. Can you give me an example please ? I'm using 0.96 by the way. Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Is it a bug: f.data = data return False instead of True ?

2007-06-01 Thread olive
Hi, This returns True: f = myform(data) f.is_valid() while this returns False: f = myform() f.data = data f.is_valid() Is it a bug ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Re: How to bind data after instantiation of a new form

2007-06-01 Thread olive
Thanks Malcom. Please forgive me, it is friday and working with Django is equally entertaining and tiring. Have a good WE, Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

How to bind data after instantiation of a new form

2007-06-01 Thread olive
Hi, Is it possible to do something like: f = myForm() ... f.someMethod(myData) Instead of: f = myForm(myData) ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to

Re: Pydev users: Undefined variable from import: objects

2007-05-16 Thread olive
On 16 mai, 08:25, Margaret <[EMAIL PROTECTED]> wrote: > Undefined from import:objects > may you need to config your path. I guess yes, but how ? These directories are already in my path: django and my_project. What else ? Olive. --~--~-~--~~~---~

Pydev users: Undefined variable from import: objects

2007-05-15 Thread olive
Hi, this is a question for Pydev/Django users. Do you have this problem (see subject) ? Do you know how to solve it ? Thx, Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Newform and i18n

2007-03-30 Thread olive
Ticket is #3877. I did not found a way to assign the ticket to you Malcom. It has been assigned to Hugo. On 30 mar, 08:53, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-03-30 at 01:43 -0700, olive wrote: > > Hello, > > > Here is how I define a form

Newform and i18n

2007-03-30 Thread olive
. I tried both from django.utils.translation import gettext_lazy as _ and from django.utils.translation import gettext as _ Any idea ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: A silly question from a tired a man

2007-03-29 Thread olive
OK, I need dict(request.POST)[''countries'] ! But why ? On 29 mar, 17:03, "olive" <[EMAIL PROTECTED]> wrote: > Hello, > > This is the request.POST I get from a (new)form: > ['Register'], 'countries': ['DE', '

A silly question from a tired a man

2007-03-29 Thread olive
Hello, This is the request.POST I get from a (new)form: No I want to have the 'countries' list but request.POST[''countries'] gives me 'ES' instead of the entire list. WHY ? Do I really to go home now ? Olivier. --~--~-~--~~~---~--~~ You received this messag

Re: jquery integration to django?

2006-11-03 Thread olive
It depends on what you mean by integrate ... I'm currently developping a Django/JQuery app and it is desperately easy. All you have to use on a django side is something like this: from django.utils.simplejson import dumps def myView(request): myQuerySet = myFunctionToBuildMyQuerySet(reques

Re: JSON serializer and UTF-8

2006-11-02 Thread olive
Thank you Patrick and Gábor, Here is my final view (tested with Django HTTP server, FireFox 2.0 and IE6.0): from django.shortcuts import HttpResponse from wabe.body.models import Section from django.utils.simplejson import dumps def loadcontent(request): post = request.POST.copy() sectio

Re: JSON serializer and UTF-8

2006-11-02 Thread olive
.. and this the way I've done it in the mean time: json = '[' for co in section.contentsorder_set.all().iterator(): if json != '[': json += ',' json += '{"content": "'+co.datacontent.content+'", "type": "'+co.datacontent.type+'"}' json += ']' Time to write

JSON serializer and UTF-8

2006-11-02 Thread olive
uot;: "hdg"}},{"pk": "2", "model": "body.datacontent", "fields": {"content": "Para 1", "type": "par"}}]' Then "Heading à 1" is properly displayed in the bro

Re: Auth and flash

2006-10-13 Thread olive
This is a question you should also ask to openlaszlo.org users. Openlaszlo is a framework which helps in building rich Flash GUI in a XUL fashion. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Pydev and Django

2006-10-06 Thread olive
You are right Malcolm, My project's PYTHONPATH was not set and Eclipse global one was pointing to an old Django version used by another project. Now all is OK. THX --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Pydev and Django

2006-10-05 Thread olive
Fabio, I'm using Django 0.95 and the console says : manage.py: error: no such option: --noreload Do I need a fresh SVN copy ? Olivier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To pos

Re: Problem upgrading from 0.95 build 3085 to 3233

2006-07-07 Thread olive
I have checkd out the code from scratch (now it is 3275) but the problem remains. I suspect that something is wrong in my model since 3085 but I can't figure out what. Please help ! --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Problem upgrading from 0.95 build 3085 to 3233

2006-06-29 Thread olive
Hi, there is no problem using the database in place. The problem occures when I try to create the database from scratch: mysql -uroot -p%passwd% -e"drop database %database%" mysql -uroot -p%passwd% -e"create database %database%" python manage.py syncdb Creating table auth_message Creating tabl

Re: order_by in different tables

2006-05-30 Thread olive
None of the documented method works for me: The only way I found to make it works (affter having suffered a lot) is: MyRelatedModel.objects.all().extra( select={'my_field': 'SELECT my_field FROM myapplication_mymodel WHERE myapplication_mymodel.id = myapplication_myrelatedmodel.mymodel

Re: One-to-one not to be used?

2006-05-23 Thread olive
This works perfectly well for me --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to

Re: does django go to 11?

2006-05-22 Thread olive
b63mr120206cwa; Mon, 22 May 2006 04:36:43 -0700 (PDT) X-Google-Token: dInXoAwZQ3UF9oa_yW-X-DGCv1c9 Received: from 193.5.93.24 by j33g2000cwa.googlegroups.com with HTTP; Mon, 22 May 2006 11:36:43 + (UTC) From: "olive" <[EMAIL PROTECTED]> To: "Django users"

Re: does django go to 11?

2006-05-22 Thread olive
have only one administrator named admin. It should be possible to improve this template to make it more generic. - this also assume that the model provides an admin field which is a ManytoMany (or ForeignKey) to Django User model. Maybe there is way to detect

Re: dojo

2006-05-18 Thread olive
I use TinyMCE which is very good. There is an how-to in the Wiki at http://code.djangoproject.com/wiki/CookBookAdminTools --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Database table not found by extra lookup

2006-05-17 Thread olive
Thank you very much Malcom. Olive. --~--~-~--~~~---~--~~ 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.com To unsubscribe from this g

Re: Queryset depending on related objects existenz

2006-05-17 Thread olive
For now I am going to use: context["app"] = [app for app in Application.objects.all() if app.docchunk_set.count() == 0] Is it really the ony solution for that problem ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscri

Database table not found by extra lookup

2006-05-17 Thread olive
(1109, "Unknown table 'application_screenshot' in where clause") C:\soft\python24\Lib\site-packages\MySQLdb\connections.py in defaulterrorhandler, line 33 Is it a bug ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subs

Queryset depending on related objects existenz

2006-05-16 Thread olive
: context["app"] = Application.objects.filter(screenshot__id__isnull=True) or context["app"] = Application.objects.exclude(screenshot__id__isnull=False) Why ? Olive. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

How to hide list filter entries which will give an empty result

2006-05-03 Thread olive
in list of Applications, all the existing users appears under 'administrator' and 'authors' list filters. Question: is here a way to show only the users who are effective administratrors (set as group_admin for at least on app) or authors (in others word: filter options which

Re: How can users only edit their own files?

2006-04-28 Thread olive
two locations where submit_row tag is called, then you will have to define two different blocks (hidesubmittop and hidesubmitbot for example) and repeat yourself (oops, no, no, use an include tag instead) HTH Olive. --~--~-~--~~~---~--~~ You received this message becaus

Re: Ecommerce & Django

2006-04-14 Thread olive
+1 for python-hosting My possible contributions: - on-the-fly PDF invoice creation using ReportLab (or another PDF lib ?) - Advertising management - links with others Web Services (Amazon ...) - The Shop as Web Service ... ... --~--~-~--~~~---~--~~ You received t

Re: Ecommerce & Django

2006-04-12 Thread olive
I'm currently working on rewriting a store (for my wife too;) I have originaly wrote in OmniMark language (isn't it exotic ?). It is pretty straightforward with Django, I have already achieve the shopping cart management, user registration, shipping (Chronopost, France), discounts. But the model

Re: Ecommerce & Django

2006-04-12 Thread olive
I'm currently working on rewriting a store (for my wife too;) I have originaly wrote in OmniMark language (isn't it exotic ?). It is pretty straightforward with Django, I have already achieve the shopping cart management, user registration, shipping (Chronopost, France), discounts. But the model

Re: Using _pre_delete() to stop execution

2006-04-11 Thread olive
I totally agree with Glenn. Every day I suffer of the lack of example in the Python doc. It would be great that Django does it better. Olivier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group

Re: Showstopper: manytomany admin widget broken under IE6.0 when in collapsed group

2006-04-11 Thread olive
Ticket #1621 --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EMAIL PROTECTED] F

Showstopper: manytomany admin widget broken under IE6.0 when in collapsed group

2006-04-11 Thread olive
Hi, when your uncollapse the first time then the right list show only one entry (in fact it is a dropdown at this stage). If you save without performing any other operation before, then only the shown entry will saved in the database (others entries will be LOST !). I you move one or more entry

Re: Hiding Save options in admin change form based on user id

2006-04-11 Thread olive
Here it is: {% ifequal user.username 'admin' %} {% submit_row %} {% else %} {% if original.admin %} {% for a in original.admin.all %} {% ifequal user.username a.user.username %} {% submit_row %} {% endifequal %} {% endfor %} {% endif %} {% endifequal %} Maybe I

Re: Hiding Save options in admin change form based on user id

2006-04-11 Thread olive
Me again. Now I know that the object data in context is {{ original }} How can I test in my the template that user object is a member of the original.admin set ? Olivier. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

Hiding Save options in admin change form based on user id

2006-04-11 Thread olive
Hello Django experts, I'm trying to hack admin/change_form.html (do I need to hack the corresponding view too?) to make Save options (submit_row tag in admin/change_form.html) disappear if one of the user related to the object being saved is different than the logged in user. The problem is that

Re: extend User in m-r

2006-04-10 Thread olive
Bryan, this won't work either, because when you try to save the user using admin you will have this kind of error: Request Method: POST Request URL:http://localhost:8000/admin/auth/user/40/ Exception Type: TypeError Exception Value:Cannot resolve keyword 'name' into f

Re: OneToOneField

2006-03-24 Thread olive
OK, you do, not the original poster. Anyway, I've heard that subclassing has been improved in MR. Why don't you use that instead ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: OneToOneField

2006-03-24 Thread olive
No, an up to date svn trunk. --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group, send email to [EM

Re: OneToOneField

2006-03-24 Thread olive
Strange, OneToOne works pretty well for me to extend User model (I would prefer to subclass but without having new database tables). On the contrary, I had many problem with OneToOne to extend my own model(s), I use ForeignKey with intermediary model and Inline Edit instead. hth --~--~

Re: Accessing a session within template context processors

2006-02-24 Thread olive
Hi Ross, this is the way (simplified) I do with a generic view: Url: (r'^app/$', 'project.app.views.index'), View: --- from django.views.generic import list_detail def index(request): return list_detail.object_list(request, 'app', 'module', extra_context = {"region": request.s

how to post_save_redirect to the referer

2006-02-07 Thread olive
This works for me: (r'^mymodule/update/(?P\d+)/$', 'django.views.generic.create_update.update_object', dict(mymodule_info, post_save_redirect="/mymodule/%(id)s/")), But I have another problem: how to redirect to this page after updating a related object. for example: (r'^myrelatedmodule/update/

Re: post_save_redirect in update_object generic view

2006-02-07 Thread olive
Hi Sam, This works for me: (r'^mymodule/update/(?P\d+)/$', 'django.views.generic.create_update.update_object', dict(mymodule_info, post_save_redirect="/mymodule/%(id)s/")), But I have another problem: how to redirect to this page after updating a related object. for example: (r'^myrelatedmodul

Re: admin/change_form broken ?

2005-12-11 Thread olive
Its OK now. Thanks Robert and Kenneth

admin/change_form broken ?

2005-12-10 Thread olive
Hello, I have updated Django from svn today and this is the message I get when I try to display an item update admin page: 'block' tag with name 'extrahead' appears more than once Request Method: GET Request URL:http://127.0.0.1:8000/admin/events/events/1/ Exception Type: Tem

Re: How to redirect to the last visited page after login/registration completion

2005-12-10 Thread olive
Thanks Georg, The referer method did the trick. Olivier.

Re: How to redirect to the last visited page after login/registration completion

2005-12-10 Thread olive
I would like to add that a link to the login/registration form appears on each page of my site (i.e defined in base.html)

How to redirect to the last visited page after login/registration completion

2005-12-10 Thread olive
Hello, login and registration may requires several steps/forms/pages to complete. How do I redirect, after login registration completion, to the last page visited before the first login/registration page ? Do I need to save each visited page (request.path) to the session ? If this is the way t

Hard time with authentication

2005-12-07 Thread olive
Hello, I'm quite perfectionist and I do have a deadline for my project ! But authentication is a little bit hard and not so well documented. Here is my view (see comments please): class UserRegManipulator(formfields.Manipulator): def __init__(self): self.fields = ( form

Re: gettext is not defined

2005-12-06 Thread olive
It is OK now. Thanks a lot. Bye, Olivier.

Re: gettext is not defined

2005-12-06 Thread olive
Bingo! There is no problem with en, but with fr ... Olivier.

Re: gettext is not defined

2005-12-06 Thread olive
Request Method: GET Request URL:http://127.0.0.1:8000/admin/jsi18n/ Exception Type: KeyError Exception Value:'' Exception Location: C:\soft\django_src\django\views\i18n.py in javascript_catalog, line 156 Traceback (innermost last) C:\soft\django_src\django\core\han

Re: gettext is not defined

2005-12-06 Thread olive
>have you removed your .pyc files after svn up? yes >heck the source of the HTML pages wether there is a reference to the script >library in there and wether the path is correct The looks strange: http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";> http://www.w3.org/1999/xhtml"; lang="fr" xm

Re: gettext is not defined

2005-12-05 Thread olive
Georg, I did not overload any admin template. The problem appears the last time calendar.js and DateTimeShortcuts.js have been updated by svn up. Do I need to add a parameter in the corresponding model meta.Admin ? Olivier.

gettext is not defined

2005-12-05 Thread olive
Hello, While gettext is in the PATH, I get the following javascript errors browsing an admin page with calendar and DateTime widgets: Erreur : gettext is not defined Fichier source : http://127.0.0.1:8000/media/js/calendar.js Ligne : 26 Erreur : gettext is not defined Fichier source : http://12

Re: Problem with i18n

2005-12-03 Thread olive
Georg, it works only if I remove the r from the parameter at lines 78, 94 and 103. Olivier. PS: I have downloaded the win32 version of gettext from sourceforge.

Problem with i18n

2005-12-03 Thread olive
Hello, C:\soft\Python23\Lib\site-packages\sonikete>make-messages.py -l fr processing language fr Traceback (most recent call last): File "C:\soft\django_src\django\bin\make-messages.py", line 78, in ? (stdin, stdout, stderr) = os.popen3(cmd, 'r') ValueError: popen3() arg 2 must be 't' or 'b

Re: Problem with TinyMCE integration

2005-12-03 Thread olive
Thanks a lot

Re: Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-12-02 Thread olive
Many thanks to everyone.

Problem with TinyMCE integration

2005-12-02 Thread olive
Hello, svn update done on 11/29 ADMIN_MEDIA_PREFIX = '/media/' tiny_mce directory copied in C:\soft\django_src\django\contrib\admin\media\js MODEL: from django.core import meta from django.models.contacts import contacts class Place(meta.Model): name = meta.CharField(maxlength=200) ci

Exception Location: C:\soft\django_src\django\templatetags\adminmedia.py

2005-11-29 Thread olive
Hello, when I try to access the admin site Django is complaining aout missing adminmedia.py which is true. There is a adminmedia.pyc instead. svn up does not retrieve the file. Debug message is: AttributeError at /admin/ 'module' object has no attribute 'register_tag' Tequest Method: