On Jan 4, 2009, at 2:45 PM, Tycon wrote:
PylonsHQ ticket system is down (does it run on pylons?)
Not that one. I was hacking Trac code to allow Trac to take auth data
from a Pylons app (the Pylons controller dispatches to Trac via WSGI)
for the new site, and accidentally left the tweaks in
On Jan 3, 2009, at 1:09 PM, mobil wrote:
Ten reasons why couchdb is better than (off topic)
http://pylab.blogspot.com/2009/01/ten-reasons-why-couchdb-is-better-than.html
Guys I wrote up a small list of reasons why i think couchdb is way
bettter than mysql. Do let me know what you think
I thin
On Jan 4, 2009, at 2:29 PM, Tycon wrote:
from the "url_for" doc string :
If no route by that name is found, the string is assumed to be a
raw URL.
Should the raw URL begin with ``/`` then appropriate SCRIPT_NAME
data will
be added if present, otherwise the string will be used as the ur
On Jan 4, 2009, at 9:06 PM, Tycon wrote:
Another issue with url_for is the handling of query string parameters
using keyword arguments. Currently any extra keyword arguments will be
added to the generated URL as query string, for example:
url_for('/page', arg='val') ==> /page?arg=val
The p
On Jan 3, 2009, at 12:34 AM, Tycon wrote:
but the PrefixMiddleWare also doesn't seem to be setting the WSGI
environment url_scheme
(nor request.scheme). The PrefixMiddleware code never looks up
HTTP_X_FORWARDED_PROTO and doesn't set the url scheme in the wsgi
environment. So that needs to be fi
> Another issue with url_for is the handling of query string parameters
> using keyword arguments. Currently any extra keyword arguments will be
> added to the generated URL as query string, for example:
>
> url_for('/page', arg='val') ==> /page?arg=val
>
> The problem is that you can't use ke
i've got a domain: example.com
i want to run ten different websites (sub1.example.com,
sub2.example.com sub10.example.com)
a different pylons app will be running each of the 10 websites
i'm proxying scgi from lighttpd (10 entries, each website running on
port 5001, 5002 ... 5010)
i have a
PasteDeploy 1.3.2
Paste 1.7.2
According to (non)-easy-install these are the "best" match version,
and it's "already the active version in easy-install.pth", so
hopefully that means I have the latest version in "easy-
install" (=cryptic) speak.
On Jan 5, 10:04 am, Ben Bangert wrote:
> On Jan 3,
> But what if I don't want to SCRIPT_NAME to be prefixed to the URL
> because it's a link for a different application ? For example if
> pylons app has SCRIPT_NAME of "/pylons" but I want to create a URL for
> "/blog/newposts" which is served an a different blog application (so
> it should not b
I think we need to have three new arguments to url_for:
params (dict) - used to create the query string (while deprecating the
keyword args method, just like the comment about turbogears
mentioned).
raw (boolean) - if true then the url is presumed to raw so we don't
try to do a routing map match
Hello everyone,
I'm a beginner with Pylons and am trying to set the filename of a file
to download in an action (that is, controller method):
def environ3(self):
msg = list(request.environ.items())
msg = [ str(el[0]) + " " + str(el[1]) for el in msg ]
msg.sort()
Hello everyone,
I'm a beginner with Pylons and am trying to set the filename of a file
to download in an action (that is, controller method):
def environ3(self):
msg = list(request.environ.items())
msg = [ str(el[0]) + " " + str(el[1]) for el in msg ]
msg.sort()
On Mon, Jan 5, 2009 at 10:20 AM, mk wrote:
>
> Hello everyone,
>
> I'm a beginner with Pylons and am trying to set the filename of a file
> to download in an action (that is, controller method):
>
> def environ3(self):
> msg = list(request.environ.items())
> msg = [ str(el[0])
On Jan 5, 9:56 am, Ben Bangert wrote:
> On Jan 4, 2009, at 9:06 PM, Tycon wrote:
>
>
>
> > Another issue with url_for is the handling of query string parameters
> > using keyword arguments. Currently any extra keyword arguments will be
> > added to the generated URL as query string, for example:
Looking at news, this is only in trunk:
http://svn.pythonpaste.org/Paste/Deploy/trunk/docs/news.txt
Try: easy_install PasteDeploy==dev
Tycon wrote:
> PasteDeploy 1.3.2
> Paste 1.7.2
>
> According to (non)-easy-install these are the "best" match version,
> and it's "already the active version i
I already posted this question but I didn't get any response.
I am a beginner wih Pylons and Authkit.
I am using Debian unstable and all the packages within Debian for using Authkit.
I developped a login form and now I want to use Authkit to give users
permission to use the web application. Thes
eleith wrote:
> i've got a domain: example.com
>
> i want to run ten different websites (sub1.example.com,
> sub2.example.com sub10.example.com)
>
> a different pylons app will be running each of the 10 websites
>
> i'm proxying scgi from lighttpd (10 entries, each website running on
> por
there is another bug in that prefix middleware in that it's trying to
strip out the SCRIPT_NAME prefix, which is wrong because that should
already be stripped out by the webserver before forwarding the request
(at least apache mod_proxy does). In general anything under a
"Location" or "Alias" dire
On Mon, Jan 5, 2009 at 11:13 AM, Wyatt Baldwin
wrote:
>> > Another issue with url_for is the handling of query string parameters
>> > using keyword arguments. Currently any extra keyword arguments will be
>> > added to the generated URL as query string, for example:
>>
>> > url_for('/page', arg='
On Mon, Jan 5, 2009 at 9:15 PM, wrote:
>
> I already posted this question but I didn't get any response.
>
> I am a beginner wih Pylons and Authkit.
> I am using Debian unstable and all the packages within Debian for using
> Authkit.
> I developped a login form and now I want to use Authkit to
On Jan 5, 11:57 am, "Mike Orr" wrote:
> On Mon, Jan 5, 2009 at 11:13 AM, Wyatt Baldwin
>
> [snip]
>
> > Actually, I think I like the idea of making the query params into a
> > single argument. It could be a string like a=1&b=2 or a dict.
>
> No! Encouraging the user to do their own interpolation
And I dont like the trailing underscore idea, because it would be a
mess to deal with in most common use cases like:
params = dict(request.params)
url = url_for('/page', **params)
With the params dict suggestion this will be written into
url = url_for('/page', params)
But with trailing undersc
and users can easily concatenate the query string to the url by
themselves, so not much point to allow that option. I like the params
dict suggestion.
On Jan 5, 12:11 pm, Wyatt Baldwin wrote:
> On Jan 5, 11:57 am, "Mike Orr" wrote:
>
> > On Mon, Jan 5, 2009 at 11:13 AM, Wyatt Baldwin
>
> > [sni
On Mon, Jan 5, 2009 at 12:35 PM, Tycon wrote:
>
> And I dont like the trailing underscore idea, because it would be a
> mess to deal with in most common use cases like:
>
> params = dict(request.params)
> url = url_for('/page', **params)
>
> With the params dict suggestion this will be written in
On Mon, Jan 5, 2009 at 1:07 PM, Mike Orr wrote:
> On Mon, Jan 5, 2009 at 12:35 PM, Tycon wrote:
>>
>> And I dont like the trailing underscore idea, because it would be a
>> mess to deal with in most common use cases like:
>>
>> params = dict(request.params)
>> url = url_for('/page', **params)
>>
right and don't forget about adding the new "raw" (to avoid mapper
lookup if true) and "external" (to avoid adding SCRIPT_NAME prefix if
true) arguments, in addition to the "params" dict, so you will have a
much better url_for
On Jan 5, 1:07 pm, "Mike Orr" wrote:
> On Mon, Jan 5, 2009 at 12:35 P
On Jan 6, 6:26 am, Ian Bicking wrote:
> eleith wrote:
> > i've got a domain: example.com
>
> > i want to run ten different websites (sub1.example.com,
> > sub2.example.com sub10.example.com)
>
> > a different pylons app will be running each of the 10 websites
>
> > i'm proxying scgi from l
On Mon, Jan 5, 2009 at 3:11 PM, m h wrote:
>
> On Mon, Jan 5, 2009 at 10:20 AM, mk wrote:
>>
>> Hello everyone,
>>
>> I'm a beginner with Pylons and am trying to set the filename of a file
>> to download in an action (that is, controller method):
>>
>> def environ3(self):
>> msg = li
> So what about having a 'params' argument but keeping the current
> behavior if 'params' is not set. That would allow backward
> compatibility.
>
> Then if 'params' is set and another argument doesn't correspond to any
> path variable, I guess you'd raise an error.
Well, what we did in tg2 was m
>>
>> Here's what I'm using:
>>
>>
>>response.headers["content-type"] = "application/vnd.ms-excel"
>>response.headers["Content-Disposition"] = "attachment;
>> filename=%s" % xls_filename
>>
>> cheers,
>
> yes, in the future please read mailing list archives, this has been
> asked a
Hi all!
I’m going through Using
SQLAlchemy with Pylons tutorial and having problems with population of
database. (Data queries and modifications). Tables from tutorials were created
without problems.
I have methode in my hello.py file:
def loadinfo(self):
mr_jones = model.
Also lets not forget that keyword args can't represent a multi-dict
which is allowed for the request parameters. That's why it was a bad
idea from the start to use keyword args for the params.
On Jan 5, 5:57 pm, "Mark Ramm" wrote:
> > So what about having a 'params' argument but keeping the curr
I'm not sure it was such a "bad idea." It was a first pass and works
well for a large number of cases. It's unrealistic to expect
perfection from the get-go (or ever, really), and for all you or I
know, the current implementation *is* perfect, for some value of
perfect, for some users.
Regardless
Hello, Vadim,
> def loadinfo(self):
>
> mr_jones = model.Person()
>
> mr_jones.name = 'Mr Jones'
>
> model.meta.Session.save(mr_jones)
>
> model.meta.Session.commit()
The problem is in how you have created session. Since I don't know
what's your SqlAlchemy version
is there a way to handle a redirect_to in an __init__ , or does it
need to be in __before__ ?
pylons executes the code 'right' in an __init__ block, but breaks with
the "raise found"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
35 matches
Mail list logo