Re: contributing code legalities

2009-12-14 Thread Gabriel Rossetti
As far as I know they can't, since the code was committed under a BSD license, the only thing they could do is go after their employee, but I may be wrong. Gabriel Wes James wrote: > Say a user contributes code to the django project but they have > already signed a contract at their company tha

RuntimeError: class.__dict__ not accessible in restricted mode

2009-11-27 Thread Gabriel Rossetti
Hello everyone, I keep on getting this error with mod_python: *RuntimeError: class.__dict__ not accessible in restricted mode *I read that I have to set : PythonInterpreter main_interpreter in my httpd.conf, but this doesn't seam to work. Here is my httpd.conf : ServerName srv1.myapp1.

OT : SetHandler mod_python vs SetHandler python-program

2009-11-27 Thread Gabriel Rossetti
Hello everyone, this is a bit off-topic, in my apache2 httpd.conf, I see some poeple use "SetHandler mod_python" and others (as mentioned in the docs) use "SetHandler python-program", what is the difference? Thank you, Gabriel -- You received this message because you are subscribed to the Goo

Re: Write debug error to file

2009-11-27 Thread Gabriel Rossetti
in when an exception is thrown. would this be > sufficient? > > konstantin > > On Nov 26, 11:15 am, Gabriel Rossetti > wrote: > >> Hello everyone, >> >> I'd like to write the django error page (when debug == true) to a file >> and return a page w

Re: Write debug error to file

2009-11-27 Thread Gabriel Rossetti
don't use it a full example of how to use middleware to process > an error. > > http://areciboapp.com > > -- >Andy McKay >www.clearwind.ca > > On 2009-11-26, at 8:15 AM, Gabriel Rossetti > wrote: > > >> Hello everyone, >> >&g

Write debug error to file

2009-11-26 Thread Gabriel Rossetti
Hello everyone, I'd like to write the django error page (when debug == true) to a file and return a page with that link instead of the actual page. The reason I'd like to do this is to be able to debug a facebook app because fb seams to filter/block the error page. Does anyone know how to do th

Re: Pass a non-pickable object in between pages without using the session

2009-10-01 Thread Gabriel Rossetti
Karen Tracey wrote: > On Wed, Sep 30, 2009 at 1:49 PM, Gabriel Rossetti > mailto:gabriel.rosse...@arimaz.com>> wrote: > > > Why can't it be pickled? > > Because it has a socket open > > > Clearly, since every request is independent, >

Re: Pass a non-pickable object in between pages without using the session

2009-10-01 Thread Gabriel Rossetti
Carsten Reimer wrote: > Hi, > > Karen Tracey schrieb: > >> On Wed, Sep 30, 2009 at 1:49 PM, Gabriel Rossetti >> mailto:gabriel.rosse...@arimaz.com>> wrote: >> >> > Why can't it be pickled? >> >> Because it has a socket

Re: Pass a non-pickable object in between pages without using the session

2009-09-30 Thread Gabriel Rossetti
Daniel Roseman wrote: > On Sep 30, 4:59 pm, Gabriel Rossetti > wrote: > >> Hello everyone, >> >> how can I pass an object in between pages without using the session? The >> problem is that the object can be pickled so it can be put in a session, >>

Re: Pass a non-pickable object in between pages without using the session

2009-09-30 Thread Gabriel Rossetti
Christophe Pettus wrote: > On Sep 30, 2009, at 8:59 AM, Gabriel Rossetti wrote: > >> how can I pass an object in between pages without using the session? >> The >> problem is that the object can be pickled so it can be put in a >> session, >> any idea

Pass a non-pickable object in between pages without using the session

2009-09-30 Thread Gabriel Rossetti
Hello everyone, how can I pass an object in between pages without using the session? The problem is that the object can be pickled so it can be put in a session, any ideas? Thank you, Gabriel --~--~-~--~~~---~--~~ You received this message because you are subsc

how to keep custom xmpp webservice open in between pages?

2009-09-17 Thread Gabriel Rossetti
Hello everyone, I have to use a custom xmpp-based webservice in my django app (as a client), it uses the xmpp python module. I tried to store it in my session but I get pickle errors. Is there another way to store stuff but that doesn't pickle the object? Thank you, Gabriel --~--~-~-

Per app middleware?

2009-03-23 Thread Gabriel Rossetti
Hello everyone, I have a project that has two apps that use the same models (I moved it out of the apps, up to the project's root). I was wondering if it is possible to have global middleware (that they both need) and per app middleware (sspecific to each app). I don't want one app's middlewar

Re: custom auth

2008-11-04 Thread Gabriel Rossetti
Gabriel Rossetti wrote: > Hello everyone, > > I'm trying to get a custom auth handler to work but I keep on getting > this error when accessing request.user.get_profile() : > > DoesNotExist: User matching query does not exist. > > I followed the f

custom auth

2008-10-30 Thread Gabriel Rossetti
Hello everyone, I'm trying to get a custom auth handler to work but I keep on getting this error when accessing request.user.get_profile() : DoesNotExist: User matching query does not exist. I followed the following tutorials : http://garage.pimentech.net/mdm_src_dj_auth_documentation/ http:/

Re: shared model

2008-09-26 Thread Gabriel Rossetti
Gabriel Rossetti wrote: > Hello everyone, > > I would like to share a model with all my apps. I moved it from the app > to the project's root dir, but now the admin interface can't find it! > Does anyone know how to do this? I thought of createing empty models in

shared model

2008-09-26 Thread Gabriel Rossetti
Hello everyone, I would like to share a model with all my apps. I moved it from the app to the project's root dir, but now the admin interface can't find it! Does anyone know how to do this? I thought of createing empty models in each app and importing everything from the shared model, but I d