Re: [Web-SIG] A query for hosting providers

2005-03-27 Thread Ian Bicking
, but I'm not sure why... it seems like a useful capability. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org

Re: [Web-SIG] A query for hosting providers

2005-03-31 Thread Ian Bicking
efforts I can never get it to work. Well best efforts might indicate more work than I've actually put into it, but enough effort to leave me thoroughly annoyed ;) -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list

Re: [Web-SIG] Re: WSGIKit and frameworks

2005-04-17 Thread Ian Bicking
run: app-setup --template=webkit_zpt create It fills in those files, so they are templates for the application. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org

Re: [Web-SIG] Re: Just lost another one to Rails

2005-04-19 Thread Ian Bicking
do the latter automatically anyway :). I think Ian Bicking has been saying similar things. Well, since I show up in both paragraphs (having written FormEncode), and both sides of the issue, I guess I should reflect on why. The duplication of work did occur to me (and I was looking to give up

[Web-SIG] WSGIKit renamed as Python Paste

2005-04-22 Thread Ian Bicking
://svn.pythonpaste.org/Paste/trunk/ * New package name: paste -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org

Re: [Web-SIG] Preferred set of WSGI servers

2005-04-29 Thread Ian Bicking
James Y Knight wrote: On Apr 28, 2005, at 2:02 PM, Ian Bicking wrote: What I want in a WSGI server twisted.web2 supports: HTTP, HTTPS, CGI, and I wrote SCGI yesterday and will commit it this weekend. FastCGI looks like a complicated protocol, so it'll probably be a bit harder than SCGI

Re: [Web-SIG] JavaScript libraries

2005-05-02 Thread Ian Bicking
across browsers. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] JavaScript libraries

2005-05-06 Thread Ian Bicking
they don't have a web-forms-implementors mailing list or something. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http

[Web-SIG] Static WSGI file application

2005-05-17 Thread Ian Bicking
hooks to use it as a backend to a caching middleware, but I wonder if anyone's started on anything in that direction. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http

[Web-SIG] Google Summer Of Code

2005-05-31 Thread Ian Bicking
?) -- either way it can't hurt for people to indicate an interest in mentorship. Anyway, the page is here: http://wiki.python.org/moin/PythonWebProgrammingIdeas -- my ideas are all focused on WSGI applications, which is kind of abstract and maybe a little on the boring/low-level side ;) -- Ian

Re: [Web-SIG] HTMLTemplate

2005-06-02 Thread Ian Bicking
Shannon -jj Behrens wrote: Anyone have any comments on HTMLTemplate? Which one? I think there's a few. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org

Re: [Web-SIG] HTMLTemplate

2005-06-02 Thread Ian Bicking
Python presentation layer. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive

Re: [Web-SIG] DOM-based templating

2005-06-03 Thread Ian Bicking
. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Re: [Web-SIG] PEP222 and python on the server?

2005-06-08 Thread Ian Bicking
, that the WSGI dictionary is a reasonable standard object. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman

[Web-SIG] Daemon server management

2005-06-09 Thread Ian Bicking
separate process for Windows might make sense (as a windows service or something). Opinions? Or examples of other servers (preferably Python-based) that do this well? -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing

Re: [Web-SIG] Daemon server management

2005-06-09 Thread Ian Bicking
Jacob Smullyan wrote: On Thu, Jun 09, 2005 at 01:26:17PM -0500, Ian Bicking wrote: Does anyone have opinions on how to start and stop daemon servers? I've added a --daemon option to paster serve, but I'd like to implement stop, restart, and reload as well. Whenever I encounter servers

Re: [Web-SIG] Daemon server management

2005-06-10 Thread Ian Bicking
. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Re: [Web-SIG] Daemon server management

2005-06-10 Thread Ian Bicking
for about 10 seconds. So connections during that downtime get caught in the gateway between Apache and the Python server, and eventually get through (as long as the server really does come back up). It works quite well, and it's simple. -- Ian Bicking / [EMAIL PROTECTED] / http

Re: [Web-SIG] Daemon server management

