Re: Documentation for begginers

2008-01-28 Thread Christoph Haas
Hi, Mike... On Sun, Jan 27, 2008 at 08:46:20PM -0800, Mikeroz wrote: > I've just started to have some fun with pylons and I've got a question > - what's wrong with the documentation? I mean - it's cool because it's > there but there's almost no tutorials and stuff... is someone working > on it? O

Re: [ANN] Pylons Cheatsheet

2008-01-28 Thread Marcin Kasperski
> http://wiki.pylonshq.com/display/pylonsmisc/Pylons+Cheatsheet Minor remark: in mako templates I prefer ${ next.body() } not ${ self.body() } If you use only one-level inheritance then there is no difference, but next is useful if you have sequence of templates (say main layout, th

Re: localization when part of the code is in different place than pylons project.

2008-01-28 Thread Mikael Lepistö
I tried this one already, it seemed to work only if the tookit dir is under the pylons project tree like this: myprojects/pylonsproject/ myprojects/pylonsproject/pylonsproject myprojects/pylonsproject/toolkit situation that I would like is: myprojects/pylonsproject/ myprojects/pylonsproject/pylo

simplejson and cjson

2008-01-28 Thread [EMAIL PROTECTED]
Hello all. Are there any plans of simplejson-to-cjson migration (I mean the @jsonify decorator). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-disc

Re: SQLAlchemy defining tables in conf, orm mappying?

2008-01-28 Thread Joe Riopel
On Jan 22, 2008 2:15 AM, Kevin Baker <[EMAIL PROTECTED]> wrote: > Is the table definition there to manually define data-types for SA, so > that it can generate valid SQL with the SQL abstraction syntax? or > does it do more. Here is a good explanation of what the Table and Column definitions are

Re: How to return some byte stream from a controller?

