[turbogears-commits] [1360] trunk/turbogears/identity/soprovider.py: merged r1353:1354 into trunk

2006-05-03 Thread dangoor
Title: [1360] trunk/turbogears/identity/soprovider.py: merged r1353:1354 into trunk Revision 1360 Author max Date 2006-05-03 10:12:07 -0500 (Wed, 03 May 2006) Log Message merged r1353:1354 into trunk Modified Paths trunk/turbogears/identity/soprovider.py Diff Modified:

[turbogears-commits] [1361] branches/1.0/turbogears/util.py: Adding helper function to determine the number of decimal digits within a

2006-05-03 Thread dangoor
Title: [1361] branches/1.0/turbogears/util.py: Adding helper function to determine the number of decimal digits within a Revision 1361 Author godoy Date 2006-05-03 15:01:28 -0500 (Wed, 03 May 2006) Log Message Adding helper function to determine the number of decimal digits within a

[turbogears-commits] [1364] trunk/turbogears/validators.py: Merging [1363] to the trunk.

2006-05-03 Thread dangoor
Title: [1364] trunk/turbogears/validators.py: Merging [1363] to the trunk. Revision 1364 Author godoy Date 2006-05-03 15:14:59 -0500 (Wed, 03 May 2006) Log Message Merging [1363] to the trunk. Modified Paths trunk/turbogears/validators.py Diff Modified:

[tg-tickets] Re: [TurboGears] #804: Upgrade MochiKit to 1.3.1

2006-05-03 Thread TurboGears
#804: Upgrade MochiKit to 1.3.1 --+- Reporter: kevin |Owner: anonymous Type: task | Status: closed Priority: normal|Milestone: 1.0b1 Component: MochiKit | Version:

[tg-tickets] [TurboGears] #823: TurboTunes song grid widget doesn't fill the box

2006-05-03 Thread TurboGears
#823: TurboTunes song grid widget doesn't fill the box -+-- Reporter: [EMAIL PROTECTED] | Owner: anonymous Type: defect | Status: new Priority: low | Milestone:

[tg-tickets] [TurboGears] #824: Number validator not working

2006-05-03 Thread TurboGears
#824: Number validator not working +--- Reporter: anonymous | Owner: anonymous Type: defect | Status: new Priority: normal | Milestone: Component: TurboGears |

[tg-tickets] Re: [TurboGears] #804: Upgrade MochiKit to 1.3.1

2006-05-03 Thread TurboGears
#804: Upgrade MochiKit to 1.3.1 --+- Reporter: kevin |Owner: anonymous Type: task | Status: closed Priority: normal|Milestone: 1.0b1 Component: MochiKit | Version:

[tg-tickets] [TurboGears] #825: [PATCH] fix saprovider + finalize abstraction

2006-05-03 Thread TurboGears
#825: [PATCH] fix saprovider + finalize abstraction +--- Reporter: [EMAIL PROTECTED] | Owner: anonymous Type: defect | Status: new Priority: normal | Milestone: 1.0b1

[tg-tickets] Re: [TurboGears] #825: [PATCH] fix saprovider + finalize abstraction

2006-05-03 Thread TurboGears
#825: [PATCH] fix saprovider + finalize abstraction +--- Reporter: [EMAIL PROTECTED] |Owner: anonymous Type: defect | Status: new Priority: normal |Milestone:

[tg-tickets] Re: [TurboGears] #781: SQLObject does not reconnect

2006-05-03 Thread TurboGears
#781: SQLObject does not reconnect ---+ Reporter: ghaering |Owner: anonymous Type: defect | Status: new Priority: normal |Milestone: Component: SQLObject |

[tg-tickets] [TurboGears] #827: Add decoding_filter section in quickstart app.cfg template

2006-05-03 Thread TurboGears
#827: Add decoding_filter section in quickstart app.cfg template -+-- Reporter: fredlin | Owner: anonymous Type: enhancement | Status: new Priority: normal | Milestone: 1.0

[tg-trunk] Refractor of identity package (please note refractor means move things around NOT changing it)

2006-05-03 Thread Jorge Vargas
Looking at the SAprovider and soprovider modules there is tons of repeated code. and since some people want to do a LDAP provider it will be wise to refractor this a bit.I Posted #783 a while ago but since noone is using saprovider it wasn't commited. What I'm thinking is transform

[tg-trunk] Re: 'tg_exception' in errorhandling in .9a5 out of sync with branch 1.0

2006-05-03 Thread Kevin Dangoor
On 5/2/06, Simon Belak [EMAIL PROTECTED] wrote: New exception handling was intentionally commited as a trunk-only feature. It will probably undergo some more changes as I am not convinced it is pulling it's own weight. However if there is general consensuses that the new tg_exception should

