Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Jon Atkinson
> >> - Data entry people use lots of F-keys, Ctrl-keys and Alt-keys to make > >> things happen on the screen. > > > > Not quite as much flexibility here. HTML defines accelerator > > keys which are browser-specific (sometimes Alt+letter, sometimes > > control+letter, or other combos). > > This is

RE: Heads-down transaction-processing apps on Django

2008-02-02 Thread BALIBEY
_ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ --~--~-~--~~~---~--~~ You received this message because you ar

Re: Using a Python module

2008-02-02 Thread MariusB
Thanks for your help, Jeff! --~--~-~--~~~---~--~~ 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

Re: newforms file-upload troubleshooting

2008-02-02 Thread birkin
Been experimenting & ruminating: I'm thinking the problem has something to do with this views.py line: file_instance.originalfile = cleaned_form_data['originalfile'] Will experiment more. --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: DB query filter on member relations

2008-02-02 Thread Sebastjan Trepca
It can be done but the query will be quite slow. Just don't set the title, so when you'll be displaying the model, check if title exists else use first 200 characters of url. Sebastjan On Feb 2, 2008 4:15 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have a Model with two fields, a url

Reinitializing of db connection

2008-02-02 Thread Grigoriy Petukhov
Hi, all. I use django ORM in multiprocessed parser. I use processing module: http://pyprocessing.berlios.de/doc/ Each process is a fork of main process and I need to work with DB in each process. It is not recommended to use one db connection from all forked processes, so I want to reinitialize co

Reinitializing of db connection

2008-02-02 Thread Grigoriy Petukhov
Hi, all. I use django ORM in multiprocessed parser. I use processing module: http://pyprocessing.berlios.de/doc/ Each process is a fork of main process and I need to work with DB in each process. It is not recommended to use one db connection from all forked processes, so I want to reinitialize co

Re: FckEditor vs TinyMCE

