missing ampersands in pdfs

2010-11-12 Thread paulh
I am using django with the geraldo reports engine and have recently encountered problems. Of course this may be a geraldo problem and I have made a similar post on that group. I am hoping, however, that this might just ring a bell with someone. Many text fields in the database contain ampersands

Re: applying a patch

2009-11-27 Thread paulh
Thanks to everybody who replied, in the end I downloaded git, cloned the django repository with with git clone and applied the patch with git apply and it all worked well. Paul Hide On 26 Nov, 12:26, Tim Chase wrote: > rebus_ wrote: > >> diff --git

Re: applying a patch

2009-11-26 Thread paulh
ty simple.  There's > quite a bit of info in the blog circles about this stuff, so you can > find more specifics by searching online. > > Tim > > On Nov 25, 12:12 pm, paulh <paul.h...@gmail.com> wrote: > > > I am interested in applying patch 7028, but I don't know wh

applying a patch

2009-11-25 Thread paulh
I am interested in applying patch 7028, but I don't know what to apply it to. Any help would be appreciated. Paul Hide -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To

admin get_urls method

2009-09-28 Thread paulh
Can somebody suggest things that you might do with the new(1.1) get_urls method in ModelAdmin? I suspect that I must be missing something. Paul Hide --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

admin list_display

2009-09-26 Thread paulh
Using the admin list_display and a callable with its allow_tags property set to True you can plant a link for each object on the changle_list display page of the admin. Is there some way of making this link dynamic without having to extend the ModelAdmin.changelist_view and its associated

raw_id_fields in admin

2009-09-06 Thread paulh
When using one of these fields in Add mode you make a choice of the object from a popup window and the js returns the id into the field. It would be very useful if it also tacked the unicode (that you see whilst making the choice) corresponding to that id onto the end of the field as it does when

formfield_for_foreignkey

2009-09-02 Thread paulh
I have used formfield_for_foreignkey in the admin and it works well. However, suppose you have two foreign keys in your model and you want to restrict the choices on both of them? Paul Hide --~--~-~--~~~---~--~~ You received this message because you are

Re: can't pickle OracleQuery

2008-08-28 Thread paulh
on Pickling QuerySets) suggest. Paul Hide On Aug 28, 5:49 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-08-28 at 06:51 -0700, paulh wrote: > > django svn version 8659 > > I have some django code that runs perfectly against postgres > > (psycopg2), bu

can't pickle OracleQuery

2008-08-28 Thread paulh
django svn version 8659 I have some django code that runs perfectly against postgres (psycopg2), but fails with: PicklingError: Can't pickle : attribute lookup django.db.backends.oracle.query.OracleQuery failed when run against an Oracle XE database. Just wondered whether anyone else had

foreign key drop downs - again

2007-09-25 Thread paulh
Use of the django default forms routines form_for_model, form_for_instance on a model that has a foreign key that references a table with a large number (thousands) of rows results in two problems. One, you get an appreciable (5 seconds on a local network using postgres and apache) delay while

Re: admin gives error on add or select item from list

2007-09-23 Thread paulh
Good idea and I have rechecked them; they all do return strings. Paul Hide On Sep 23, 3:42 pm, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Check that your __str__/__unicode__ model's methods return strings > > On 23 сент, 17:41, paulh <[EMAIL PROTECTED]> wrote: &

admin gives error on add or select item from list

2007-09-23 Thread paulh
I select a model in the initial admin page and am offered a choice of the available instances/rows to change. If I either select one of these, or press the add button I get the following error: Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py"

Re: ERROR: curr ... SET client_encoding to 'UNICODE'

2007-09-18 Thread paulh
is a number (often). Often, because old habits die hard, when django wants a python object I go to great and pointless lengths to get hold of the corresponding number and then get an error. On Sep 18, 2:27 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 9/18/07, paul

ERROR: curr ... SET client_encoding to 'UNICODE'