2005-06-10 Thread Ian Bicking
I'm guessing you also meant to copy web-sig... Jacob Smullyan wrote: On Thu, Jun 09, 2005 at 01:52:52PM -0500, Ian Bicking wrote: Jacob Smullyan wrote: On Thu, Jun 09, 2005 at 01:26:17PM -0500, Ian Bicking wrote: Does anyone have opinions on how to start and stop daemon servers? I've added

Re: [Web-SIG] Daemon server management

2005-06-10 Thread Ian Bicking
) But I'm not sure if that's right either. The process seems to die, instead of properly terminating. Should I send another signal, and set up a signal handler in the server? Then perhaps I would send that signal, wait a bit, and send SIGTERM if it didn't stop on its own? -- Ian Bicking

Re: [Web-SIG] lighttpd supports

2005-06-16 Thread Ian Bicking
, I don't know of any, though I'd be very interested in such a thing. Incidentally making such a thing was one of the ideas I put up for Google's Summer of Code. But I don't know if anyone took that one up. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

[Web-SIG] Standardized configuration

2005-07-11 Thread Ian Bicking
produce strings. I think consumers should treat strings (or maybe a special string subclass) specially, performing conversions as necessary (e.g., 'yes'-True). Thoughts? -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG

Re: [Web-SIG] Standardized configuration

2005-07-16 Thread Ian Bicking
authentication being examples where the partitioning was done improperly. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org

Re: [Web-SIG] Standardized configuration

2005-07-17 Thread Ian Bicking
to step back from that a bit. It sure is tempting, though. ;-) I've found it satisfyingly easy. Maybe there's a better way... but better without easier doesn't excite me at all. And we learn best by doing... which is my way of saying you should try it with code right now ;) -- Ian Bicking

Re: [Web-SIG] Standardized configuration

2005-07-17 Thread Ian Bicking
Phillip J. Eby wrote: At 01:57 PM 7/11/2005 -0500, Ian Bicking wrote: Lately I've been thinking about the role of Paste and WSGI and whatnot. Much of what makes a Paste component Pastey is configuration; otherwise the bits are just independent pieces of middleware, WSGI applications, etc

Re: [Web-SIG] Standardized configuration

2005-07-18 Thread Ian Bicking
of architecture I've been attracted to, and the kind of middleware I've been adding to Paste. The biggest difference is that mod_python uses an actual list and return values, where WSGI uses nested function calls. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: [Web-SIG] Standardized configuration

2005-07-19 Thread Ian Bicking
Chris McDonough wrote: On Mon, 2005-07-18 at 22:49 -0500, Ian Bicking wrote: In addition to the examples I gave in response to Graham, I wrote a document on this a while ago: http://pythonpaste.org/docs/url-parsing-with-wsgi.html The hard part about this is configuration; it's easy

Re: [Web-SIG] Standardized configuration

2005-07-19 Thread Ian Bicking
most of the time, but if you do it's still not that bad. WSGI is dumb and crude, which is a feature. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs

Re: [Web-SIG] Standardized configuration

2005-07-23 Thread Ian Bicking
applications. However, that feature specification would be optional. What the configuration file in egg-info looks like, I don't know. Probably just like the original configuration file, except this time with a factory. I don't like the configuration key egg though. But eh, that's a detail. -- Ian

Re: [Web-SIG] Standardized configuration

2005-07-23 Thread Ian Bicking
Chris McDonough wrote: On Fri, 2005-07-22 at 17:26 -0500, Ian Bicking wrote: To do this, we use a ConfigParser-format config file named 'myapplication.conf' that looks like this:: [application:sample1] config = sample1.conf factory = wsgiconfig.tests.sample_components.factory1

