Re: the equivalent of RoR's :scaffold

2006-04-12 Thread Ian Bicking
this in myghty? Can you just use a text field, a javascript date widget (e.g., Yahoo's), and dateutil.parser.parse (from python-dateutil) to parse the field (which is fairly permissive)? Drop-downs suck anyway. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: pylons and the wsgi stack

2006-05-24 Thread Ian Bicking
Ben Bangert wrote: I think having a clearer definition of when you'd want to configure WSGI middleware through the config file, vs the middleware.py file would help the most. Perhaps Ian can chime in, here's my recommendations: When to use middleware.py to configure your WSGI stack (all

Re: pylons and the wsgi stack

2006-05-25 Thread Ian Bicking
ToddG wrote: On a side note, are Paste dev lists where most WSGI discussion goes on? Or is it sort of a homeless thing, with it [WSGI] being a spec and not a specific implementation? Just curious how something like this gets discussed and moves ahead... I guess it depends on the impl one

[Fwd: wsgi.org domain]

2006-05-30 Thread Ian Bicking
Hi all. Stephan set up a wsgi.org site. It needs link adding. Please pile on any links you can think of -- applications, libraries, blog posts, testimonials, etc. Original Message Date: Mon, 29 May 2006 12:35:28 +0200 From: Stephan Diehl [EMAIL PROTECTED] Hi folks, I'm

Re: pylons apps?

2006-06-07 Thread Ian Bicking
, but makes it available to be loaded. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

Re: Use XSLT as template language

2006-06-12 Thread Ian Bicking
Jose Galvez wrote: I've generally used cheetah to generate xslt, and then transformed that using 4suite into html which ultimatly gets sent to the browser. Ideally the XSLT should be referenced by URI, and fetched via an internal request, so it could be static or generated in whatever form is

Re: Paste.fixture errors

2006-08-15 Thread Ian Bicking
(easy_install Paste==dev). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: Customizing --template=pylons

2006-08-15 Thread Ian Bicking
to a location where it can find the files you want to add. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send

Re: Formencode file upload validation

2006-08-15 Thread Ian Bicking
a complex form and an image upload in that form. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

Re: Sending intermediate content

2006-08-17 Thread Ian Bicking
to send it out and it might be buffered. I don't know if Pylons normally gives access to the writer start_response returns? -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Accessing controller name and action name from myghty

2006-08-25 Thread Ian Bicking
. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: Stuck: can't develop any pylons-based work because of missing easy_setup dependency

2006-08-29 Thread Ian Bicking
don't think the functionality disappeared -- Python 2.5 seems to actually produce a Python-2.5.egg-info directory, which is the metadata in question). So, I don't know the resolution, but this might help point you in the right direction. -- Ian Bicking | [EMAIL PROTECTED] | http

Re: mod_python

2006-08-29 Thread Ian Bicking
, I've heard of SCGI setups working quite well, and I believe Ian Bicking uses that setup. I'd be interested in seeing his setup and configuration. :) Note that I primarily use the cgi2scgi script included with SCGI. This way the server acts as a CGI script, but because cgi2scgi is a very small

Couple beginner issues

2006-09-19 Thread Ian Bicking
build a custom template off of that. Anyway, those are some of the thoughts so far. I think it's going well, we'll start doing some more serious things in the next couple days. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Couple beginner issues

2006-09-19 Thread Ian Bicking
Ben Bangert wrote: On Sep 19, 2006, at 12:39 PM, Ian Bicking wrote: One complication was that the default routes were rather sparse, just :controller/:action/:id. I didn't really want to work with Routes to begin with -- there's lots of other issues in the beginning, like form variables

Re: Config not available during make_app()

2006-09-20 Thread Ian Bicking
Ben Bangert wrote: On Sep 20, 2006, at 8:53 AM, Ian Bicking wrote: The registered threadlocal config, which is what PackageHub uses to create a connection. The PackageHub in Pylons has one addition so that it can be used without the threadlocal needing to be setup. You can directly

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Ian Bicking
Genshi know anything in particular about ElementTree instances? Especially since ET is in 2.5, I think it would be reasonable to those instances as a generic representation of markup. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Ian Bicking
. paste.debug.wdg_validate does validation. But it uses an old validator, that you have to have locally installed. Perhaps doing a remote call to the W3C validator would be better, though that might get annoyingly slow. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Using start_form/end_form with XML templating engines

2006-09-25 Thread Ian Bicking
Sergey Lipnevich wrote: On 9/25/06, Ian Bicking [EMAIL PROTECTED] wrote: Incidentally, the webhelpers could also probably be made to return Element instances with a custom __str__, and so they'd be Kid compatible as well. Does Genshi know anything in particular about ElementTree instances

Re: session_cookie_expires for Myghty session

2006-10-07 Thread Ian Bicking
, and the final ValueError should be caught with an error that explains what configuration value is wrong. But I don't really know where this should go in Pylons. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received

Re: session_cookie_expires for Myghty session

2006-10-07 Thread Ian Bicking
it be to convert this value, config parser, Pylons, or Myghty? Perhaps Myghty should do it because it's the only component in this chain that actually knows what type is required. I think pylons.config.Config.init_app could know about how to do this conversion, before it gets passed to Myghty. -- Ian

Re: Converting functional tests into load tests

2006-10-08 Thread Ian Bicking
you! It should be possible to use paste.proxy to turn a remote application into a WSGI server, which should do what you want. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: pylons change uid?

2006-10-09 Thread Ian Bicking
as root, and setuid early on in the process. I don't konw if flup reuses worker processes? Maybe that's what you are already planning to do. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because

Re: my complete current URL

2006-10-09 Thread Ian Bicking
in PrefixMiddleware, as another kind of fixup of an incoming proxied request. It's occurred to me that really proxies could (and should) just retain the original Host header. But the kind of proxying people do for web frameworks never does. Why is that? -- Ian Bicking | [EMAIL PROTECTED] | http

Re: my complete current URL

2006-10-10 Thread Ian Bicking
Shannon -jj Behrens wrote: On 10/9/06, Ben Bangert [EMAIL PROTECTED] wrote: On Oct 9, 2006, at 9:36 PM, Ian Bicking wrote: This has come up before. Should url_for have a fully_qualified keyword argument to do this? Yup, it should, its in the Routes trac as a ticket now. You might also

Re: [FE-discuss] [TurboGears] FormEncode i18n translation integration in TurboGears

2006-10-24 Thread Ian Bicking
to hear from some other users about it. Particular a non-TurboGears user (Pylons anyone?), because I want to make sure the gettext strategy isn't TG-specific. So if you've used this branch successfully (TG or not) please report back. -- Ian Bicking | [EMAIL PROTECTED] | http

Re: Upload Forget CMS

2006-10-31 Thread Ian Bicking
is also hard. Doing it as a younger programmer will help make you into an older programmer ;) -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: Genshi-specific validate decorator (was: Formencode - Form fields with multiple values)