2008-01-28 Thread Dalius Dobravolskas
jerryji wrote: > Dear Pyloners, > > Greatly appreciated if someone can shed some light on how to return a > byte stream from my controller. > > For example, I want /image/123 to return an image so that it could be > referenced in another page as > > (similar discussion did appear before -- > http

How to return some byte stream from a controller?

2008-01-28 Thread jerryji
Dear Pyloners, Greatly appreciated if someone can shed some light on how to return a byte stream from my controller. For example, I want /image/123 to return an image so that it could be referenced in another page as (similar discussion did appear before -- http://groups.google.com/group/pylon

Publishing application with avahi

2008-01-28 Thread Chris AtLee
Hello Pyloneers, For one of the applications I'm writing, it would be really handy to have the app advertise itself with avahi so that clients on the network could automatically find it. What I've got so far is the following, which has been added to Globals.__init__: publishInfo = confi

Re: Documentation for begginers

2008-01-28 Thread Mike Orr
On Jan 28, 2008 12:53 AM, Christoph Haas <[EMAIL PROTECTED]> wrote: > > Hi, Mike... > > On Sun, Jan 27, 2008 at 08:46:20PM -0800, Mikeroz wrote: > > I've just started to have some fun with pylons and I've got a question > > - what's wrong with the documentation? I mean - it's cool because it's > >

Re: Having some trouble getting started with Pylons

2008-01-28 Thread walterbyrd
Now I'm having new troubles. I keep getting this error: ValueError: bad marshal data I have no idea what this means. I am trying to follow the tutorial. As I understand it, I am supposed to add this line to routing.py. map.connect('', controller='hello', action='index') I am not sure exactly

Re: Having some trouble getting started with Pylons

2008-01-28 Thread Cliff Wells
On Mon, 2008-01-28 at 06:38 -0800, walterbyrd wrote: > Now I'm having new troubles. I keep getting this error: > > ValueError: bad marshal data > > I have no idea what this means. It means you have corrupt .pyc files. If you're on *nix you can just execute: find myPylonsApp -name "*.pyc" -e

Re: Having some trouble getting started with Pylons

2008-01-28 Thread walterbyrd
On Jan 28, 8:00 am, Cliff Wells <[EMAIL PROTECTED]> wrote: > On Mon, 2008-01-28 at 06:38 -0800, walterbyrd wrote: > > Now I'm having new troubles. I keep getting this error: > > > ValueError: bad marshal data > > > I have no idea what this means. > > It means you have corrupt .pyc files. If you

Re: How to return some byte stream from a controller?

2008-01-28 Thread jerryji
It's been very enlightening! Thank you very much. Cheers, Jerry On Jan 28, 1:13 pm, Dalius Dobravolskas <[EMAIL PROTECTED]> wrote: > jerryji wrote: > > Dear Pyloners, > > > Greatly appreciated if someone can shed some light on how to return a > > byte stream from my controller. > > > For example

Re: Publishing application with avahi

2008-01-28 Thread Cliff Wells
On Mon, 2008-01-28 at 16:23 -0500, Chris AtLee wrote: > Hello Pyloneers, > > For one of the applications I'm writing, it would be really handy to > have the app advertise itself with avahi so that clients on the > network could automatically find it. > > What I've got so far is the following, w

An idea for improving @validate

2008-01-28 Thread Steven Holmes
Hi, @validate supports separating form rendering and form post processing into distinct methods. This is convenient, but has a nasty flaw: It requires two separate URLs, a form display URL and a URL to handle the post. When a form post fails to validate, the form is re-displayed, but at t

Re: Documentation for begginers

2008-01-28 Thread Mikeroz
About QuickWiki tutorial: in models, _init_.py file i've got: class Page(object): content = None def __str__(self): return self.title def get_wiki_content(self): content = publish_parts(self.content, writer_name="html") ["html_body"] titles = sets.Set(wikiwo

Re: An idea for improving @validate

2008-01-28 Thread Mike Orr
On Jan 28, 2008 5:33 PM, Steven Holmes <[EMAIL PROTECTED]> wrote: > @validate supports separating form rendering and form post processing > into distinct methods. This is convenient, but has a nasty flaw: It > requires two separate URLs, a form display URL and a URL to handle the > post. When a fo

where is pylons's svn gone?

2008-01-28 Thread bearsprite
Recently I couln't svn co form [http://pylonshq.com/svn/Pylons/trunk], where is it gone? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@goog

Re: Publishing application with avahi

2008-01-28 Thread Philip Jenvey
> > On Mon, 2008-01-28 at 16:23 -0500, Chris AtLee wrote: >> >> This kind of works...The problem so far is that when the application >> is run under paste with the --reload option, the child >> avahi-publish-service processes don't get killed off when the >> application is shutdown. When paster

Re: Documentation for begginers

2008-01-28 Thread Philip Jenvey
On Jan 28, 2008, at 4:46 PM, Mikeroz wrote: > > About QuickWiki tutorial: > > in models, _init_.py file i've got: > > class Page(object): > content = None > > def __str__(self): > return self.title > > def get_wiki_content(self): > content = publish_parts(self.content

Re: simplejson and cjson

2008-01-28 Thread Philip Jenvey
On Jan 28, 2008, at 8:00 AM, [EMAIL PROTECTED] wrote: > > Hello all. > Are there any plans of simplejson-to-cjson migration (I mean the > @jsonify decorator). Nope, w hat's the advantage of using cjson? simplejson has had a C speed module for a while now, so the original point of cjson being

Re: globals <-> thread mapping

2008-01-28 Thread Philip Jenvey
On Jan 23, 2008, at 11:26 AM, ram wrote: > > I'm running into a strange issue where occasionally references to > global objects (i.e. items stored in the Pylons 'g' variable) > mysteriously vanish after some time. This seems to happen > sporadically, but especially after Paste has made a "hung t

Re: localization when part of the code is in different place than pylons project.

2008-01-28 Thread Philip Jenvey
On Jan 28, 2008, at 4:07 AM, Mikael Lepistö wrote: > I tried this one already, it seemed to work only if the tookit dir is > under the pylons project tree like this: > > myprojects/pylonsproject/ > myprojects/pylonsproject/pylonsproject > myprojects/pylonsproject/toolkit > > situation that I wou