Structured search pages?

2010-11-08 Thread James Smagala
Hey All, I'm looking to improve the search functionality for my site. It is currently based on a highly customized django-seeker, but I'm hitting a wall trying to move forward with that package. (Not maintained, and doesn't work at all out of the box on my site). Can anyone offer suggestions?

Re: xlrd and UploadedFile error

2009-05-05 Thread James Smagala
I'm sure any longtime users of xlrd already know this, but I figured I'd put it out there, since I had trouble tracking it down. xlrd's open_workbook function takes a file_contents argument. If you set that to file_contents=uploaded_file.read(), you can pass .xls sheets directly to it from a Dja

xlrd and UploadedFile error

2009-05-04 Thread James Smagala
Hey All, Can anyone tell me how to read a Djano UploadedFile .xls file with xlrd without resorting to explicitly saving the file to the hard drive? If I attempt to pass my_file.read() directly to xlrd, the error I get is: file() argument 1 must be (encoded string without NULL bytes), not str B

Re: formtools and formsets

2009-03-30 Thread James Smagala
hashing, and stage tracking are all handled inside the class for any number of forms and formsets that you need to include in one html form. Hope someone out there finds this useful. James Smagala --~--~-~--~~~---~--~~ You received this message because you are subscribed

formtools and formsets

2009-03-12 Thread James Smagala
Hey All, I'm working on a complex form, related to this snippet by me and the ensuing post by Malcolm: http://www.djangosnippets.org/snippets/1290/ http://www.pointy-stick.com/blog/2009/01/23/advanced-formset-usage-django/ I have now been asked to add a confirmation page for my html form. contri

Re: Problems with (Model)ChoiceField and the like

2009-01-19 Thread James Smagala
at my attempts to turn his solution into a formset: http://www.djangosnippets.org/snippets/1290/ Hope that is helpful to someone out there. J On Jan 14, 7:03 pm, James Smagala wrote: > Hey All, > > There is a discussion here about building dynamic form select fields > using __i

Problems with (Model)ChoiceField and the like

2009-01-14 Thread James Smagala
Hey All, There is a discussion here about building dynamic form select fields using __init__ on the form. This, by itself, is not hard. http://groups.google.com/group/django-users/browse_thread/thread/98bde0a6d818e627 Problem: I have a formset that needs each form in it to be created in this