The Beaker documentation says there is a Unique 40 char SHA-generated
session ID, how do I get access to these IDs?
I am receiving the following error: AttributeError: 'module' object
has no attribute 'id'.
Thanks,
Matt
--
You received this message because you are subscribed to the Google
Hi Graham! ;)
On 01/29/2010 06:02 AM, Graham Higgins wrote:
I suspect that you're going to enjoy programming in Python. I dunno if
it helps you frame it better but I find that Python is more Lisp-like
than one might first credit. IMO, the Pylons code itself is a good
illustrative example of
Hi!
Wonder how people implement the subj?
Suppose I've no javascript. What URL should bring me to a page for
dangerous operation confirmation?
TIA,
--
Vladimir
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email
On 01/29/2010 02:39 PM, Vladimir Dronnikov wrote:
Hi!
Wonder how people implement the subj?
Suppose I've no javascript. What URL should bring me to a page for
dangerous operation confirmation?
TIA,
--
Vladimir
Confirmation is a process that is not fully compatible with (pure)
Sorry, I hit Reply too fast.
Continuing on what I previously said, the URI can be the same. REST uris
are opaque, have no meaning other than being a location for a resource.
So if you had
/importantdocument/123
You can POST to, for example, /importantdocument/123/delete or
Hi,
I'm just moving my webapp which runs in apache/mod_wsgi behind an
nginx proxy. I've set it up to use the prefixmiddleware and all the
https url_for'ed url's generate as expected. Unfortunately this
doesn't seem to be the case for redirect_to urls, as these send me to
the http, not the https
Hey Matt,
Hope all is well - what do you need the session id for? I've never had
to actually use it - afaik beakers internals deal with that for you.
Damian
On Jan 29, 9:19 am, Matt Woolnough m...@woolnough.com.au wrote:
The Beaker documentation says there is a Unique 40 char SHA-generated
using Routes 1.10 and 1.11 ...
1) how can i match to a single controller's
/admin - def index
/admin/ - def index
/admin/$action$ - def $action
must i do this explicitly in two calls ? because
/admin/{action} requires the /
2) is it possible to use the {action} as a
Thanks for feedback. My appoach is similar.
I appended an additional member for resource mapper in config/routing.py:
...
map.resource('model', 'models', path_prefix='/admin/{model_name}',
controller='admin', member={'confirm':'GET'})
...
and redirected my 'Delete' links to this method.
But
On Fri, Jan 29, 2010 at 2:39 AM, Haron Media i...@haronmedia.com wrote:
Hope this helps to ratify your decision to choose a flexible and
highly capable construction set instead of a dainty pink fluffy pony.
Actually, we have a pony too. See paste.pony in the Paste source.
There's even a
Hey mate,
Yep all is well! Got some big news for you, Ill tell you about later
OL.
This earlier thread should shed some light on what I am trying to do:
http://groups.google.com/group/pylons-discuss/browse_thread/thread/954a5e0337a4f873
Matt
On Jan 30, 3:35 am, Damian damiandimm...@gmail.com
.
File /home/morelli/PYTHON/INTERNAL_PROGRAMS/samplepylons/
samplepylons/config/middleware.py, line 37, in make_app
config = load_environment(global_conf, app_conf)
File /home/morelli/PYTHON/INTERNAL_PROGRAMS/samplepylons/
samplepylons/config/environment.py, line 26, in load_environment
I upgraded an application from Pylons 0.9.7 to dev (which is almost
1.0) yesterday, and I'm happy to report that it went pretty smoothly
and only took an hour or two. I used paster create -t pylons
AppName and the option to make *.bak's of changed files. Then I
looked through the differences to
On Fri, Jan 29, 2010 at 10:18 AM, Vladimir Dronnikov
dronni...@gmail.com wrote:
Thanks for feedback. My appoach is similar.
I appended an additional member for resource mapper in config/routing.py:
...
map.resource('model', 'models', path_prefix='/admin/{model_name}',
controller='admin',
How do I append gp.fileupload to an existing Shabti
(shabti_formalchemy) application? In particular, how to attach the
middleware?
TIA,
--
Vladimir
--
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to
map.resource('model', 'models', path_prefix='/admin/{model_name}',
controller='admin', member={'confirm':'GET'})
That's what I did, only I used:
member={ask_delete: GET}
I think this should be added to Routes.
You definitely got me right, Mike.
Delete confirmation is necessary in many
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 29 Jan 2010, at 21:41, Vladimir Dronnikov wrote:
How do I append gp.fileupload to an existing Shabti
(shabti_formalchemy) application? In particular, how to attach the
middleware?
Using the standard tempita substitution pattern, replace
On 01/29/2010 10:33 PM, Mike Orr wrote:
I don't understand Vlad's point:
Confirmation is a process that is not fully compatible with (pure) REST,
because requests must not be dependent of previous ones.
But if you need one, think of it as a Deletion resource. POST to
On 01/29/2010 11:14 PM, Vladimir Dronnikov wrote:
May be Server-side has a separate queue for queries-for-deletion; to
push such a query, a request should be made as POST URI/delete?
Precisely my point. That or using PUT to alter the state of the document
to deletable, before actual DELETE
How do I append gp.fileupload to an existing Shabti
(shabti_formalchemy) application? In particular, how to attach the
middleware?
Thanks a lot, Graham!
[pipeline:main]
pipeline = fileupload {{package}}
[filter:fileupload]
[app:{{package}}]
use = egg:{{package}}
Those were _the
That or using PUT to alter the state of the document
to deletable, before actual DELETE is issued.
To say the truth, I'd even prohibit use of DELETE to actually delete
smth. Deletion is way dangerous operation. Especially when cascading
is on.
When I have more time, I'll dive into versioned
On 01/30/2010 12:02 AM, Vladimir Dronnikov wrote:
To say the truth, I'd even prohibit use of DELETE to actually delete
smth. Deletion is way dangerous operation. Especially when cascading
is on.
While I agree that deletion is a dangerous operation, how dangerous
depending on the data
To say the truth, I'd even prohibit use of DELETE to actually delete
smth. Deletion is way dangerous operation. Especially when cascading
is on.
While I agree that deletion is a dangerous operation, how dangerous
depending on the data being deleted, I disagree on prohibiting it. In
fact, I
Is there anything documented on how to use the 'g'? I'm curious...
On Jan 30, 8:11 am, Mike Orr sluggos...@gmail.com wrote:
I upgraded an application from Pylons 0.9.7 to dev (which is almost
1.0) yesterday, and I'm happy to report that it went pretty smoothly
and only took an hour or two. I
On 01/30/2010 12:31 AM, Vladimir Dronnikov wrote:
When one operation (paying a bill, say, PUT (amount=1)) depend on
another (counting the saldo, GET /saldo), the whole scheme becomes
rather synchronous -- thus transactions -- and they heavily resemble
database's ones.
Agreed, though a
On Fri, Jan 29, 2010 at 3:38 PM, mickgardner mickgard...@gmail.com wrote:
Is there anything documented on how to use the 'g'? I'm curious...
http://pylonsbook.com/en/1.1/exploring-pylons.html#app-globals-object
There should be a table of the special globals somewhere, but I can't
find it
On Fri, Jan 29, 2010 at 2:43 PM, Haron Media i...@haronmedia.com wrote:
On 01/29/2010 10:33 PM, Mike Orr wrote:
I don't understand Vlad's point:
Confirmation is a process that is not fully compatible with (pure) REST,
because requests must not be dependent of previous ones.
But if you
On Fri, Jan 29, 2010 at 2:45 PM, Haron Media i...@haronmedia.com wrote:
On 01/29/2010 11:14 PM, Vladimir Dronnikov wrote:
May be Server-side has a separate queue for queries-for-deletion; to
push such a query, a request should be made as POST URI/delete?
Precisely my point. That or using
On Fri, Jan 29, 2010 at 10:07 AM, Jonathan Vanasco
jonat...@findmeon.com wrote:
using Routes 1.10 and 1.11 ...
1) how can i match to a single controller's
/admin - def index
/admin/ - def index
/admin/$action$ - def $action
This requires three routes. Normally you
29 matches
Mail list logo