2006-10-31 Thread Ian Bicking
to form:iferror?). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: Pylons performance

2006-11-06 Thread Ian Bicking
simple_data And configurable like this (assuming you put simple_data in a module called simpletest.py): [app:main] paste.app_factory = simpletest.make_app -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received

Re: directory structure

2006-12-06 Thread Ian Bicking
. I'd put them in a different location (outside of the application directory structure) and point to them in the configuration file. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you

Re: install location when lots of stuff is modified at run time

2006-12-06 Thread Ian Bicking
-python.py) serves much the same purpose, but with a slightly different technique. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss

Re: New tutorials

2006-12-13 Thread Ian Bicking
. 2) Modify Cheetah to recognize 'fragment'. TurboCheetah could use a maintainer. It was initially written as a proof of concept, I think. Ideally its code could go right in Cheetah, and it wouldn't have to be a separate package at all (it's not much code as I remember). -- Ian Bicking

Re: Help with creating controllers

2006-12-16 Thread Ian Bicking
. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: pase 1.1 troubles

2006-12-17 Thread Ian Bicking
fix without this change, you can use easy_install Paste==1.0.1. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Paste 1.1

2006-12-17 Thread Ian Bicking
* Really nothing interesting. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: pase 1.1 troubles

2006-12-18 Thread Ian Bicking
: I had the same problem as Jose. I'm using windows also. I downgraded to Paste 1.0.1 and it works. 1.0.1 has the security fix, but none of the other changes. It's safe to use until the Windows issues are fixed (which we'll probably figure out today anyway). -- Ian Bicking | [EMAIL

Re: pase 1.1 troubles (solution)

2006-12-18 Thread Ian Bicking
not found message (via the optional debug_message argument to not_found). Since you are on Windows, can you try these things out? -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you

Re: new project and so many files

2006-12-19 Thread Ian Bicking
require controllers to be much more independent of the environment they are running in. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss

Re: new project and so many files

2006-12-19 Thread Ian Bicking
detail). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: file mime-type question