Re: [Web-SIG] Entry points and import maps (was Re: Scarecrow deployment config

2005-07-24 Thread Ian Bicking
, but if the change in the configuration file reflected a change in the source code, then you're stuck because reloading in Python is so infeasible. I'm all for warnings, but I don't see how we can do the Right Thing here, as much as I wish it were otherwise. -- Ian Bicking / [EMAIL PROTECTED] / http

Re: [Web-SIG] Entry points and import maps (was Re: Scarecrow deployment config

2005-07-24 Thread Ian Bicking
the assignment inside a string, instead of: entry_points = { 'wsgi.app_factories': { 'app': 'somemodule:somefunction', }, } Also, is there any default name? Like for a package that distributes only one application. Or these just different spellings for the same thing? -- Ian Bicking

Re: [Web-SIG] Entry points and import maps (was Re: Scarecrow deployment config

2005-07-24 Thread Ian Bicking
that name could match the package name, or a fixed name we agree upon, but otherwise it adds another name to the mix. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org

Re: [Web-SIG] WSGI deployment part 2: factory API

2005-07-24 Thread Ian Bicking
knows how to build an application from filename conventions in the package itself, even though the paste.wareweb module isn't in the project itself. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG

Re: [Web-SIG] Entry points and import maps (was Re: Scarecrow deployment config

2005-07-25 Thread Ian Bicking
the character decoding improperly (line-by-line instead of opening the file with the given character encoding), but otherwise it's been sufficiently generic and workable, and should allow for doing more extensive parsing of things like section headers. -- Ian Bicking / [EMAIL PROTECTED] / http

[Web-SIG] WSGI deployment use case

2005-07-25 Thread Ian Bicking
it is harder. Also when configuration is pushed into factories as keyword arguments, instead of being pulled out of a dictionary, it is much harder -- the configuration becomes unhackable. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: [Web-SIG] WSGI deployment use case

2005-07-25 Thread Ian Bicking
Phillip J. Eby wrote: At 08:29 PM 7/25/2005 -0500, Ian Bicking wrote: Right now Paste hands around a fairly flat dictionary. This dictionary is passed around in full (as part of the WSGI environment) to every piece of middleware, and actually to everything (via an import and threadlocal

Re: [Web-SIG] WSGI deployment use case

2005-07-25 Thread Ian Bicking
. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Re: [Web-SIG] WSGI deployment use case

2005-07-26 Thread Ian Bicking
Well, the stack is really just an example, meant to be more realistic than sample1 and sample2. I actually think it's a very reasonable example, but that's not really the point. Presuming this stack, how would you configure it? Chris McDonough wrote: Just for a frame of reference, I'll say

[Web-SIG] WSGI deployment: an experiment

2005-07-28 Thread Ian Bicking
: FileBrowser app browse_path = /home/rflosi -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig

Re: [Web-SIG] WSGI deployment: an experiment

2005-07-28 Thread Ian Bicking
Ian Bicking wrote: It's experimental. It's far too bound to ConfigParser. Maybe it's too closely bound to .ini files in general. It doesn't handle multiple files or file references well at all. Actually, not just not well, but just not at all. But I think it's fairly simple and usable

Re: [Web-SIG] and now for something completely different!

2005-08-15 Thread Ian Bicking
implies that there should be a standard generic location to store session information. Or you can ignore that and use the session ID only. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web

Re: [Web-SIG] and now for something completely different!

2005-08-16 Thread Ian Bicking
mike bayer wrote: I mostly was using Apache::Session as a guide to the architectural features I wanted to see, which include flexibility of containment and locking systems as well as a separation between individual sessions. Is there a good API guide to Apache::Session somewhere? -- Ian

Re: [Web-SIG] and now for something completely different!

2005-08-16 Thread Ian Bicking
. Then it essentially becomes an ad hoc event system. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman

Re: [Web-SIG] Session interface

2005-08-16 Thread Ian Bicking
. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Re: [Web-SIG] and now for something completely different!

2005-08-16 Thread Ian Bicking
Ian Bicking wrote: Though there's a couple issues. The sessino store should be passed along with the session ID. It should be specified that loading a session from this callback will not cancel its expiration. Maybe per-session callbacks should be allowed; in which case the callbacks

Re: [Web-SIG] Session interface

2005-08-16 Thread Ian Bicking
do what you want to do just fine, and ignore the rest. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org

Re: [Web-SIG] PasteDeploy 0.1

2005-08-22 Thread Ian Bicking
Phillip J. Eby wrote: At 09:03 PM 8/22/2005 -0500, Ian Bicking wrote: One aspect of paste.deploy that wasn't shown in that example is that it's easy to refer to other configuration files. It would actually be more realistic to do: [composit:app] use = egg:Paste#urlmap

Re: [Web-SIG] PasteDeploy 0.1

2005-08-23 Thread Ian Bicking
to be string literals. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] using WSGI for standard pluggable applications

2005-09-10 Thread Ian Bicking
Ksenia Marasanova wrote: Sorry if this is a trivial question, but does it sounds reasonable to use WSGI for pluggable standard applications, instead of usual Python imports? For example, standard news module, like: app = NewsApp(path='/site/news/') The content of news app would be

Re: [Web-SIG] using WSGI for standard pluggable applications

2005-09-10 Thread Ian Bicking
Ksenia Marasanova wrote: 2005/9/10, Ian Bicking [EMAIL PROTECTED]: Ksenia Marasanova wrote: Sorry if this is a trivial question, but does it sounds reasonable to use WSGI for pluggable standard applications, instead of usual Python imports? For example, standard news module, like: app

Re: [Web-SIG] using WSGI for standard pluggable applications

2005-09-29 Thread Ian Bicking
hooks to subtly change various parts of the page is intricate. I'd hate to have to do that using a filter :-/ Oh well, YMMV. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http

[Web-SIG] ANN: Paste Packages 0.3

2005-10-02 Thread Ian Bicking
I'm pleased to release the first official packaging of the Paste suite of tools. I'm starting at 0.3 -- less committal than 1.0, but more confident than 0.1... just right for now. Python Paste aims brings consistency to Python web development and web application installation, providing tools for

[Web-SIG] ANN: FormEncode 0.3

2005-11-12 Thread Ian Bicking
I'm pleased to announce FormEncode 0.3. What is it? --- FormEncode is a package for form validation and conversion. It also includes modules for parsing, filling, and extracting metadata from HTML forms. It features robust conversion both of incoming and outgoing data, attention paid

[Web-SIG] ANN: FormEncode 0.4

2005-11-20 Thread Ian Bicking
I'm pleased to announce FormEncode 0.4. What Changed? - Lots of cleanups and clarifications. Also a module to integrate with SQLObject. Read all about the changes: http://formencode.org/news.html What is it? --- FormEncode is a package for form validation and

Re: [Web-SIG] When must applications call the WSGI start_response callable.

2005-12-15 Thread Ian Bicking
to greater effect in an asynchronous server. However, I'd rather it not be optional, as most WSGI apps won't do this, and so servers won't get good testing on this or may just not implement it, and then some apps and some servers won't be compatible. -- Ian Bicking / [EMAIL PROTECTED] / http

Re: [Web-SIG] Is the size argument to the input-stream read method optional?

2005-12-15 Thread Ian Bicking
be required in the spec, since it's required in practice. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman

Re: [Web-SIG] Thread-management middleware components?

2005-12-15 Thread Ian Bicking
with the server developers. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] WSGI thread affinity/interleaving

2005-12-18 Thread Ian Bicking
-- it may simply be an overzealous warning. CCing DB-SIG -- people there might know more details. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig

[Web-SIG] WSGI: QUERY_STRING and cgi stdlib module

2005-12-21 Thread Ian Bicking
almost always set anyways. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] Is the size argument to the input-stream read method optional?

2005-12-28 Thread Ian Bicking
in the server. Not that I really know much about chunking, except that it was discussed at one point. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web

Re: [Web-SIG] transaction progress with cgi.FieldStorage

2005-12-29 Thread Ian Bicking
frameworks don't actually deal well with tracking an upload, hence a custom WSGI application). -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig

[Web-SIG] ANN: Python Paste 0.4

2006-01-08 Thread Ian Bicking
WSGI and the tools in Paste. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive

Re: [Web-SIG] Communicating authenticated user information

2006-01-23 Thread Ian Bicking
. Well, I suppose you could update the one-and-only environ from a copy you made before sending the request on. But anyway, it doesn't do that. I'd like to do this same thing (N subrequests) sometime in the future for server-side HTML Overlays. -- Ian Bicking / [EMAIL PROTECTED] / http

[Web-SIG] WSGI extension spec/doc

2006-01-25 Thread Ian Bicking
accompanied by code). -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] Standardized template API

