Damjan wrote:
SqlAlchemy is not requirement for OpenID but you still need SQL backend
for OpenID. I believe that's only limitation of python-openid library
which might be already addressed and I am not aware about it. My
implementation works properly with MySQL only. I know how to fix SQLite
Nicholl William wrote:
Hi All,
I am planing to use openid authentication for my web site.My site back
end with MongoDB and not using SQLAlchemy. So probably i need to
customize authentication session for database access.
I know Authkit has openid support and also repoze.who has openid
Hi,
DavidG wrote:
1. ease/speed of programming
I think WSGI-nature of Pylons makes it very good balanced choice between
Django and Zope. Easy to learn as Django and easy to extend as Zope.
2. ease of testing
Nothing different than in other Python web frameworks.
3. scalability
I
Julio Napurí Carlos wrote:
Hi
I like to use this [1].
Obviously in Pylons. Somebody know a django-authopenid alternative for Pylons
?
You can use my middleware:
http://trac.sandbox.lt/auth/wiki/AuthOpenIdMiddleware
I use it only with MySql but it works without problems for me. I have
Tom Longson (nym) wrote:
Has anyone had experience getting openid or clickpass to work with pylons?
Just curious. The idea of making user registration easier (or
eliminate it entirely) totally appeals to me. On the other side of the
fence I'm hoping to try out django-clickpass with pinax.
Hello,
Sorry, Max, I don't have job offer for you.
Just an idea - PylonsHQ (http://pylonshq.com/) could have Pylons job
board where people looking for Pylons developers could post their job
offers.
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You
Hello,
On Fri, Feb 6, 2009 at 9:03 PM, Jonathan Vanasco jonat...@findmeon.comwrote:
ie -- instead of passing in a file, passing in a string?
the only way i can think of this right now is with a tmpfile, and i'd
like to avoid that.
I'm pretty sure that methods must return string and that's
On Tue, Feb 3, 2009 at 11:06 AM, Tycon adie...@gmail.com wrote:
Javascript libraries suck because the developer still needs to use the
retarded java-crypt language
which would be excutiating to develop any real application logic with.
Productivity, development tools,
debugging,
On Wed, Feb 4, 2009 at 4:06 AM, zordsdavini zordsdav...@gmail.com wrote:
Hi all,
How to append genshi translator during init of toskawidgets? This
problem comes from custom tw.forms templates. They are not
translating. I feel there should be some simple step.
I'm not sure what you mean by
On Tue, Feb 3, 2009 at 3:12 AM, Colin Flanagan quadvill...@yahoo.comwrote:
Does anyone have that link?
Looks like this one: http://ejohn.org/blog/javascript-language-abstractions/
I must note that it is worth to read almost everything what is written by
John Resig.
--
Dalius
Michael Bayer wrote:
(we of course ultimately rewrote the whole thing in pylons)
This.
same database code and database (remember we're still in java), the
components rendered about 50 times faster.
And this. What have you gained from Pylons? Development speed or
performance as well?
Regards,
Tom Longson (nym) wrote:
I'm worried about the state of authentication in pylons. I don't know
what I'd recommend to someone else for authentication if they were to
start building something, and I think this is a big stumbling point
with pylons as a web framework. I understand not everyone
On Mon, Jan 19, 2009 at 10:18 AM, Wichert Akkerman wich...@wiggy.netwrote:
I run the controller method in isolation, which means:
- no other middleware that influences the result
- I can put stuf in c before I call the controller method, and
introspect c afterwards
- no paste.fixture or
Hello,
On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com wrote:
My motivation is to write a unit testing but even in other cases it
could have sense to use a controller function isolated. Or at least in
my case, this is the only restriction.
If your intention is unit-testing
On Mon, Jan 19, 2009 at 9:34 AM, Wichert Akkerman wich...@wiggy.net wrote:
Previously Dalius Dobravolskas wrote:
Hello,
On Mon, Jan 19, 2009 at 7:44 AM, Roberto Allende ro...@menttes.com
wrote:
My motivation is to write a unit testing but even in other cases it
could have sense
On Thu, Jan 15, 2009 at 2:49 PM, mk mrk...@gmail.com wrote:
Gael Pasgrimaud wrote:
This work if you call the url http://localhost/data
Again, this decorator can *only* be used on a controller **action**
Well that sucks then.
DRY == good software engineering. Do I have to reimplement
Hello,
Huh? Are you suggesting that scripting api should call paster commands?
Actually that depends who will use scripting API. If you need to write
some scripts for cron and you will be the only user of that API you
shouldn't worry to much about JSON, XMLRPC, OAuth or whatever else.
You just
On Mon, Jan 12, 2009 at 10:22 PM, Tycon adie...@gmail.com wrote:
No, mod_wsgi is a hack. Embedded mode is bad, no serious website is
running app server embedded in web server. Daemon mode is even more
stupid, an unstable (and non scalable) way of using web server to
manage the app server,
On Fri, Jan 9, 2009 at 4:38 PM, mk mrk...@gmail.com wrote:
Hello everyone,
For the app I'm going to develop, I will need sort of scripting API to
it (callable from command line and/or Python or PHP library) in addition
to normal web interface.
Read wiki how to create paster commands.
On
input name=user3 value=${initstr} /
There are helper functions that could simplify that. Like:
${h.input('user3', value=initstr)}
And so on... There is h.form as well.
try:
c.initstr = request.params['user3']
except KeyError:
c.initstr = 'default
On Thu, Jan 8, 2009 at 6:10 PM, Thomas G. Willis tom.wil...@gmail.com wrote:
On Jan 7, 3:21 pm, Dalius Dobravolskas
dalius.dobravols...@gmail.com wrote:
snip...ToscaWidgets are nice
and works for me but when I want to add something unusual I have to
make hacks and other voodoo magic
On Thu, Jan 8, 2009 at 4:57 PM, mk mrk...@gmail.com wrote:
Dalius Dobravolskas wrote:
input name=user3 value=${initstr} /
There are helper functions that could simplify that. Like:
${h.input('user3', value=initstr)}
Hmm I'm getting SillyError(tm) now:
AttributeError: 'module' object has
if request.environ.has_key('paste.parsed_formvars'):
for item in request.environ['paste.parsed_formvars'][0].items():
do_smth(item)
Is there a shorter / proper way to do it?
Learn FormEncode or ToscaWidgets. I use both but like plain FormEncode more.
--
Dalius
http://blog.sandbox.lt
On Mon, Jan 5, 2009 at 9:15 PM, mblauwblo...@gmail.com 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
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 and how
Hello,
(see http://routes.groovie.org/trac/routes/ticket/85)
The first impression about this ticket is that non unicode and non
utf-8 encoded string was passed to routes. Most probably string was in
some local encoding. That's only my impression. I wonder why this
ticket is still open. Maybe
On Mon, Dec 29, 2008 at 12:36 AM, Tycon adie...@gmail.com wrote:
For people running the web app using paster http server (usually
behind a web server acting
as a reverse proxy), what kind of tool do you use to monitor your app
server (e.g. paster) ?
Check this solution as well:
Hello, Tomasz.
3. I will do some improvements in my authentication middlewares to
make them safer against CSRF.
I have made little improvement:
http://hg.sandbox.lt/authform-middleware/rev/bec2ddaef60b
I will document it later but some information now: I have read about
CSRF and other kind of
Hi,
I am trying to move my unit tests from using an sqlite file to using
sqlite in-memory.
That's really possible. I do that myself.
The first problem I have is in websetup.py After the db is created, I
insert some sample data, but the part that checks for and inserts
sample data says that
Hi,
I am beginning and I have one question about running Pylons(paster)
v0.9.6 with gzip compression(for pages) How to do it? :)
Two ways:
1) Search for gzipmiddleware here:
http://pylonsbook.com/alpha1/wsgi
Actually it would be nice if this middleware were available in Pylons
by default.
Hello, Tomasz.
On Thu, Dec 11, 2008 at 9:19 AM, Tomasz Narloch toma...@wp.pl wrote:
2) Where can I put @authenticate_form?
I don't know such decorator. Haven't you confused it with @authorize?
from pylons.decorators.secure import authenticate_form
In login I create:
Maybe I have better solution, without session.
Add to login form hidden fieled input type=hidden
name=if_error_back_to value=/panel/login /
That will not work on @authorize decorator. The problem is that we
have more than one path how /process is reached. I'm adding loginurl
function.
--
Hello, Tomasz,
I have updated code now:
http://hg.sandbox.lt/authform-middleware/rev/50e261dbd126
Okey, I don't know authorize as good as you.
Authentication ;-)
But how can you check referer for prefix:
referer: /order/index2 = translate to /order/login
referer: /admin/ =
When you publish new version, today or tomorrow or ...?
Since I don't use setuptools yet you just download:
http://hg.sandbox.lt/authform-middleware/archive/tip.tar.gz
It always point to newest version.
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
Hello,
I think that I will stay at AuthKit because it works fine for everything else
I'm doing. There are only the two problems I described earlier.
James is reading this group now. Maybe he will answer ;-)
You told me about a callback for doing some operations (inserting something
into
Hello, Tomasz,
On Wed, Dec 10, 2008 at 10:04 AM, Tomasz Narloch [EMAIL PROTECTED] wrote:
I check your authauth middleware.
Maybe I will like it.
That I need.
For users I need only authenticated but for admins I need authorized also.
User can buy some products from shop or go to own panel
On Wed, Dec 10, 2008 at 6:53 PM, James Gardner
Try changing the pyupo.lib.auth.render_signin function so that the
value it returns is encoded:
def render_signin(...):
return template.encode('utf-8')
Then it will all work.
Looks like yet another good reason to leave login dialog drawing
Hello, Tomasz,
Next time write which authentication solution your are using
(http://trac.sandbox.lt/auth/). Other users might not understand what
are you using.
1) I have one login form for client to panel
and second if someone want to buy something then go step by step and
next can login
def loginurl_by_context(environ):
if environ['beaker.session'].startswith('/panel'):
Error in my code:
if environ['beaker.session']['referer'].startswith('/panel'):
return '/panel/login'
else:
return '/shop/login'
What you think about that?
Better, my solution
Hello, Tomasz,
I see several problems.
On development version:
paster serve --reload development.ini
all work good
but when I go to page by apache2 I get error:
...
[Wed Dec 10 05:38:44 2008] [error] [client [...]] mod_wsgi (pid=8169):
Exception occurred processing WSGI script
Hello, Raoul,
These are the things I wanted in my auth+auth system:
- Customisable table names
- Users, Roles and Permissions
- Hide/show menu items pulled from the DB, based on permissions
- Enable/disable links, based on permissions
- Hide/show sections of pages, based on permissions
-
Hello, again,
Result:
Instead Apache 404 error now I get pylons 404 error on page.
The same error exist in logs.
OK. Now error is handled by ErrorHandler (Pylons). Much better. Define
email in deployment.ini it will send backtrace to your e-mail on 404
error. While Apache error log should
Hello, Kurt,
On Wed, Dec 3, 2008 at 5:38 PM, Kurt [EMAIL PROTECTED] wrote:
Ahh found the problem I needed to write testparam.encode('utf-8')
Use:
# -*- coding: utf-8 -*
And write (note missing 'u' that indicated unicode):
testparam = testpäräm
instead of:
testparam = utestpäräm
While I'm
Any help would be appreciated.
virtualenv should help you. I have not used myself virtualenv for
hosting yet but I think that's one purposes it is created for.
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You received this message because you are
Hi,
On Mon, Dec 1, 2008 at 11:46 AM, minglee [EMAIL PROTECTED] wrote:
ConfigParser.MissingSectionHeaderError: File contains no section
headers.
file: D:\pylons_ex\SimpleSite\development.ini, line: 1
'\xef\xbb\xbf#\n'
...
Code in development.ini are:
#
# SimpleSite - Pylons development
Hello, Gustavo,
On the other hand, because REMOTE_USER (which isn't set by r.who) is not
always enough and also some of the future features will rely on
future/existing repoze.who plugins, for example:
I agree with that. Even more REMOTE_USER is not enough to distinguish
between different
On Nov 28, 12:13 am, Dalius Dobravolskas
[EMAIL PROTECTED] wrote:
Hello, Gustavo,
On the other hand, because REMOTE_USER (which isn't set by r.who) is not
always enough and also some of the future features will rely on
future/existing repoze.who plugins, for example:
I agree
So what is it you want to understand? That the one thing is basically the
same as the other?
Result is the same. Not the way it is reached. I try to understand why
different way was chosen. I think repoze.who's way is named Component
programming. However all I got is:
1) Good Gael's example
Hi,
On Wed, Nov 26, 2008 at 12:31 PM, sector119 [EMAIL PROTECTED] wrote:
Dalius, how can I authenticate user with your middleware if can't use
cookies/sessions? For example I use XMLRPCController and I need to
authenticate user, and authorize some controller actions, I have
Hi,
2) Rip off basic http auth middleware from AuthKit. That shouldn't be very
hard;
3) Or just use middlewares from paste.auth.basic or paste.auth.digest;
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You received this message because you are
On Wed, Nov 26, 2008 at 3:38 PM, crown.hg [EMAIL PROTECTED] wrote:
thank's reply
s = xmlrpclib.ServerProxy('http://www.xscripter.com:5000/rpc/userstatus')
s.s.userstatus()
'basic string'
url = 'http://www.xscripter.com:5000/rpc/userstatus'
thi's ok,
why?
I can't say if it is OK without
On Wed, Nov 26, 2008 at 12:36 PM, sector119 [EMAIL PROTECTED] wrote:
Dalius, what for is ``app`` def ?
7 def authorize(function=None):
8
9 This is a decorator which can be used to decorate a Pylons
controller action.
10 It gives function ``function`` environ
Hi,
On Wed, Nov 26, 2008 at 11:38 AM, crown.hg [EMAIL PROTECTED] wrote:
faultCode 0 faultString Traceback (most recent call last): File /home/
crown/projects/xscripter/xscripter/lib/base.py, line 33, in __call__
return XMLRPCController.__call__(self, environ, start_response) File /
Hello, Mike,
By component programming you mean the fact that it has plugins?
Almost.
So by component programming you mean plugins? And that's your main
complaint against repoze.who?
Actually if we speak about repoze.who against AuthKit in this case, my
main complaint is that repoze.who
It's a wiki. :) You can edit it yourself.
Thank you ;)
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group, send email to
Hello,
I will repeat my question: what additional value is created by
repoze.who what WSGI can't do?
repoze.who *is* WSGI. :)
Actually it is more. It is WSGI (layer programming?) + Zope (component
programming). I just don't get why mix that? Why WSGI is not enough?
And theoretically it
On Tue, Nov 25, 2008 at 12:19 PM, Gustavo Narea
[EMAIL PROTECTED] wrote:
On Tuesday November 25, 2008 07:18:56 Dalius Dobravolskas wrote:
repoze.what: Looks like TurboGears 1. The main mistake makes everyone
when they implement authorization plugin/middleware, they think that
everyone builds
Hello,
On Tue, Nov 25, 2008 at 1:47 PM, Gustavo Narea
[EMAIL PROTECTED] wrote:
You can add multiple middlewares. The problem is when middlewares or
plugins conflict with each other (e.g. because of lack of options).
repoze.who does not help to solve this problem.
Can you please provide one
On Tue, Nov 25, 2008 at 10:54 PM, Gustavo Narea
[EMAIL PROTECTED] wrote:
Yes, you are wrong, as Gael pointed in the previous message. Come on, there's
no such a problem with repoze.who.
Gael said that you can change cookie name. That's OK. Problem is
different. Do you really even understand the
By the way, you can set the repoze.who cookie name to wathever you want.
That's OK. Problem is different.
The only complication is that you must say hey, my class is an
authentifier. Is it really complicated ?
There is more actually. I need to understand what is IChallenger,
IIdentifier,
Hello, Gael,
class UrlPlugin(RedirectingFormPlugin):
implements(IChallenger, IIdentifier)
# IIdentifier
def identify(self, environ):
query = parse_dict_querystring(environ)
if 'email' in query and 'secret' in query:
rememberer =
On Wed, Nov 26, 2008 at 8:54 AM, Uwe C. Schroeder [EMAIL PROTECTED] wrote:
What is it you want to achieve with this crusade? More popularity? I guess all
you'll get is annoyed core developers.
I don't care about popularity at all. If I care I have chosen the
wrong path. There are two things I
Hello,
On Mon, Nov 24, 2008 at 11:56 PM, Florent Aide [EMAIL PROTECTED] wrote:
TurboGears 2 team has chosen repoze.who to implement authentication
and has spawned repoze.what to implement authorization.
That's their choice but that's not argument. What was reasoning behind that?
I feel that
On Mon, Nov 24, 2008 at 11:06 PM, Domen Kožar [EMAIL PROTECTED] wrote:
repoze.who has many plugins including recaptcha, openid, ldap.
also there is repoze.what on the way;)
I should have investigated that. Thank you for pointing that.
OpenID: If we are speaking about
Hello, Mike,
On Tue, Nov 25, 2008 at 12:18 AM, Mike Orr [EMAIL PROTECTED] wrote:
I have consolidated the various auth wiki pages into a section in the
Pylons Cookbook called Authentication and Authorization.
http://wiki.pylonshq.com/display/pylonscookbook/Authentication+and+Authorization
Can
Hello, All,
I will rise old AuthAuth problem in Pylons. I have written some
middlewares and here is the reason why I have done that:
http://trac.sandbox.lt/auth/wiki/WhyWsgiMiddleware
What I need now is your opinion. Have I chosen the right path? What
are you missing in my solution (both
On Sun, Nov 23, 2008 at 6:48 PM, SystemicPlural [EMAIL PROTECTED] wrote:
I am trying to get Pylons working in Eclipse with Pydev (Ubuntu)
I can't get it to run or debug.
I've re-imported the python interpreter.
In the run dialog I have the main module as: /usr/bin/paster and
program
Hi,
building 'simplejson._speedups' extension
error: Setup script exited with error: None
It failed to build speedups. The main point is that speedups are not
required and you can avoid them. Try to follow this advice:
http://www.gossamer-threads.com/lists/python/python/635113#635113
I don't
Hi,
What I need now is your opinion. Have I chosen the right path? What
are you missing in my solution (both documentation and code)?
Definetly there are some bugs/problems as well.
Why don't you use repose.who ?
There are several reasons:
1) It is historical reason. If you search archive
contact.client=Session.query(ArkClient).filter(ArkClient.client=='clientName').first()
I'd expect something like:
contact.client=Session.query(ArkClient).filter(ArkClient.client.name=='clientName').first()
I just find it very strange how you use SQLAlchemy: Table, class and
mapper mixed into
On Fri, Nov 21, 2008 at 1:15 AM, Randy Syring [EMAIL PROTECTED] wrote:
I would like to be able to test my web applications from the
perspective of an actual user. Are there any tools that would let me
do something like:
c = Client(myapp)
r = c.get(/user/login)
r.checkfor('User Login')
Hi,
contact=ArkContact()
contact.client=Session.query(ArkClient).filter(ArkClient.client=='clientName
').first()
Session.add(contact)
Session.commit()
This does seem to work, but I just wanted to know if this is the 'correct'
way of doing things, it seems a little strange to me.
Many
Hi,
I'm having some troubles with FormEncode and internationalization.
What I'm trying to do is to make FE to display properly translated
messages for those form fields that are not valid. After a lot of
trials and errors I found that (using paster shell):
Any advice?
Maybe CSS file is cached in your browser? Ctrl+R might help.
Install firebug (if you are using firefox) and analyze result.
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
- either contains a very small form to log in
-either displays a message like, 'Welcome $user'
depending whether or not the user has logged in
Check for REMOTE_USER in env.
Regards,
Dalius
--~--~-~--~~~---~--~~
You received this message because you are
Jonathan Vanasco wrote:
Dalius-
Do you know the python OpenID libraries well? Prerhaps I could
convince you to help us with an openid plugin for our project ;)
I have a little bit experience with OpenID :-) There is one python
openid library that should be used usually. I have done a
Jose Galvez wrote:
Anyone using mod_wsgi with Apache? how good is that for deployment,
better/worse then mod_proxy with paster?
Jose
I'm using mod_wsgi with Apache for my personal server. I'm hosting two
pylons projects, trac and my public mercurial repositories (all WSGI
based). Together
lilinspace wrote:
II had pylons working with python 2.4 but now I have upgraded to
python 2.5. I tried running
Based on your description upgrade means I have installed python 2.5
version and expect it to be working magically. You must check where
/usr/bin/python points to (it is symbolic
Hi,
Saibot wrote:
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in
position 6: ordinal not in range(128)
Can anybody explain me what I am doing wrong?
Wrong encoding. \xdf is from cp125x or similar encoding. Try following:
v.decode('cp1250') or
Ian Bicking wrote:
evaling is generally a bad idea. You could consider it JSON or some
more limited serialization of data. Or put it in, say,
environ['x-wsgiorg.user_data'], a real dictionary.
Paste complains if the real dictionary is placed in environ. Isn't that
too strict?
Regards,
Olli Wang wrote:
Hi, I have a i18n string defined outside the Pylons Controller, it
could be collected by python setup.py extract_messages, I can
translate the string and compile it. But in the output page, don't
know why it always displays non-translated string. For example:
#
Olli Wang wrote:
Hi, Dalius. I had tried lazy_gettext, but don't know why the
lazy_gettext strings won't be collected after I run python setup.py
extract_messages, therefore, I couldn't translate the string. :(
If you are lazier than lazy_gettext do following:
lazy_gettext(_('your string'))
I
Olli Wang wrote:
Thanks, Dalius. It works. But I happened into another encoding issue:
global_test = lazy_gettext(_('Global Test'))
class HelloController(BaseController):
def test(self):
return str(global_test) # Works fine, returns the translated
string
def
Mike Orr wrote:
OpenID is a new and different kind of authentication system, so I
don't know if we've figured out the best way to integrate it yet.
Feedback from those who use OpenID would be helpful.
You should use it to figure out. I accept any way where you can login
and are not asked to
johnnyice wrote:
James Gardner already posted how to set the content type when using
the render object in the forum.
response.headers['Content-type'] = application/atom+xml
return render(template_file, atom-feed)
src:
app = HTTPExceptionHandler(app)
Example middleware:
http://hg.sandbox.lt/authform-middleware/file/2be2aba0a1b7/authform_middleware/authform.py
Generally you shouldn't throw expected exceptions outside of your
application. So HTTPExceptionHandler should be wrapping your
controllers
Jorge Vargas wrote:
this comes as a shock to me, I though authkit was defacto just like
mako, SA,etc. I'm just starting to read up on authkit, and so far I
though it only had outdated documentation, but the fact that noone has
back it up as a good path in this thread makes me wonder if I'm
Ian Bicking wrote:
Some time ago I wrote this up as a proposal for the basic way
authentication can work in WSGI:
http://wsgi.org/wsgi/Specifications/simple_authentication
I think most of the systems work pretty much like this, but I don't know
for sure.
Ian, that's exactly what I
Wichert Akkerman wrote:
There is an important lesson here: a very important, if not the most
important, factor for adaption of a tool such as AuthKit is the quality
of its documentation and how easy it is for complete newcomers to start
using it.
I don't agree here. AuthKit is good enough
Hello,
Yannick Gingras wrote:
First things first, I need to pick an authentication and authorization
solution. Last time I checked, around December, Authkit had a fancy
decorator syntax but it was a bit ill documented and featured many
strange way of authentication that obscured the most
Ian Bicking wrote:
It's still quite young, but worth checking out:
http://svn.repoze.org/repoze.who/trunk/
How many people are working on it? Will it not end like AuthKit because
no one writes plugin for it? You can write handlers/plugins for AuthKit
as well BTW.
Regards,
Dalius
jerryji wrote:
Dear Pyloners,
Greatly appreciated if someone can shed some light on how to return a
byte stream from my controller.
For example, I want /image/123 to return an image so that it could be
referenced in another page as img src=/image/123 alt=123 /
(similar discussion did
Schneider wrote:
Hi all,
When I put at my middleware app = authkit.authenticate.middleware(app,
app_conf, cookie_signoutpath = '/controller/signout') every thing
works great.
But if I put at my *.ini file the option authkit.cookie.signoutpath =
'/controller/singout' seems to me that
Have you worked with the SQLAlchemy database model at all yet?
If you mean something from AuthKit side I have not. At least not yet
;-) You will need to find here your path yourself and it would be
great if you share your experience. AuthKit is still in very early
state but that happens just
Hello,
I am attempting to setup unit testing with Pylons 0.9.6.1, AuthKit
0.4.0 and SQLAlchemy 0.4.0 using the AuthKit database driver.
...
Has anyone managed to these three work together and have functional
unit testing? Thanks for any advice or suggestions that you could
provide.
I
I currently use Firebug, but it leaves a lot to be desired (like a
stack trace).
FireBug is general purpose web development tool but usually it is
enough. If you need something more powerful you could try venkman
http://www.mozilla.org/projects/venkman/.
--
Dalius
http://blog.sandbox.lt
Hello,
I don't expect that someone will help but maybe someone with
experience already knows what I have done wrong.
I have pylons site running on mod_wsgi (Apache) using AuthKit
(OpenID). When I try to perform login operation and Authkit should
return '200 OK' it fails with error message:
On 10/29/07, Dalius Dobravolskas [EMAIL PROTECTED] wrote:
I have pylons site running on mod_wsgi (Apache) using AuthKit
(OpenID). When I try to perform login operation and Authkit should
return '200 OK' it fails with error message:
I forgot to add '301 Redirect' works as it should
Hello, Graham,
The WSGI 1.0 standard requires that any headers (name or value)
returned for a response are a string object, they cannot be unicode
objects. Thus, make sure you are producing string objects and not
unicode objects.
That's interesting when problem is in front of your eyes and
return render(action=func, controller=)
Maybe you need:
redirect_to(h.url_for(controller='', actions=''))
--
Dalius
http://blog.sandbox.lt
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
1 - 100 of 104 matches
Mail list logo