2006-12-20 Thread Ian Bicking
still using the static file handler. It automatically sets the Content-Type based on the extension of the file (assuming you've kept the original extension on disk), or you can pass it a content_type argument. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Paste 1.1

2006-12-20 Thread Ian Bicking
://127.0.0.1 -- but that's probably confusing. I've made it clearer in the trunk. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: pase 1.1 troubles (solution)

2006-12-20 Thread Ian Bicking
-standing bug when you try to view a directory served by StaticURLParser; I don't think it's a regression. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: pase 1.1 troubles (solution)

2006-12-20 Thread Ian Bicking
, root_directory=child_root, cache_max_age=self.cache_max_age)(environ, start_response) Ian Bicking wrote: Huh... it's supposed to do the recursive traversal of directories. So it just creates another instance of StaticURLParser that points

Paste 1.1.1

2006-12-21 Thread Ian Bicking
Paste 1.1.1 is released. This is a bug fix release, primarily for Windows users. This fixes a bug in the static file serving that would cause all files to give 404 errors on Windows. For the full list see: http://pythonpaste.org/news.html -- Ian Bicking | [EMAIL PROTECTED] | http

Re: structuring pylons applications

2006-12-22 Thread Ian Bicking
. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: authkit / paste auth_tkt

2006-12-27 Thread Ian Bicking
, if you don't set both those cookies then one of the cookies might cover up the other. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: authkit / paste auth_tkt

2006-12-27 Thread Ian Bicking
Ian Bicking wrote: I'm having problems using authkit on web hosting company that uses Apache (I also mentioned this in a post not too long ago). Here's what's happening: when I run the app using paste http server by itself everything works fine (i.e. the auth_tkt cookie is set also

Re: ANN: Pylons 0.9.4 Released

2006-12-30 Thread Ian Bicking
. Is /philosophy/overview/ a directory served as static files? Of course, without any particular support for index.html there shouldn't be anything useful at that location...? Anyway, there was an infinite redirect problem that I thought James Gardner fixed for Paste 1.1.1. -- Ian Bicking

Re: ANN: Pylons 0.9.4 Released

2006-12-30 Thread Ian Bicking
automatically sends all requests that result in a 404 to the public/ directory. If there's a public/philosophy/overview/ directory, and no controller responding to public/philosophy, then it'll get passed to StaticURLParser. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: RESTful applications

