New tutorials

2006-12-11 Thread Mike Orr
in the User Contributions - Development Tutorials section. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: New tutorials

2006-12-12 Thread Mike Orr
On 12/12/06, James Gardner [EMAIL PROTECTED] wrote: Hi Mike, These look really good! I'm sure people will find them useful. Thanks for your support. Your messages helped point the way for me a couple times. -- Mike Orr [EMAIL PROTECTED

Re: comments on Unicode document

2006-12-12 Thread Mike Orr
spell them as I naturally would, and send complainers a link like this: http://www.phrases.org.uk/bulletin_board/13/messages/785.html -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: pylons and Apache's DocumentRoot

2006-12-12 Thread Mike Orr
to modify httpd.conf yourself. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe

Re: pylons and Apache's DocumentRoot

2006-12-12 Thread Mike Orr
On 12/12/06, Shannon -jj Behrens [EMAIL PROTECTED] wrote: On 12/12/06, Mike Orr [EMAIL PROTECTED] wrote: On 12/12/06, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: I see that DocumentRoot is a directory where, I think, the pylons egg cannot have been installed; the eggs will install

Re: pylons and Apache's DocumentRoot

2006-12-13 Thread Mike Orr
On 12/12/06, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: On 12/12/06, Mike Orr [EMAIL PROTECTED] wrote: On 12/12/06, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote: I see that DocumentRoot is a directory where, I think, the pylons egg cannot have been installed; the eggs will install

Re: New tutorials

2006-12-13 Thread Mike Orr
does have access to those. The other ones I encountered (session management, URL resolver) are outside Cheetah's scope. Is there anything else that might be worth adding to Cheetah? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: New tutorials

2006-12-13 Thread Mike Orr
On 12/12/06, Mike Orr [EMAIL PROTECTED] wrote: Cheetah does not have an equivalent of Myghty's 'fragment' argument so I patched TurboCheetah.cheetahsupport to add a variable '_buffet_fragment' alongside the Pylons globals. site.tmpl uses #if not $_buffet_fragment to decide whether to output

Re: Using Durus with Pylons

2006-12-18 Thread Mike Orr
(the_controller), which would change every request. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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

Re: new project and so many files

2006-12-19 Thread Mike Orr
later. PS. The Durus article is done too, and a bit more sophistocated than what I posted yesterday. (same URL) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: new project and so many files

2006-12-19 Thread Mike Orr
On 12/19/06, Mike Orr [EMAIL PROTECTED] wrote: 3) User-defined middleware. This is what make_app() is for. We can prepopulate it with suggested middleware in comments. The transaction logger comes to mind. I would even list popular third-party components like AuthKit; that would give

Re: new project and so many files

2006-12-19 Thread Mike Orr
On 12/19/06, Max Ischenko [EMAIL PROTECTED] wrote: I read it yesterday. Took an hour and a few cups of tea but it was worth it. ;) You did a great work researching and explaining python stack of modern web apps! Thanks. :) -- Mike Orr [EMAIL PROTECTED

Getting config values

2006-12-20 Thread Mike Orr
I made a wiki page under CodeRecipes describing the various ways to access data from the config file. Are there any better ways not listed? http://pylonshq.com/project/pylonshq/wiki/CodeRecipes/ExtractingConfigurationData -- Mike Orr [EMAIL PROTECTED

Re: The Myghty Philosophy

2006-12-22 Thread Mike Orr
, #break, and #continue. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from

Re: Can Pylons be more aggressive ?

2007-01-04 Thread Mike Orr
this. http://pylonshq.com/project/pylonshq/wiki/DocumentationWishList -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons

Re: Can Pylons be more aggressive ?

2007-01-07 Thread Mike Orr
On 1/7/07, Stephen F. Steiner [EMAIL PROTECTED] wrote: Mike Orr wrote: Webware knocked Zope off the throne, CherryPy knocked Webware (with help from Quixote), TG knocked CherryPy, Django and TG are neck-in-neck now, who knows who will be top dog next year? I'm not sure I'd agree about TG

Re: Can Pylons be more aggressive ?

2007-01-07 Thread Mike Orr
On 1/7/07, Stephen F. Steiner [EMAIL PROTECTED] wrote: On Jan 7, 2007, at 7:10 PM, Mike Orr wrote: On 1/7/07, Stephen F. Steiner [EMAIL PROTECTED] wrote: Mike Orr wrote: Webware knocked Zope off the throne, CherryPy knocked Webware (with help from Quixote), TG knocked CherryPy, Django

Re: Improved docs are desperately needed.

2007-01-20 Thread Mike Orr
choice. Watch out for high memory usage in SQLite with large or search-intensive databases. MySQL is optimized for read speed, but you have to use the non-default InnoDB type if you want transactions. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You

Re: how (Tosca)Widgets fits into MVC concept

2007-01-21 Thread Mike Orr
} -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: Concepts of Pylons (proposal for an introductory article to web frameworks)