2007-09-18 Thread paulh
I got this error: ERROR: current transaction is aborted, commands ignored until end of transaction block SET client_encoding to 'UNICODE' from django dev version 6373. There are a couple of hits when I searched the list, but either I didn't understand them, or they are not relevenat (or both).

Re: databrowse, coercing to Unicode:

2007-08-10 Thread paulh
▼ Local vars Variable Value encoding u'utf-8' errors u'strict' s u'books' strings_only False On Aug 10, 2:37 pm, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Fri, Aug 10, paulh wrote: > > > I have tried the databrowse app on a

databrowse, coercing to Unicode:

2007-08-10 Thread paulh
I have tried the databrowse app on a couple of projects, but it fails on both with the same error. I wondered whether anyone else has seen this error message: coercing to Unicode: need string or buffer, __proxy__ found If you need the whole stack, let me know. Paul Hide

generic view object_list

2007-03-23 Thread paulh
The code of views.generic.list_detail. object_list has the following line: queryset = queryset._clone(), Looking at the rest of the code I can't quite see why this 'cloning' operation takes place, but I have probably missed something. If the code were to read: try: queryset = queryset._clone()

generic views

2007-03-22 Thread paulh
The object_list generic view would be much more useful if it would accept lists as well as querysets. The only thing that prevents this is the line: queryset = queryset._clone() since lists don't have the _clone method. The reason I want to do this is that I accumulate a list of things from a

Re: newforms select field

2007-02-18 Thread paulh
at the django code there doesn't seem to be any real difference between a base_field and a field that is created in the __init__ method; or maybe I've missed something. Paul Hide On Feb 18, 6:21 am, "Honza Král" <[EMAIL PROTECTED]> wrote: > On 2/18/07, paulh <[EMAIL PROTECTED]>

Re: newforms select field

2007-02-18 Thread paulh
overriding the __init__ method. Is that simplicity at some cost I wonder? Paul Hide On Feb 18, 12:35 am, "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote: > On Feb 17, 7:05 pm, "paulh" <[EMAIL PROTECTED]> wrote: > > > I feel the following should wor

newforms select field

2007-02-17 Thread paulh
I feel the following should work: class Myform(forms.Form): ...publ = forms.ChoiceField(label='Publisher', required=False) and then in handler I should be able to set the choices dynamically by: def meth(request): ...frm=Myform(initial={'publ':((1,2),(2,3),(3,4)))}) #even if the brackets are

Re: Good Web development practice

2007-01-08 Thread paulh
Many thanks to both Russ Magee and Andrew Durdin - all is now clear. I will, as you suggest, try to come up with a passage that could be added to the tutorial to clarify the ideas. Seeing as it was I that had the problem I might be best suited to write such a passage drawing on the contents of

Re: Good Web development practice

2007-01-08 Thread paulh
This thread seems to have drifted away from its original purpose. The tutorial authors seemed to have an idea about preventing the reposting of data by use of a suitable redirect. I stated that I had been unable to achieve this effect and asked whether anyone else had been able to achieve it.

Good Web development practice

2007-01-06 Thread paulh
The subject is a phrase cut from one of the Django tutorials. In this tutorial the authors say that after successfully processing POST data you should return an HttpResponseRedirect and that this will prevent the user using the back button and taking the action again. I have messed around with

GenericForeignKey

2006-12-06 Thread paulh
Using a GenericForeignKey everything seems to work until you try to use fields in an Admin class. The you get an error like this: FieldDoesNotExist at /modp/admin/tst2/comnam/add/ Comnam has no field named 'com_obj' and a python dump. Just updated by copy of django with the latest dev version and

Admin class cannot extend object

2006-11-07 Thread paulh
Running through the django tutorials I noticed that you cannot create the inner Admin class as a subclass of object. i.e. class Admin(object): -->pass does not work. Is this deliberate or an historical quirk? --~--~-~--~~~---~--~~ You received this message