2007-01-01 Thread Ian Bicking
, similar to PrefixMiddleware (or maybe expand that to a general FixupMiddleware -- I'd like to move that out of Paste Deploy and into Paste anyway). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because

Re: Frustrated with setup.py

2007-01-10 Thread Ian Bicking
at: http://cheeseshop.python.org/pypi/Pylons/0.9.3 Put find_links=['http://cheeseshop.python.org/pypi/Pylons/0.9.3'] in you setup.py, plus Pylons==0.9.3, and it should work. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: UTF-8 ... help

2007-01-11 Thread Ian Bicking
purepear wrote: Yes, i'm new to Pylons and Python, but i wanna learn.. My question is: How can i set c.value = something in UTF-8 in the controller and then print it in the template, cause i'm getting error messages. You probably want to do: c.value = usomething in UTF-8 -- Ian

Re: Getting app version from controllers

2007-01-11 Thread Ian Bicking
('MyPackageName') And it'll be in some attribute there, not sure what. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group

Re: how to build a portlet style site?

2007-01-17 Thread Ian Bicking
subrequests that you could pretty up on your own. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

ANN: Paste 1.2

2007-01-31 Thread Ian Bicking
and kill threads that are wedged. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: Error with pylons app on newest Paste

2007-02-01 Thread Ian Bicking
exactly 1 argument (2 given)* Dammit, I read the WSGI spec when changing paste.httpserver but forgot that there's an outstanding bug in it. Well, several bugs in it now. I'll make a 1.2.1 release shortly. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Error with pylons app on newest Paste

2007-02-01 Thread Ian Bicking
Ian Bicking wrote: *type 'exceptions.TypeError': readline() takes exactly 1 argument (2 given)* Dammit, I read the WSGI spec when changing paste.httpserver but forgot that there's an outstanding bug in it. Well, several bugs in it now. I'll make a 1.2.1 release shortly. I've put out

Re: [Paste] Paste's HTTP server thread pool (reliability)

2007-02-02 Thread Ian Bicking
Shannon -jj Behrens wrote: On 2/2/07, Ian Bicking [EMAIL PROTECTED] wrote: Shannon -jj Behrens wrote: All of this can get really sticky, and I fear there are no good, general answers. If you do decide to start killing long-running threads, I do like the idea of letting the programmer

Re: paste recursive

2007-02-05 Thread Ian Bicking
you want -- lately that's what I've been doing anyway to give myself more control, but just grabbing the application object out of what paste.recursive puts in the environment.) -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Routes doesn't protect '/' in generate() arguments, breaks matching later

2007-02-06 Thread Ian Bicking
-10/100 from FastEnet-10%2f100 -- WSGI/CGI dictates that the path is decoded before it is sent to Routes, so the two end up the same. Generally it seems like Routes should just reject such a substitution. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Routes doesn't protect '/' in generate() arguments, breaks matching later

2007-02-07 Thread Ian Bicking
, as those are URL escaped and peeled off before Routes does its match. The other alternative, of course, is to simply normalize these kinds of arguments, e.g., replace / with _. Or I suppose you could double-escape them (remembering of course to unescape them). -- Ian Bicking | [EMAIL PROTECTED

Re: TransLogger not helpful with errors

2007-02-14 Thread Ian Bicking
; en-US; rv:1.8.1.1) Gecko/20061208 Firefox/2.0.0.1 It was getting the path out of the environment after the request returns. I changed it in Paste trunk to figure out the path earlier, which should fix this. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: [Paste] paster --create : can I make a package that is not an egg?

2007-02-15 Thread Ian Bicking
. That's really a separate issue, but there's reasons for each one of them. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: [Paste] paster --create : can I make a package that is not an egg?

2007-02-15 Thread Ian Bicking
egg_info writes some (important) stuff to MyPackage.egg-info, and an egg itself generally puts the metadata in EGG-INFO instead of MyPackage.egg-info -- though when and why is a little unclear to me. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Fast Python webserver

2007-02-16 Thread Ian Bicking
Robert Leftwich wrote: Ian Bicking wrote: Cliff Wells wrote: I'll probably do some better tests later, but my initial suspicion is that the default paster serve isn't as fast as CherryPy (both are proxyied to via Nginx). In my simplistic tests CherryPy 3 is about 50% faster than

Re: Fast Python webserver