2006-01-31 Thread Ian Bicking
, 'foo.tmpl') print tmpl_plugin.render(tmpl, locals()) Where before it would be: tmpl_plugin = CheetahPlugin() print tmpl_plugin.render(locals(), template='foo.tmpl') -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web

Re: [Web-SIG] Standardized template API

2006-01-31 Thread Ian Bicking
. I, for one, am listening. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive

Re: [Web-SIG] Standardized template API

2006-01-31 Thread Ian Bicking
Phillip J. Eby wrote: [back to the Web-SIG] At 09:39 PM 1/31/2006 -0600, Ian Bicking wrote: How do you pass in variables? environ, or a nested variable therein OK, if you invert that (put the environ in the variables) then you get... variables, like in the original spec. How do

Re: [Web-SIG] Standardized template API

2006-01-31 Thread Ian Bicking
the chain of calls or something. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive

Re: [Web-SIG] Standardized template API

2006-02-01 Thread Ian Bicking
= response.plugin.render(resource, {'environ': environ}) start_response('200 OK', environ['response.headers'].items()) return [body] There's a bunch of sloppy WSGI constructs, and the environment isn't a great request object, but that's not really the point. -- Ian Bicking / [EMAIL

Re: [Web-SIG] My original template API proposal

2006-02-05 Thread Ian Bicking
Ian Bicking wrote: def render(template_instance, vars, format=html, fragment=False): Here I can magically turn this into a WEB templating spec: def render(template_instance, vars, format=html, fragment=False, wsgi_environ=None, set_header_callback=None) wsgi_environ is the environ

