StackedObjectProxy (again)

2007-10-19 Thread Matt Feifarek
Some time ago, I wrote to the list to ask for help with StackedObjectProxy: [ Groups doesn't seem to have it in search results, but my message was on Sept. 14 ] I was never able to grok the instructions in the context of my app, so I started with a naked pylons app and tried to figure it out.

Re: Sessions - database or filesystem

2007-10-19 Thread Damjan
If you're not clustered, I see no reason to use the filesystem session as it'll be faster. no reason to use or not to use?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this

Object is not callable thrown when accessing easyBay object

2007-10-19 Thread Jeff
Hi, When trying to use easyBay, attempting to access the object returned by the API causes the error below. Code: api = eBay(config=ebay.ini) r = api.GetItem(ItemID=230180298347) return r.Item.Title I tested the above code standalone outside of Pylons and it returned the result fine. Any idea

ToscaWidgets Tabber

2007-10-19 Thread Philip Cooper
I've started using some Toscawidgets and everything looks fine so far. OT: I've used them in TG and think that pylons should have some form of the widgetbroser. I even easy_installed twTinyMCE and it ran fine (haven't found docs or examples on attributes or options thought). Has anyone

Re: Paster web server crashing on image response

2007-10-19 Thread Razor19110
Doesn't fix it. I changed the function to be this instead: def Photo_Test(self): from PIL import Image from StringIO import StringIO lock.acquire() f=open(test.jpg,rb) data=f.read(100) response.headers[content-type]=image/jpeg

Re: FormEncode form validators

2007-10-19 Thread Christoph Haas
On Thu, Oct 18, 2007 at 10:28:52PM -0400, Yannick Gingras wrote: Christoph Haas [EMAIL PROTECTED] writes: I could contribute validators for: - valid IPv4 network/address specifications (e.g. 10.0.0.0/8 or 192.168.25.1 but not 1.2.3.4/123) Here is what I use for IPv4 addr ranges:

Re: Messages in error documents

2007-10-19 Thread Yannick Gingras
Philip Jenvey [EMAIL PROTECTED] writes: You don't, at least not currently. Well, you could probably hack something to do it like this (I think): def abort(code, detail, etc): request.environ['pylons.error.message'] = detail abort(code, detail, etc) Then grab

Re: Paster web server crashing on image response

2007-10-19 Thread zunzun
Try threadlocking PIL as I do here; http://wiki.pylonshq.com/display/pylonscommunity/Adding+graphical+output James On Oct 18, 2:26 am, Razor19110 [EMAIL PROTECTED] wrote: The test.jpg file is just a tiny test jpeg. When I run paster serve -- reload development.ini and go to the page

Re: Reducing pylons app memory usage?

2007-10-19 Thread Marcin Kasperski
I've run a few tests on my OSX machine, can you run them on your box? Could you share the [EMAIL PROTECTED] of test apps? I wouldn't like to experiment too much with creating them Cheap VPS's (like serveraxis.com) start around $30/mth with half a gig of ram, and a gig of swap... Well, I

Re: FormEncode form validators

2007-10-19 Thread iain duncan
On Wed, 2007-17-10 at 13:20 -0500, Ian Bicking wrote: FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but about the

Re: Reducing pylons app memory usage?

2007-10-19 Thread Marcin Kasperski
Are the Zope and Moin numbers from the same environment your Pylons is running on? Yes. [EMAIL PROTECTED] in both cases. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this

Clearing sessions when paster is down

2007-10-19 Thread voltron
For one reason or the other, the paster serve might be down, maintenance, errors e.t.c. This would cause errors on the client if certain pages depend on various session variables.Is there a hook, callback that one can use to trigger an action when the server is going down to clear out all the