2007-02-18 Thread Ian Bicking
comparing like with like. It shouldn't dramatically improve performance to use multiple FastCGI backends. Unless you have a SMP machine or something, which could change performance in all kinds of ways. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org

Re: Nested resources with map.resources?

2007-02-19 Thread Ian Bicking
list of routes for the entire app). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ 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: Deplyoing Pylons applications as Debian packages?

2007-03-05 Thread Ian Bicking
easy_install should blindly be used on any system. If that's what you wanted to express. You shouldn't install into system areas with easy_install -- you should use some kind of isolated environment like workingenv, virtual-python, or zc.buildout. -- Ian Bicking | [EMAIL PROTECTED] | http

Re: Deplyoing Pylons applications as Debian packages?

2007-03-05 Thread Ian Bicking
it. Users who don't know Python or Pylons don't install Python or Pylons libraries, they install applications, and those applications can and should be largely self-contained when installed. Users who do know Python and Pylons and want to hack on software shouldn't use Debian packages. -- Ian

Thread pool and docs

2007-03-12 Thread Ian Bicking
, and the experience of more people using this in more situations will be very helpful. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: ANN: Documentation Wiki Launched

2007-03-19 Thread Ian Bicking
... there's no decent way to abbreviate pylons. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: ANN: Documentation Wiki Launched

2007-03-19 Thread Ian Bicking
you are trying to document something, especially if you don't love writing docs. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message

Re: url_for and ampersands encoding

2007-03-27 Thread Ian Bicking
shouldn't be encoded. Templating languages that auto-encode or know the structure of HTML will get this right (e.g., ZPT, Genshi, etc.). IMHO Mako should encode strings by default too. But either way, it's a template concern, not something url_for should handle. -- Ian Bicking | [EMAIL PROTECTED

Re: formencode.validators Set() doesn't allow empty (no) value

2007-03-29 Thread Ian Bicking
in the FormEncode trunk (but you'll probably just want to add it by hand in your code). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message

Re: A more pythonic way?

2007-04-07 Thread Ian Bicking
choose one way. This is not a One True Way philosophy, this is more an Intelligent Design philosophy. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You

Re: difficulties load paste app config

2007-04-17 Thread Ian Bicking
Max Ischenko wrote: Hello Ian, On 4/17/07, *Ian Bicking* wrote: Max Ischenko wrote: File /home/max/projects/dou-trunk/site/doupy/doupy/websetup.py, line 54, in command app_conf = appconfig('config:'+name, relative_to=conf_dir) File /usr/lib/python2.4

Re: Using multiple selects with formencode

2007-04-18 Thread Ian Bicking
when it goes through variable_decode. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: difficulties load paste app config

2007-04-18 Thread Ian Bicking
) to represent the administrative options available for a complete site. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because

Re: paster serve --daemon --monitor-restart -loops

2007-04-18 Thread Ian Bicking
problems with monitor anyway, I'm going to have to look at it more closely (killing the monitor currently doesn't kill the subprocess). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers

Re: paster serve --daemon --monitor-restart -loops

2007-04-19 Thread Ian Bicking
blog at: http://kbyanc.blogspot.com/2007/04/more-i-dig-through-code-more-paste-is.html The fix is pretty trivial (and detailed in my blog). I'm sorry I've been a lazy bum and not sent you patches yet. Sure; I think I did what you suggested in r6482 (just removed the regex check) -- Ian

Re: Using encoded forward slashes in a URL?

2007-05-05 Thread Ian Bicking
Evert Rol wrote: Hi all, I'm having a problem with encoded forward slashes in a URL. That is, I need to pass an 'id' that has encoded forward slashes in its name, but this results in routes not being be able map the URL: apparently it sees another subset of paths in the URL, even

Re: Paster server in production

2007-05-15 Thread Ian Bicking
voltron wrote: I have taken the advice from this forum and have installed nginx as a proxy to the paster server. this works well, but I´m really, really worried about using the Paster server in a production site, for example, when testing a Mako template, the server just died. Are there tips