2007-01-29 Thread Mike Orr
Forwarded at Christoph Haas's suggestion, to discuss what we want in this tutorial and in Pylons tutorials generally. Some of the points I raise below have already been corrected by Christoph. --Mike -- Forwarded message -- From: Mike Orr [EMAIL PROTECTED] Date: Jan 29, 2007 12

Re: Concepts of Pylons (proposal for an introductory article to web frameworks)

2007-01-29 Thread Mike Orr
On 1/29/07, Christoph Haas [EMAIL PROTECTED] wrote: On Monday 29 January 2007 21:07, you (Mike Orr) wrote: - Models do not contain any information about the meaning of this data. What do you mean by 'meaning'? The model *does* know the meaning of the data, that's its purpose. If you have

Paste deprecation

2007-02-05 Thread Mike Orr
) It looks like Pylons is out of sync with Paste. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com

Re: How to build/use an egg with lots of lib/* command utils?

2007-02-06 Thread Mike Orr
install the egg properly (which I'm only half convinced is worthwhile), there will be no setup.py on the server. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: HelloDatabase example?

2007-02-06 Thread Mike Orr
do you mean about putting the database URI in two separate places?Where's the other place? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group

Re: HelloDatabase example?

2007-02-06 Thread Mike Orr
and just use utf-8 everywhere, both for the database and for HTML output. The only time I use a different encoding is when parsing an external file, which may come in macroman or windows-1252. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Customizing SQLAlchemy connections

2007-02-08 Thread Mike Orr
have a module-level connection so I restart them every 12 hours. Having connections that automatically get recreated after a few hours is my main motivation for moving to SQLAlchemy. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

So may ways to get config values

2007-02-13 Thread Mike Orr
the functions to be usable from paster shell for testing, as well as during a web request. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group

Re: So may ways to get config values

2007-02-14 Thread Mike Orr
to do that, perhaps % import ... %. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe

Mako variables move in parent template

2007-02-15 Thread Mike Orr
Name' page_title='My Page Title' But again, my main problem is the variables being undefined in the site template. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: Mako variables move in parent template

2007-02-15 Thread Mike Orr
On 2/15/07, Ben Bangert [EMAIL PROTECTED] wrote: On Feb 15, 2007, at 8:06 AM, Mike Orr wrote: I have a page template that inherits a site template. I've set several 'c' attributes in Pylons, and ${var} in the page template renders them fine, but they're undefined in the site template

Re: TransLogger not helpful with errors

2007-02-15 Thread Mike Orr
and /MISSING.jpg (which both don't exist), and the second iteration reaches logging stage but the first doesn't. Is there a config var to limit the httpserver to one thread? Attached are my changes to translogger.py r6236 . -- Mike Orr [EMAIL PROTECTED

Re: [Paste] problems with paster serve reload

2007-02-18 Thread Mike Orr
in that. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: zc.buildout for pylons?

2007-02-20 Thread Mike Orr
-- or their successors -- need to be integrated into Python. As to whether Python is delving into areas belonging to package managers, Perl has had CPAN for over a decade and it's widely acclaimed, and people chided Python for years for not having something equivalent. -- Mike Orr [EMAIL PROTECTED

Re: setting a cookie whether a redirect happens or not - part 2

2007-02-20 Thread Mike Orr
the message in a cookie. It also deletes the previuos cookie. Heh, you and I have exactly the same use case, and I'm the one that brought this problem up. I'm happy to see that this is going to get easier :) I just put a message in the session for the next request to pick up. -- Mike Orr

Re: TG Pylons Merger?

2007-02-27 Thread Mike Orr
in the Python core via a list-interpolation syntax. I haven't heard this, but considering how hard it's been to get the much more urgent NumPy Array into the core, it sounds unlikely. What's this groovy XML library Eckel is so excited about? -- Mike Orr [EMAIL PROTECTED

Re: ConceptsOfPylons and Pylons Documentation

2007-02-27 Thread Mike Orr
be a lot more shifting realities to document, which may make it difficult to figure out what applies to your version. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: ConceptsOfPylons and Pylons Documentation

2007-03-01 Thread Mike Orr
On 2/28/07, Graham Higgins [EMAIL PROTECTED] wrote: On 28 Feb 2007, at 07:01, Mike Orr wrote: On Feb 27, 2007, at 12:58 PM, Christoph Haas wrote: AFAIK there is a plan to write a more complete handbook for Pylons at http://pylonshq.com/project/pylonshq/wiki/DocLayoutProposals I added

Config initialization order strikes again

2007-03-01 Thread Mike Orr
the application modules. This may also affect the suggestion by somebody to move non-middleware from middleware.py to environment.py. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Deplyoing Pylons applications as Debian packages?

2007-03-05 Thread Mike Orr
there's the hassle of reinstalling it in case its dependencies have changed. So there's not really one way to do it. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: Deplyoing Pylons applications as Debian packages?

2007-03-05 Thread Mike Orr
a firewall. :) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group

Re: Deplyoing Pylons applications as Debian packages?

2007-03-06 Thread Mike Orr
option, upgrade-dependencies, etc. Then it will be easier to upgrade a site with one command. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Deploying a Pylons project (Debian et al)

2007-03-07 Thread Mike Orr
${project} and ${package} with the package name. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com

Re: Deploying a Pylons project (Debian et al)

2007-03-07 Thread Mike Orr
). But there are other things they seem to handle in an ad-hoc manner that paster provides for us, like the application startup file. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: using render_response from __before__ in controller

2007-03-08 Thread Mike Orr
are handled). Is there a way to do this?? You can put it in the base template .__call__ method: if not_logged_in: redirect_to_login() if insufficient privilege: abort(401, You're outta here, bozo.) # In pylons.helpers return WSGIController.__call__(self, environ, start_response) -- Mike

Re: Pylons integrated desktop apps?

2007-03-11 Thread Mike Orr
into the model is easier. Dabo uses its own db-unifying code according to my quick glance at the site. Of course you can just use Dabo's UI portion with SQLAlchemy. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Pylons integrated desktop apps?

2007-03-12 Thread Mike Orr
service, but rejected those as too complicated and error-prone, especially since the laptops are in the hands of naive users we can't support long-distance. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Routes generates bad URLs with args containing spaces

2007-03-16 Thread Mike Orr
' -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: Bourbon - Windows service to make installing and using pylons easier

2007-03-27 Thread Mike Orr
On 3/22/07, Jose Galvez [EMAIL PROTECTED] wrote: For the HTTP server I've set it to use Cherrypy which seems to work really well, Does it have any particular advantages over Paste's HTTP server? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: Stuck with Pylons+Genshi

2007-04-02 Thread Mike Orr
(new_page) abort(404) By the way, I prefer to explicitly mention the template engine so there's no confusion on the part of either Pylons or the programmer: render_response(genshi, mydir.mytemplate) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You

Routes generates bad directory URLs

2007-04-02 Thread Mike Orr
://127.0.0.1:5000;. This is an invalid URL even though Pylons accept it. It should be http://127.0.0.1:5000/;. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: model testing, g, running in a script

2007-04-02 Thread Mike Orr
be. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: Routes generates bad directory URLs

2007-04-02 Thread Mike Orr
On 4/2/07, Ben Bangert [EMAIL PROTECTED] wrote: On Apr 2, 2007, at 5:20 PM, Mike Orr wrote: This is probably a Pylons problem rather than Routes. I have a routing rule like this: map.connect(glossary, /glossary/:page, controller=main, action=glossary, page=index

Re: Routes with #fragments

2007-04-03 Thread Mike Orr
On 4/2/07, Ron Bickers [EMAIL PROTECTED] wrote: On Apr 2, 8:10 pm, Mike Orr [EMAIL PROTECTED] wrote: This rule doesn't work: map.connect(glossary_term, /glossary/:page#:term, controller=main, action=glossary, page=index) sre_constants.error: bad character in group name

Pylons admin commands

2007-04-03 Thread Mike Orr
to parse the config and set up the environment manually? I don't want the scripts all mixed in a global bin directory where I can't tell which one goes with which application. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: Routes with #fragments

2007-04-03 Thread Mike Orr
On 4/3/07, Ben Bangert [EMAIL PROTECTED] wrote: url_for can add in a URL anchor when one is provided as the anchor keyword. This works great, thanks. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed

Static routes

2007-04-03 Thread Mike Orr
/inews.jpg) map.connect(missing_incident_image, /images/no_incident_image.jpg) map.connect(meatball, /images/meatball.png) Should these have the _static argument? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

TurboCheetah

2007-04-03 Thread Mike Orr
the flag. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send

Response postprocessing

2007-04-12 Thread Mike Orr
exists in all cases, and then calling: self.__postprocess_response(self, resp) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send

Re: Automatic database administration tool

2007-04-18 Thread Mike Orr
for the developers sharing source code or the users who need to use their model and configuration in the other system. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Automatic database administration tool

2007-04-18 Thread Mike Orr
On 4/18/07, Dan Korostelev [EMAIL PROTECTED] wrote: On 4/19/07, Ben Bangert [EMAIL PROTECTED] wrote: On Apr 18, 2007, at 12:03 PM, Mike Orr wrote: Great idea. Pylons definitely needs a database administration tool. My main concern is about basing it on the ORM layer rather than

Re: webhelpers

2007-04-25 Thread Mike Orr
;-). -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: Installing pylons on Debian Sarge

2007-05-15 Thread Mike Orr
into it. [1] http://cheeseshop.python.org/pypi/workingenv.py/ Installing the same package at the OS level and easy_install'ing it could lead to version skew, since Python sometimes adds eggs to sys.path in a different order than you'd like. -- Mike Orr [EMAIL PROTECTED

Re: Suggested standard way to import modules

2007-05-15 Thread Mike Orr
it. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: where to put application init code?

2007-05-17 Thread Mike Orr
some globals. middleware.py and environment.py are good places. If you need a config value, access it directly rather than going through the globals. At the beginning of middleware.make_app() I have a function call fix_app_conf(app_conf) that validates the options and converts their types. -- Mike

Re: where to put application init code?

2007-05-17 Thread Mike Orr
setup.py should be fine (though you may want to fill in the text fields). -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons

Re: initial install problems

2007-05-18 Thread Mike Orr
'pkg_resources.require(PasteScript==1.1)', but I guess the dependency was specified in the egg somehow. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Routing question

2007-05-21 Thread Mike Orr
, and this ends up in a 404. Instead of calling up the same link it calls: http://localhost:5000/home/home/home/ adding a home for every time I click on the link. Could you tell me what I´m doing wrong Ben? Could it be because you have Home/:action instead of /Home/:action? -- Mike Orr [EMAIL

Daemonizing and auto-restart

2007-05-22 Thread Mike Orr
. Are these better than paster's monitor for some reason, or are they all interchangeable? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group

Re: Common files for a multi-app

2007-05-22 Thread Mike Orr
path in the second app's config file, which I share between different computers. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

Redirecting old URLs

2007-05-22 Thread Mike Orr
): redirect_to(entry, entry_id=entry_id) -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe

Re: Daemonizing and auto-restart

2007-05-22 Thread Mike Orr
overhead than daemontools, though I don't know if it really is significant. I have a few weeks to beta test the application, so I can try it out. I'd also rather use something built into Paste than installing another third-party application that overlaps with it. -- Mike Orr [EMAIL PROTECTED

SQLAlchemy model

2007-05-22 Thread Mike Orr
because the engine checks out connections from a pool, and even though the session context ostensibly creates a new engine with each session, it's still really the same engine anyway, even if I use t1c or Class1.c in a function that has a different current session. -- Mike Orr [EMAIL PROTECTED

Re: SQLAlchemy and Pylons

2007-05-23 Thread Mike Orr
cumbersome, and it's certainly strange to have an externally-called init function that initializes module globals. http://www.sqlalchemy.org/docs/tutorial.html#tutorial_orm It's still the same steps, it's that pylons.database does some of it for you. -- Mike Orr [EMAIL PROTECTED

Re: SQLAlchemy and Pylons

2007-05-24 Thread Mike Orr
On 5/23/07, Qiangning Hong [EMAIL PROTECTED] wrote: On May 23, 9:58 pm, Mike Orr [EMAIL PROTECTED] wrote: http://docs.pythonweb.org/display/pylonscookbook/SQLAlchemy+for+peopl... Use this one. The way to set up the model is still evolving, but this is the closest to the emerging standard

Re: SQLAlchemy + MySQL + UTF-8 support - how?

2007-05-29 Thread Mike Orr
of MySQL. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send

CONFIG and logging problems

2007-05-30 Thread Mike Orr
is being deleted and overwritten every time the server starts. How can I fix these? I'm running with the Paster daemonizer and logfile setting, via an executable production.ini. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster shell', but it moves to CONFIG['app_conf']['sqlalchemy.echo_pool'] under 'paster serve'. Yet myapp

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster shell', but it moves to CONFIG['app_conf

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr wrote: My app can find paste.deploy.CONFIG['sqlalchemy.echo_pool'] when run under 'paster

Re: CONFIG and logging problems

2007-05-30 Thread Mike Orr
On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 4:43 PM, Mike Orr wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Mike Orr [EMAIL PROTECTED] wrote: On 5/30/07, Philip Jenvey [EMAIL PROTECTED] wrote: On May 30, 2007, at 3:27 PM, Mike Orr

Re: CONFIG and logging problems

2007-05-31 Thread Mike Orr
version. We should probably do the same. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com

Re: Apache mod_proxy + Pylons

2007-05-31 Thread Mike Orr
already in use error when you start the program again, so you have to hunt down the threads and kill them. Often they refuse to die and you have to kill -9 them. It happens in some Linux distributions and not others, so it's something about the kernel or OS configuration. -- Mike Orr [EMAIL PROTECTED

Re: SQLAlchemy + MySQL + UTF-8 support - how?

2007-05-31 Thread Mike Orr
. The MySQL specific charset option also is deprecated. I suppose. I'm still holding on to use_unicode for now though. The important thing is to use either convert_unicode or use_unicode. The MySQL charset option wouldn't work for me at all; it didn't recognize utf8 as a valid choice. -- Mike

Re: Pylons Logo Design

2007-06-01 Thread Mike Orr
in the Python logo but I didn't like some of the previous logos and refused to wear T-shirts that had them. Quixote has some windmill logos but what's so Quixote about them? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: Pylons Logo Design

2007-06-02 Thread Mike Orr
to attach engines, auxiliary fuel tanks, bombs, etc., to an aircraft wing or fuselage. [Origin: 1840-50; Gk pyln gateway, gate tower] -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Fwd: ANN: Smorgasbord 0.1.0 is released

2007-06-03 Thread Mike Orr
message -- From: Mike Orr [EMAIL PROTECTED] Date: Jun 3, 2007 6:38 AM Subject: ANN: Smorgasbord 0.1.0 is released To: [EMAIL PROTECTED] There's an initial implementation of Smorgasbord, my rewrite of the Buffet universal templating front end, at the Python Cheeseshop or http

Re: SQLAlchemy object

2007-06-03 Thread Mike Orr
ones). It will also scale to multiple engines along the lines of sqlalchemy.engine_key.dburi. This code is very Pylons specific, or at least it is until other frameworks/applications start using the same config file format. -- Mike Orr [EMAIL PROTECTED

Re: Pylons Security

2007-06-03 Thread Mike Orr
probably does a reasonably good job, but the factors outside its control are the ones most likely to bite you, and these should be looked at no matter whether you use AuthKit or some other library. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received

Re: SQLAlchemy object

2007-06-04 Thread Mike Orr
() apparently needed for session_context, so it's easier to modify a copy of pylons.database than to write everything from scratch. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: Pylons Logo Design

2007-06-04 Thread Mike Orr
I've added wiki pages to discuss the web site design, Pylons project name, and pylonshq.com domain name. http://docs.pythonweb.org/display/pylonscommunity/Home -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

Re: SQLAlchemy object

2007-06-04 Thread Mike Orr
On 6/4/07, Mike Orr [EMAIL PROTECTED] wrote: engine = ctx.current.bind_to meta = BoundMetaData(engine) table1 = Table(Table1, meta, ...) class Class1(object): pass mapper = Class1, table1) Sorry, that should be: mapper(Class1, table1) -- Mike Orr [EMAIL PROTECTED

Re: Revisiting Pylons Branding

2007-06-05 Thread Mike Orr
remember that CherryPy 3 has Routes dispatcing as an option, and sooner or later that will appear in TurboGears. So saying Pylons is more advanced because it has Routes will probably sound lame by the time Pylons 1.0 comes out. -- Mike Orr [EMAIL PROTECTED

Re: Revisiting Pylons Branding

2007-06-05 Thread Mike Orr
tired of reinventing the wheel, and not as well as a team of experts in their specific field would. To me the word toolkit, at least as it has been used, has this sense of incompleteness. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message

Re: 'Pylons - carries the load'

2007-06-06 Thread Mike Orr
. -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email

Re: Routes ignores mandatory argument

2007-06-07 Thread Mike Orr
On 6/7/07, David Niergarth [EMAIL PROTECTED] wrote: On Jun 6, 3:34 pm, Mike Orr [EMAIL PROTECTED] wrote: I have a URL with a mandatory ID: /incident/123 map.connect(incident, /incident/:orr_id, controller=incident, action=index, requirements={orr_id: NUMERIC

Re: Pylons deployment methods

2007-06-08 Thread Mike Orr
at the QuickWiki tutorial. It does its own database setup using paster setup-app my.ini. To answer your more high level question, yes, setup-app is good to use :) Happy Hacking! -jj --http://jjinux.blogspot.com/ --http://jjinux.blogspot.com/ -- Mike Orr [EMAIL PROTECTED

Re: Returning a value in a MAKO def

2007-06-11 Thread Mike Orr
, voltron [EMAIL PROTECTED] wrote: Thats a nice idea Mike, I would have to mange more content in the lists but its a compromise. I intend ultimately to retrieve these lists from a database as pickeld data, do you have any experience in this nature? Thanks On Jun 12, 1:13 am, Mike Orr [EMAIL

Caching problems

2007-06-12 Thread Mike Orr
I'd like the browser to cache this page and not bother the server again for an hour or a day. Is etag_cache supposed to do this or do I have to set the HTTP headers manually? -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because

Re: Caching problems

2007-06-12 Thread Mike Orr
Date: Tue, 12 Jun 2007 21:56:37 GMT Accept-Ranges: bytes Etag: 1181612562.0-55416 Connection: close -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Caching problems

2007-06-12 Thread Mike Orr
says the former, so watch out for that. With this I'm getting correct 304's, Etags, and Cache-control on my static files, but it's still checking the server each time. So the caching isn't perfect but it's better than nothing, at least part of the time. -- Mike Orr [EMAIL PROTECTED

  1   2   3   4   5   6   7   8   9   10   >