[tg-trunk] Re: #719 Pagination decorator, easy pagination and sorting

2006-05-03 Thread Kevin Dangoor
On 5/2/06, Jorge Godoy [EMAIL PROTECTED] wrote: Em Terça 02 Maio 2006 17:10, Claudio Martínez escreveu: It does sort when using the provided PaginateDataGrid, there's an example on the demo project. Sorry. I was commenting from memory. Somewere it was mentioned that it does 2 queries,

[tg-trunk] Re: Do you remember how we solved this error? TypeError: argument x must be str not unicode

2006-05-03 Thread Max Ischenko
Hi Jorge, You're passing unicode string to SQLObject which it (underlying db driver, to be precise) cannot handle. Here: user= user_class.by_user_name( user_name ) user_name must be encoded string here. I can speculate that it works on other machines either because they do not have

[tg-trunk] Re: Do you remember how we solved this error? TypeError: argument x must be str not unicode

2006-05-03 Thread Max Ischenko
I can speculate that it works on other machines either because they do not have decoding_filter enabled or use different DB API driver. That's the same everything :-) This is a checkout from my own repository, so all configurations are the same, so this is not in my code or

[tg-trunk] Re: Broken TurboJSON?

2006-05-03 Thread Joseph Tate
I was using jsonify() to turn my turbogears.i18n.tg_gettext.lazystring objects into str objects for my xmlrpc functions filtered through cherrypy.expose() instead of turbogears.expose(). Is there a better way to do that since jsonify() doesn't work anymore?

[tg-trunk] Re: Broken TurboJSON?

2006-05-03 Thread Jorge Godoy
Em Quarta 03 Maio 2006 15:32, Joseph Tate escreveu: I was using jsonify() to turn my turbogears.i18n.tg_gettext.lazystring objects into str objects for my xmlrpc functions filtered through cherrypy.expose() instead of turbogears.expose(). Is there a better way to do that since jsonify()

[tg-trunk] Re: Broken TurboJSON?

2006-05-03 Thread Joseph Tate
I don't want a string back. I want the dictionary with all the lazystrings converted to actual strings. jsonify() was easy to use because it simply did the evaluations. I'm wondering if there's another way to do it without writing my own sanitizer. (XMLRPC can't marshall those lazystring

[tg-trunk] Doubt with new logging configuration: your_project in both .cfg files.

2006-05-03 Thread Jorge Godoy
In a quickstarted project I see this in my sample-prod.cfg: [[loggers]] [[[your_project]]] level='ERROR' qualname='novoproj' handlers=['error_out'] and this in my dev.cfg: [[loggers]] [[[your_project]]] level='DEBUG' qualname='novoproj' handlers=['debug_out'] Is the name your_project

[tg-trunk] Re: Refractor of identity package (please note refractor means move things around NOT changing it)

2006-05-03 Thread jvanasco
i think all the common code should go into a single file identity.providers then create a directory for providers, and have them subclass / override identity.providers the reason why i suggest a new file, is just so that new providers are plugplay -- if somone writes an LDAP, to test we just

[tg-trunk] Re: Refractor of identity package (please note refractor means move things around NOT changing it)

2006-05-03 Thread jvanasco
also to add- i fixed saprovider (it doesn't work right now) the patch is here: http://trac.turbogears.org/turbogears/attachment/ticket/825 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears Trunk

[tg-trunk] Re: Refractor of identity package (please note refractor means move things around NOT changing it)

2006-05-03 Thread Roger Demetrescu
Hi jvanasco, The url is broken... It seems you copied the url when you have attached the patch.. And that is differente from the url to retrive the patch... :) You mean... http://trac.turbogears.org/turbogears/ticket/825 or more especific:

[tg-trunk] Re: Refractor of identity package (please note refractor means move things around NOT changing it)

2006-05-03 Thread jvanasco
well yes, but there are some new options for app.cfg that are explained in the Trac -- so i wanted to make sure people saw it ( although the options are defaulted to the current settings, and there are failsafes in the module itself to default to the current settings too )

[tg-trunk] Re: Broken TurboJSON?

2006-05-03 Thread Joseph Tate
For all posterity, this is how I finally did it. This chunk of code adds a new dispatch method to the xmlrpclib Marshaller class so that it can correctly handle tg_gettext.lazystring objects. #fix marshalling of tg_gettext.lazystring #This goes in your controller somewhere. import xmlrpclib

[TurboGears] Re: disable identity on static

2006-05-03 Thread jvanasco
It might be a good idea to put this off by default, then turn it on as needed, until some sort of caching system can be used -- a single page was costing me 22 database queries --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[TurboGears] Re: Turbogears 0.9.5a at Python-Hosting

