Re: Adding Pylons 0.9.7 breaks 0.9.6 projects

2009-08-29 Thread Philip Jenvey


On Aug 14, 2009, at 9:59 PM, Jorge Vargas wrote:


 On Fri, Aug 14, 2009 at 7:50 PM, kochharkochhar...@gmail.com wrote:

 Hi all,

 Hi,

 I have a package repository which contains packages for pylons  
 0.9.6.1 After
 adding pylons 0.9.7 and it's dependent packages, my 0.9.6.1  
 projects stopped
 working.

  From looking at the requires.txt in pylons 0.9.6 egg it appears  
 that pylons is
 specifying it's dependencies in the FooPackage = x.y.z format.  
 Consequently,
 when I re-create my project environments, they get newer versions  
 of their
 dependencies which are not compatible with 0.9.6.1 (Notably Routes  
 and WebHelpers)

 It seems bad practice for pylons to specify it's dependencies in the
 FooPackage=x.y.z format; it's too easy to break something. Is  
 there a way
 around this so I don't need to create separate package repositories  
 for 0.9.6.1
 and 0.9.7

 I don't see this as bad format as a newer version is (in general a
 better less buggy version) that said they are two ways of fixing this.
 1- releasing 0.9.6.2 with a setup.py that excludes the new  
 incompatible versions
 2- using something like pip and it's requirements.txt file to fix  
 such issue.

Another alternative is to install both eggs with the -m (multi- 
version) option of easy_install, then explicitly require whatever  
version the app needs as early as possible during the app's  
initialization (like in middleware.py, or load_environment)

--
Philip Jenvey


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



user management (login, registration, etc.)

2009-08-29 Thread travis+ml-pylons
Hello, I'm an expert with python but a noob at pylons.

I'm trying to design a commercial web site with subscriptions service.

To teach myself pylons, I'm reading http://pylonsbook.com/

I got to the part about forms and started writing logic regarding
registering new users, logging in existing users, etc.

But I'm wondering now if someone has a tutorial or sample code on
how to do this... might save me some significant redesigns...

Anyone know of any resources on how to manage user subscriptions?
-- 
Obama Nation | My emails do not have attachments; it's a digital signature
that your mail program doesn't understand. | 
http://www.subspacefield.org/~travis/ 
If you are a spammer, please email j...@subspacefield.org to get blacklisted.


pgpC9Llue0rjj.pgp
Description: PGP signature


Re: user management (login, registration, etc.)

2009-08-29 Thread Chris Miles


On 30/08/2009, at 7:23 AM, travis+ml-pyl...@subspacefield.org wrote:

 Hello, I'm an expert with python but a noob at pylons.

 I'm trying to design a commercial web site with subscriptions service.

 To teach myself pylons, I'm reading http://pylonsbook.com/

 I got to the part about forms and started writing logic regarding
 registering new users, logging in existing users, etc.

 But I'm wondering now if someone has a tutorial or sample code on
 how to do this... might save me some significant redesigns...

 Anyone know of any resources on how to manage user subscriptions?

I recommend using repoze.who for authentication. It has worked really  
well for me 
http://wiki.pylonshq.com/display/pylonscookbook/Authentication+and+Authorization+with+%60repoze.who%60

You may also be interested in BlastOff, which is a Pylons project  
template I've put together to generate the boilerplate for a Pylons  
app with authentication, registration, email confirmation all pre- 
configured and working out of the box. http://pypi.python.org/pypi/BlastOff 
   If nothing else, it can be a useful reference for your own  
application.

Cheers,
Chris


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---