Re: [Web-SIG] A trivial template API counter-proposal

2006-02-05 Thread Ian Bicking
of the API design. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] My original template API proposal

2006-02-05 Thread Ian Bicking
Ian Bicking wrote: Ian Bicking wrote: def render(template_instance, vars, format=html, fragment=False): Here I can magically turn this into a WEB templating spec: def render(template_instance, vars, format=html, fragment=False, wsgi_environ=None, set_header_callback=None) I've

Re: [Web-SIG] A trivial template API counter-proposal

2006-02-05 Thread Ian Bicking
Phillip J. Eby wrote: At 03:26 PM 2/5/2006 -0600, Ian Bicking wrote: Even the most trivial of web applications needs templates to include other templates, so the fact that this doesn't do anything to aid or specify that makes the spec feel leaky. I can indicate where the template comes

Re: [Web-SIG] My original template API proposal

2006-02-05 Thread Ian Bicking
James Y Knight wrote: On Feb 5, 2006, at 6:17 PM, Ian Bicking wrote: ``set_header_callback`` is a function that can be called like ``set_header_callback(header_name, header_value)``. Arguments can only be strings (not unicode) [encode unicode

Re: [Web-SIG] My original template API proposal

2006-02-06 Thread Ian Bicking
the template plugins. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Re: [Web-SIG] WSGI in standard library

2006-02-06 Thread Ian Bicking
frequent releases). -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] My original template API proposal

2006-02-06 Thread Ian Bicking
Kevin Dangoor wrote: On 2/5/06, Ian Bicking [EMAIL PROTECTED] wrote: def render(template_instance, vars, wsgi_environ=None, set_header_callback=None, **kwargs): I'm not keen on the wsgi_environ and set_header_callback options, because I don't perceive a true need

Re: [Web-SIG] Bowing out (was Re: A trivial template API counter-proposal)

2006-02-07 Thread Ian Bicking
of templates, not to be confused with the template itself. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman

Re: [Web-SIG] Logging the authenticated user (was Re: Bowing out)

2006-02-07 Thread Ian Bicking
compatibility well. It would be easy, for instance, to apply the filtering in the logging middleware if the server was not already filtering the response, and set the key to represent that the filtering was in place. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: [Web-SIG] Who is responsible for SCRIPT_NAME?

2006-02-07 Thread Ian Bicking
can't know if the thing calling it is a server that is actually talking to a socket, or some middleware that is passing along a request. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web

Re: [Web-SIG] WSGI in standard library

2006-02-13 Thread Ian Bicking
-sarna.com/wsgiref/src/wsgiref/simple_server.py?rev=1.2view=markup) are all pretty short. It would be better to discuss the particulars. Is there a code path in one or more of these servers which you think is unneeded and problematic? -- Ian Bicking / [EMAIL PROTECTED] / http

Re: [Web-SIG] WSGI in standard library