2006-05-03 Thread Ivo Looser
Thanks Max and all other. I give a try again with the Documentation. Best Regards Ivo On 5/3/06, Max Ischenko [EMAIL PROTECTED] wrote: I use TG on python-hosting.com successfully. The trick was to use Ian Bicking's non-root python to install python, easy_install and TG in $HOME. I

[TurboGears] Re: disable identity on static

2006-05-03 Thread Jorge Vargas
yes your right, IMO identity shouldn't check in the db ALL the time.how about integrating the session from cherry py and make indentity go there from ones in a while?On 5/3/06, jvanasco [EMAIL PROTECTED] wrote: It might be a good idea to put this off by default, then turn it on asneeded, until

[TurboGears] Re: Summer of Code project idea

2006-05-03 Thread Adam Jones
It would be pretty interesting to have this as a widget or yet another decorator in turbogears (yadit?) Regardless it would be nice for things like document collaboration in a CMS. I think one of the other summer of code suggestions is a project to make turbogears widgets more or less platform

[TurboGears] last identity abstraction

2006-05-03 Thread jvanasco
the new identity is great, but there's one last issue with it (at least in my book) app.cfg supports this: identity.form.user_name=user_name identity.form.password=password identity.form.submit=login but it doesn't support this: identity.db.user_name_field=user_name

[TurboGears] Re: clearing session when browser closes

2006-05-03 Thread Andrew Grover
On 5/2/06, Claudio Martínez [EMAIL PROTECTED] wrote: Right now identity and session are provided by different filters using different cookies. So it's normal because they are not linked. I'm only seeing 1 cookie in use, and it's a session cookie, so it vanishes when the browser is closed.

[TurboGears] Re: clearing session when browser closes

2006-05-03 Thread venk
hi, there is a visit tracking part in turbogears (which i presume is used by identity framework) which is using cookies (because there are some configuration entries for cookie timeout and all) and these cookies seem to expire once the browser is closed. also, the session part of cherrypy

[TurboGears] Errors using the identity framework in TG 0.9a5

2006-05-03 Thread Dark Lil'Troll
Hi every body. I just finish to read the last tutorial about identity management, so I download the 0.9a5 release of turbogears, using easy_install. If I 'quickstart' a project without identity managemene,t no problems, everything seems ok. But ... If I 'quickstart' a new project dealing with

[TurboGears] Re: Identity Module Stability

2006-05-03 Thread Jeff Watkins
A visit represents a contiguous (or as nearly contiguous as we can get with the Web) session of interaction with your Web application. Pushing the expiry out indefinitely defeats this purpose. Other things may tie into the visit key like content popularity and it would be difficult to correlate if

[TurboGears] Re: Errors using the identity framework in TG 0.9a5

2006-05-03 Thread Jorge Vargas
did you activated the lines in the config to point to your model classes? it seems like identity is trying to load the old classes, that are still there for backward compatibility. On 5/3/06, Dark Lil'Troll [EMAIL PROTECTED] wrote: Hi every body.I just finish to read the last tutorial about

[TurboGears] Re: Errors using the identity framework in TG 0.9a5

2006-05-03 Thread lateef jackson
Fromyour email it looks like you have a table named 'user'? If so one of the problems you will have if you don't have it already is that 'user' is a reserved word. On 5/3/06, Jorge Vargas [EMAIL PROTECTED] wrote: did you activated the lines in the config to point to your model classes? it seems

[TurboGears] Re: last identity abstraction

2006-05-03 Thread Kevin Dangoor
On 5/3/06, jvanasco [EMAIL PROTECTED] wrote: the new identity is great, but there's one last issue with it (at least in my book) app.cfg supports this: identity.form.user_name=user_name identity.form.password=password identity.form.submit=login but it doesn't support this:

[TurboGears] Fwd: Seeking students for the Summer of Code

2006-05-03 Thread Kevin Dangoor
Now's your chance! Submit an application to Summer of Code if you want a shot at $4500 to work on TurboGears-related technology this summer! -- Forwarded message -- From: Neal Norwitz [EMAIL PROTECTED] Date: May 3, 2006 3:15 AM Subject: Seeking students for the Summer of Code To:

[TurboGears] Re: Identity Module Stability

2006-05-03 Thread Travis Bradshaw
Ah, right. Sorry. I haven't even started researching the problem yet and botched the naming convention a little. Generally speaking, it sounds like this is probably stable enough for me to get started. Thank you for the commentary, everyone. -- Travis

[TurboGears] Re: Identity Module Stability