Re: Paster server in production

2007-05-15 Thread Ian Bicking
Cliff Wells wrote: On Tue, 2007-05-15 at 17:34 +, __wyatt wrote: On May 15, 12:56 am, voltron [EMAIL PROTECTED] wrote: Hi all I have taken the advice from this forum and have installed nginx as a proxy to the paster server. this works well, but I´m really, really worried about using

Re: Issues with @validate decorator

2007-05-16 Thread Ian Bicking
Philip Jenvey wrote: On May 16, 2007, at 7:51 AM, Graham Stratton wrote: Hi all, I see there's discussion about the issues with the @validate decorator in the tracker. I've come across a few problems myself in the last few weeks, so hopefully I can contribute here: - In order to use

Re: Issues with @validate decorator

2007-05-18 Thread Ian Bicking
in this case). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: Common files for a multi-app

2007-05-18 Thread Ian Bicking
. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Issues with @validate decorator

2007-05-19 Thread Ian Bicking
someplace specifically with form:error name= -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: where to put application init code?

2007-05-22 Thread Ian Bicking
. You'd probably do the check in config.middleware:make_app. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you

Re: Daemonizing and auto-restart

2007-05-22 Thread Ian Bicking
, so I dunno. Also it probably has more overhead than daemontools, though I don't know if it really is significant. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers

Re: Packaging a Pylons app

2007-05-23 Thread Ian Bicking
other than svn, there might be a plugin to get setuptools to find your files. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message

Re: Daemonizing and auto-restart

2007-05-24 Thread Ian Bicking
Mike Orr wrote: On 5/22/07, Ian Bicking [EMAIL PROTECTED] wrote: My other question is, paster has a --monitor-restart option to restart the server if it dies. But the Pylons Cookbook has recipes for daemontools and supervisor2. Are these better than paster's monitor for some reason

Re: Daemonizing and auto-restart

2007-05-25 Thread Ian Bicking
). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Packaging a Pylons app

2007-05-25 Thread Ian Bicking
voltron wrote: Can I just download Pylons SVN and overwrite my present version(easy_install version 0.95) without fear of destroying anything? Umm... I don't think that'll help you. The issue is if *your* source is in version control, not where Pylons is. On May 24, 1:27 am, Ian Bicking

Re: Packaging a Pylons app

2007-05-25 Thread Ian Bicking
control system. Distutils forces you (and Setuptools allows you) to explicitly list all files in package_data. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers

Re: Towards a more incremental test-driven-development in Pylons?

2007-05-30 Thread Ian Bicking
was what you expected. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons

Re: CONFIG and logging problems

2007-05-30 Thread Ian Bicking
in environ['paste.config'], and why is that one being set wrong? It's setting it because that's what the config middleware is supposed to do. It sets that value. I don't know why the one it is setting is wrong, but that's what should be fixed. -- Ian Bicking | [EMAIL PROTECTED] | http

Paste releases

2007-06-26 Thread Ian Bicking
/news.html -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group

Re: Turbogears now based on Pylons!

2007-06-27 Thread Ian Bicking
on the configured connection. The frameworks would setup the transaction manager and configuration, and database frameworks would basically consume this information. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org | Write code, do good | http://topp.openplans.org/careers

Re: Turbogears now based on Pylons!

2007-06-27 Thread Ian Bicking
Jonathan LaCour wrote: Ian Bicking wrote: Personally I'd like to see something a bit different: * Way for a library to get the transaction manager. * Interface for that transaction manager, maybe copied from Zope. * Single convention for how to specify a database connection (ideally

Re: Turbogears now based on Pylons!

2007-06-28 Thread Ian Bicking
Michael Bayer wrote: On Jun 27, 6:42 pm, Ian Bicking [EMAIL PROTECTED] wrote: The way I see this working is something like (vaguely): def transaction_middleware(app): def wrapper(environ, start_response): manager = TransactionManager() environ['transaction.manager

  1   2   3   4   >