2006-02-14 Thread Ian Bicking
be two servers in the standard library (I assume) -- CGI and HTTP (and hopefully HTTPS will be easy to build off of HTTP). -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http

Re: [Web-SIG] WSGI in standard library

2006-02-14 Thread Ian Bicking
SimpleHTTPServer. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig/archive%40mail

Re: [Web-SIG] WSGI in standard library

2006-02-15 Thread Ian Bicking
something to consider. OTOH, maybe it should just be a similar object. And maybe both should use UserDict.DictMixin; much simpler then. Oh, and I don't like that __getitem__() and .get() are the same. __getitem__ should raise KeyError. -- Ian Bicking / [EMAIL PROTECTED] / http

Re: [Web-SIG] WSGI in standard library

2006-02-16 Thread Ian Bicking
recieves can be fully described by a dictionary (unlike the cookies that a server sends). -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig

Re: [Web-SIG] WSGI in standard library

2006-02-16 Thread Ian Bicking
;) - Form value validation I believe this is rather difficult, but not impossible. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe

Re: [Web-SIG] WSGI in standard library

2006-02-17 Thread Ian Bicking
look for in stdlib modules. Or, I can imagine an implementation-focused PEP on several of the things discussed. Which things? -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http

Re: [Web-SIG] WSGI in standard library

2006-02-17 Thread Ian Bicking
included anywhere, I'd want to at least include such a simulation in the tests. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http

Re: [Web-SIG] WSGI in standard library

2006-02-19 Thread Ian Bicking
will emerge. But lots of what we're talking about here isn't like that, so we shouldn't be pessimistic, just focused. -- Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org

[Web-SIG] html-gen-ish libraries; what's best?

2006-04-04 Thread Ian Bicking
markup.sf.net). I'm more interested in just using it to build fragments. Opinions? -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http

[Web-SIG] [Fwd: Summer of Code preparation]

2006-04-17 Thread Ian Bicking
Hi guys... looks like Google SoC is back on again. I'm hoping we get some good web stuff going on, so people should start thinking. Also there's two wiki pages where you can add project ideas: http://wiki.python.org/moin/SummerOfCode and the somewhat out-of-date (and needs cleaning) page

Re: [Web-SIG] [Fwd: Summer of Code preparation]

2006-04-17 Thread Ian Bicking
the Javascript is given to execute. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: http://mail.python.org/mailman/options/web-sig

Re: [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
though, just some questions about the particulars of the server. I think there were at least a couple small suggestions for the wsgiref server; in particular maybe a slight refactoring to make it easier to use with https. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
of checks that should take place (most related to /'s), and the not found response should be configurable (probably as an application that can be passed in as an argument). But that's most of what it should do. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: [Web-SIG] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
the same prefix dispatching in Python *without* matching the interface of anybody else's code or environment; that's the sort of thing a reference implementation is meant to keep people from doing. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org

Re: [Web-SIG] [Python-Dev] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Phillip J. Eby wrote: At 04:04 PM 4/28/2006 -0500, Ian Bicking wrote: I don't see why not to use prefix matching. It is more consistent with the handling of the default application ('', instead of a method that needs to be overridden), and more general, and the algorithm is only barely

Re: [Web-SIG] [Python-Dev] Adding wsgiref to stdlib

2006-04-28 Thread Ian Bicking
Phillip J. Eby wrote: At 05:47 PM 4/28/2006 -0500, Ian Bicking wrote: It will still be only a couple lines less than prefix matching. That's beside the point. Prefix matching is inherently a more complex concept, and more likely to be confusing, without introducing much in the way of new

Re: [Web-SIG] [Python-Dev] Adding wsgiref to stdlib

2006-04-29 Thread Ian Bicking
Phillip J. Eby wrote: At 07:48 PM 4/28/2006 -0500, Ian Bicking wrote: One is not more complex than the other. The implementation has more moving parts, but I was talking about conceptual complexity. The most common web servers do not match path prefixes, they have directories and files

Re: [Web-SIG] [Python-Dev] Adding wsgiref to stdlib

2006-05-02 Thread Ian Bicking
for what prefix dispatching implement on their own, which means that they won't be as compatible with other webservers and environments. -- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org ___ Web-SIG mailing list Web-SIG@python.org

  1   2   3   >