2006-05-03 Thread Andrew Grover
On 5/3/06, Jeff Watkins [EMAIL PROTECTED] wrote: Instead, how about serving an explicit cookie (tg_persistent_user?) that contains a key mapping the visitor to an identity record? You would probably want to put some safeguards in there via signing the cookie, but that's not particularly hard.

[TurboGears] Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Evan Rosson
Hey all, I'd like to create a tool to help with SQLAlchemy schema migration a bit. I've been interested in this for a while now (ie. I'm not just blindly copying a suggestion from this mailing list) - I'm working on a TG project which I know will have a good number of database changes later on

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Kevin Dangoor
On 5/3/06, Evan Rosson [EMAIL PROTECTED] wrote: I'd like to create a tool to help with SQLAlchemy schema migration a bit. I've been interested in this for a while now (ie. I'm not just blindly copying a suggestion from this mailing list) - I'm working on a TG project which I know will have a

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Michele Cella
Evan Rosson wrote: Hey all, I'd like to create a tool to help with SQLAlchemy schema migration a bit. I've been interested in this for a while now (ie. I'm not just blindly copying a suggestion from this mailing list) - I'm working on a TG project which I know will have a good number of

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Matt Good
On Wed, 2006-05-03 at 15:23 -0400, Kevin Dangoor wrote: On 5/3/06, Evan Rosson [EMAIL PROTECTED] wrote: I'd like to create a tool to help with SQLAlchemy schema migration a bit. I've been interested in this for a while now (ie. I'm not just blindly copying a suggestion from this mailing

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Roger Demetrescu
Cool !!! I didn't know this tool... Went to my del.icio.us... :) Thanks for the tip... On 5/3/06, Matt Good [EMAIL PROTECTED] wrote: There's a tool written in Python called xml2ddl for working with XML representations of a schema. It allows you to generate the SQL to convert one schema

[TurboGears] 0.9a5 identity (traceback included)

2006-05-03 Thread Rune Hansen
Hi, I've created a project with 09a5 using identity. Everything is at default values.I've made sure that identity works with these default values.Now, I'm trying to follow the "advice" in model.py:class User(SQLObject):    """    Reasonably basic User definition.

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread jvanasco
aprprove this application, please please please --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group,

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Simon Belak
jvanasco wrote: aprprove this application, please please please Will try. ;) Cheers, Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to

[TurboGears] Re: last identity abstraction

2006-05-03 Thread jvanasco
thanks. i put the patch in ticket 825 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Evan Rosson
This is not a problem that I've studied in great detail. However, I understand that doing it automatically is dangerous and fraught with peril. No doubt of that. Automation can't cover everything, and sometimes it's wrong. That said, there's a lot of really simple cases where some automation

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Evan Rosson
Hey, that's pretty cool. Thanks! There's a tool written in Python called xml2ddl for working with XML representations of a schema. It allows you to generate the SQL to convert one schema to another. http://xml2ddl.berlios.de/ -- Matt Good [EMAIL PROTECTED]

[TurboGears] Re: Summer of Code - SQLAlchemy schema migration

2006-05-03 Thread Justin Johnson
I've looked into doing this myself and brought it up a while ago (do a google groups search). IMHO, the best way to achieve it is to take stock from RoR migrations. Trying to automate this process is fraught with caveats and gotchas and just isn't worth it. The RoR solution is to

[TurboGears] .9 website documentation section is cumbersome

2006-05-03 Thread modmans2ndcoming
there needs to be next and previous links on the documentation pages if you are not going to have a monolithic page for the doc text. The constant back and forth is horrible. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[TurboGears] problem starting cherrypy up.

2006-05-03 Thread modmans2ndcoming
When I start a project that uses identity (with sqlobject), I cannot get cherrypy up completely. It works fine when not using the identity option. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group.

[TurboGears] where does identity hijack the request to attempt an authentication?

2006-05-03 Thread jvanasco
i've got a bug in my app -- somehow this is happening when i click login REQUEST identity_from_request logged POST /login HTTP/1.1 NEW REQUEST (internal redirect?) identity_from_request run exposed controller

[TurboGears] Re: problem starting cherrypy up.

2006-05-03 Thread Jorge Godoy
Em Quarta 03 Maio 2006 22:04, modmans2ndcoming escreveu: When I start a project that uses identity (with sqlobject), I cannot get cherrypy up completely. It works fine when not using the identity option. It works here. Can you say what happens, paste the error messages here, etc.? --

[TurboGears] Simple SQLobject example

2006-05-03 Thread venk
hi, I am using TG o.9a5. Can some one give me a simple example of how to write a one to many relationship for this version? because the documentation on the sql object's site seems to be broken. by looking at the User and Group objects used by the identity framework, i too tought of adding a