Re: How to get sum of fields without using custom SQL?

2008-01-25 Thread Emanuele Pucciarelli
Il giorno 25/gen/08, alle ore 08:32, shabda ha scritto: > Instead is there some way I can get django to do this in the database, > where it runs a query like > select sum(hrs_worked) from Entry where job_id = job.id, without using > custom SQL? Just not yet: http://code.djangoproject.com/ticket/

Re: Looking for a security/encryption programmer for small contract

2008-01-23 Thread Emanuele Pucciarelli
Dear Francis, > Only one person (or very limited group) will receive the encrypted > message by email. It will hold customer information need by the sale > rep. So no user will have to deal with the encrypted data. > > Server receive customer info -> encrypt critical info -> sent email to > sales

Re: Apache + mod_python (noob django/python/apache) import error in website url file

2007-08-01 Thread Emanuele Pucciarelli
Hello, > PythonPath "['/home/shawn/myCode/intertubewaypoint/'] + sys.path" Your modules should live right below the PythonPath. If your urls.py file is at /home/shawn/myCode/intertubewaypoint/urls.py, then that line should probably read PythonPath "['/home/shawn/myCode'] + sys.path"

Re: Match from list in URLconf

2007-07-30 Thread Emanuele Pucciarelli
Il giorno 30/lug/07, alle ore 17:21, Matt ha scritto: > For instance, if you also had categories of users and wanted to be > able to list the users in each category, a 'human-friendly' url > scheme might look like this: > > www.mysite.com/users/matt --> go to my area > www.mysite.com/users/jess

Re: Match from list in URLconf

2007-07-30 Thread Emanuele Pucciarelli
Il giorno 30/lug/07, alle ore 01:17, Matt ha scritto: > This could all be acheived using another view to determine whether the > given name was a valid user, and if so direct you to the appropriate > view, but wouldn't that prevent you using Django's generic views? You should probably look at '

Re: Template tag and combining variables & text

2007-07-29 Thread Emanuele Pucciarelli
Il giorno 29/lug/07, alle ore 22:48, Tomas Kopecek ha scritto: > I know, it's syntactical nonsense. But does anybody know about some > way > how to combine variable content with string content? Is it possible? > > For example, very crude way could be something like > > {% img %} {{BASE_URL}}/p

Re: Is there any way to associate a view with a template?

2007-07-29 Thread Emanuele Pucciarelli <[EMAIL PROTECTED]>
Hi Dan, > make a view for the nav.html template (which is included in all the > page templates)? I imagine it could be done with SSI but I don't want > to go that route unless I have no other option. Carole's advice solves your problem just right; on the other hand, you might want to look at the

Re: Rails Juggernaut like extension for python

2007-07-21 Thread Emanuele Pucciarelli <[EMAIL PROTECTED]>
On 20 Lug, 20:45, serialx <[EMAIL PROTECTED]> wrote: > Is there something like this already? Or if not, does anyone like to > port it to python and django? :D I had proposed to develop a push framework for Django; you can find the original draft at http://hosted.corp.it/django/full.html . I don'

Re: Strange translation/encoding problem

2007-07-05 Thread Emanuele Pucciarelli <[EMAIL PROTECTED]>
Hi, from django.utils.translation import ugettext as _ My guess is that if you import ugettext, then you should supply a Unicode string as an argument: def index(request): teststring = _(u"Lösung") [...] (notice the 'u' before the string). That works here, at least using an utf-8 sour