2008-02-02 Thread Dj Gilcrease
On Feb 1, 2008 9:49 AM, Cull <[EMAIL PROTECTED]> wrote: > > We're just starting to consider text editing. > What is our easiest path here? TinyMce or FckEditor. The latter has > been our choice previously, but is there a post somewhere that > discusses who to do it? I haven't been about to find

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Michael Hipp
Jon Atkinson wrote: - Data entry people use lots of F-keys, Ctrl-keys and Alt-keys to make things happen on the screen. >>> Not quite as much flexibility here. HTML defines accelerator >>> keys which are browser-specific (sometimes Alt+letter, sometimes >>> control+letter, or other comb

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Michael Hipp
Tim Chase wrote: >>> try to use control+W to delete the previous word while I'm typing >>> in IE, only to have it close my whole window. Minutes of sotto >>> voce oaths usually follow. >> Ug. This would be disastrous to a clerk on a tight queue. In the very >> least it looks like I may have to m

Cache problem with language

2008-02-02 Thread Grupo Django
Hello, I'm having a problem using the cache system with different languages. I have used the vary_on_cookie decorator in my view: @vary_on_cookie @cache_page(60 * 60 * 12) def my_view(request): ... I've even test with: @vary_on_headers('Cookie') and: my_view = vary_on_headers(my_view, 'Co

RSS escaping, {{ autoescape }} and |safe

2008-02-02 Thread Jon Atkinson
My blog uses some very simple Django apps, and applications in contrib for most of the features, including django.contrib.syndication.feeds. I've recently noticed that my RSS isn't being properly escaped (see http://jonatkinson.co.uk/feeds/blog/), so I thought that simply wrapping my RSS blog_des

Re: allow user to update his record

2008-02-02 Thread Carl Karsten
Carl Karsten wrote: > Carl Karsten wrote: >> Is there a built in way for users to update their own user record? >> >> I currently have a page that displays user data to any other user. I was >> hoping >> to re-use that for allowing a user to edit his own. >> >> If it matters, I am useing a user

Template help, gotta be simple

2008-02-02 Thread Michael Hipp
I'm trying to do something with a template that I thought would be very simple but I've not yet found a way to make it work at all. from django.template import Template, Context fields = ("f1", "f3") data = [ {"f1": "Foo", "f2": "Skip ","f3": "Bar"}, {"f1": "Cat", "f2": "Ignore","f3":

Re: Heads-down transaction-processing apps on Django

2008-02-02 Thread Tim Chase
> Yes. This is really easy for stuff like Zebra printers. Hadn't thought > of it for the bigger ones needing lots of PCL but it could be done > easily enough with a little work to abstract some of the basic drawing. There are some other add-on Python libraries that, as long as your printer supp

Re: RSS escaping, {{ autoescape }} and |safe

2008-02-02 Thread Michael Elsdörfer
> I'm sure I'm not the only person who has come across > this problem I ran into this yesterday: http://code.djangoproject.com/ticket/6533 Might be related? Michael --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: Template help, gotta be simple

2008-02-02 Thread Ned Batchelder
I'm not sure there's a way to do this purely in the template language. You can munge the data in the view instead. This line creates a new filtered_data list that has only the data you want to display: filtered_data = [ dict([ (k,d[k]) for k in fields ]) for d in data ] --Ned. http://nedbatc

unknown encoding: cp0 (apache, mod_python)

2008-02-02 Thread Michael Hipp
My code runs fine on the development server, but dies on a local copy of apache with mod_python. It's giving me this error: unknown encoding: cp0 On this line: print 'report: %s' % report_name Google found several references to making everything unicode (see below), so I tried this:

Re: Cache problem with language

2008-02-02 Thread Antoni Aloy
2008/2/2, Grupo Django <[EMAIL PROTECTED]>: > > > Hello, I'm having a problem using the cache system with different > languages. > I have used the vary_on_cookie decorator in my view: > > @vary_on_cookie > @cache_page(60 * 60 * 12) > def my_view(request): > ... > > > I've even test with: > @var

problems with custom template library

2008-02-02 Thread jonathan . lukens
Hi all, I am new to Django and am trying to get my site, which is now built with ExpressionEngine, running on my development machine. I am trying to write a custom filter. When I place it in a template, I get the following error message: 'blog_extras' is not a valid tag library: Could not load

template: how to make use of forloop.counter0

2008-02-02 Thread Michael Hipp
I'm trying to do something in a template that seems really simple ... populate the row/columns of a table and apply alignment for each field. So I'm doing this: {% for row in report_data %} {% for col in row %}

Re: template: how to make use of forloop.counter0

2008-02-02 Thread Malcolm Tredinnick
On Sat, 2008-02-02 at 20:42 -0600, Michael Hipp wrote: > I'm trying to do something in a template that seems really simple ... > populate the row/columns of a table and apply alignment for each field. > So I'm doing this: > > {% for row in report_data %} > >

Re: problems with custom template library

2008-02-02 Thread Kenneth Gonsalves
On 03-Feb-08, at 8:06 AM, [EMAIL PROTECTED] wrote: > I have tried 'breaking' the filter module by entering all manner of > syntax errors in the file, deleting the import statements, leaving it > blank, etc. No matter what I do the error message is the same. this error message is hardcoded - it

Re: problems with custom template library

2008-02-02 Thread Kenneth Gonsalves
On 03-Feb-08, at 8:06 AM, [EMAIL PROTECTED] wrote: > @register.filter() try: @register.filter <--- without the '()' -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ Foss Conference for the common man: http://registration.fossconf.in/web/ --~--~-~--~

What is best way of positioning html edit boxes?

2008-02-02 Thread Glenn_NZ
Hi, I am a new django user and I am using the django trunk version. Inside the template I am using the {{form.as_p}} template variable to automatically output all the fields for the form. Someone told me, not from this group, that the best way of position edit boxes (ie ) is to use cascading sty

Re: unknown encoding: cp0 (apache, mod_python)

2008-02-02 Thread Karen Tracey
On Feb 2, 2008 8:14 PM, Michael Hipp <[EMAIL PROTECTED]> wrote: > > My code runs fine on the development server, but dies on a local copy of > apache with mod_python. > > It's giving me this error: > unknown encoding: cp0 > > On this line: > print 'report: %s' % report_name > > Google foun

Re: What is best way of positioning html edit boxes?

2008-02-02 Thread Kenneth Gonsalves
On 03-Feb-08, at 11:24 AM, Glenn_NZ wrote: > I am a new django user and I am using the django trunk version. > Inside the template I am using the {{form.as_p}} template variable to > automatically output all the fields for the form. > > Someone told me, not from this group, that the best way of

Problem creating a model instance with data captured from an URL in a View

2008-02-02 Thread Jack Oswald
I have just created my first, very simple, Django app. Using the URL as a way to pass in parameters, I capture information and use a template to create an iCal file. I intend to put this up on the web to allow anyone who wants to add a link to a web page (especially static pages) a link that retu

Re: What is best way of positioning html edit boxes?

2008-02-02 Thread Glenn_NZ
I am not modifying form.as_p() in the view. Should I be? --~--~-~--~~~---~--~~ 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 th