creating an abstraction layer class to manage resources

2012-02-18 Thread Fabio Dive
Hello all, I am not a pyramid expert and I am doing my best to develop further skills. Maybe my idea was already solved in a more elegant and more convenient way, so please, if you know that, answer me, it will be very appreciated. I am developing a project with SQLAlchemy and Beaker Session,

Re: Distribution not found error

2012-02-18 Thread Gael Pasgrimaud
On Sat, Feb 18, 2012 at 6:55 AM, Artur Daschevici a.daschev...@gmail.com wrote: Does anyone else have any other ideas...or any ideas on how to debug this better? Have you tried with the activate_this.py script ? http://pypi.python.org/pypi/virtualenv#using-virtualenv-without-bin-python At

What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Tjelvar
Have just run: $ ./env/bin/pcreate --scaffold=starter AppName $ cd AppName $ ./env/bin/python setup.py develop Which resulted in the directory AppName.egg-info being created: $ tree AppName.egg-info/ Taster.egg-info/ ├── dependency_links.txt ├── entry_points.txt ├── not-zip-safe ├── PKG-INFO

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Simon Yarde
http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#the-project-structure Hope that explains it! On 18 Feb 2012, at 16:16, Tjelvar tjelvar.ols...@gmail.com wrote: Have just run: $ ./env/bin/pcreate --scaffold=starter AppName $ cd AppName $ ./env/bin/python

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Simon Yarde
Actually, you want this for the detail on eggs.. http://peak.telecommunity.com/DevCenter/EggFormats On 18 Feb 2012, at 17:24, Simon Yarde simonya...@me.com wrote: http://docs.pylonsproject.org/projects/pyramid/en/1.3-branch/narr/project.html#the-project-structure Hope that explains it!

Re: creating an abstraction layer class to manage resources

2012-02-18 Thread Jonathan Vanasco
i tend to structure applications - python, php, whatever - like this: - I use multiple Database Handles. This is always at least a reader and a writer. On the database level, the reader is privileged to only select from databases, while the writer may read and write. If the application needs a

Re: creating an abstraction layer class to manage resources

2012-02-18 Thread Fabio Dive
On Sat, Feb 18, 2012 at 18:14, Jonathan Vanasco jonat...@findmeon.comwrote: i tend to structure applications - python, php, whatever - like this: - I use multiple Database Handles. This is always at least a reader and a writer. On the database level, the reader is privileged to only select

Re: creating an abstraction layer class to manage resources

2012-02-18 Thread Jonathan Vanasco
i personally wouldn' do that, because my SqlAlchemy classes are really just used for populating a read-only cache -- which is a dict -- and creating/editing records. in your case... and I'm just thinking out loud... 1. you could create an abstract class called CacheBacked, which your

Re: Limited traversal

2012-02-18 Thread Andrey Popp
On Fri, Feb 17, 2012 at 01:42:04AM +0400, Andrey Popp wrote: On Thu, Feb 16, 2012 at 12:09:36PM -0800, Mike Orr wrote: Second, how can I generate URLs to resources without loading the objects through this interface? The home page queries the 30 most recent incidents and displays links to

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Tjelvar
Dear Simon, Thank you for your response. I've had a look at the pages you highlighted. I've also experimented with running the command: $ .../env/bin/pserver development.ini before and after deleting the AppName.egg-info directory. The latter resulting in a distribution not found error:

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Mike Orr
On Sat, Feb 18, 2012 at 5:23 PM, Tjelvar tjelvar.ols...@gmail.com wrote: Dear Simon, Thank you for your response. I've had a look at the pages you highlighted. I've also experimented with running the command: $ .../env/bin/pserver development.ini before and after deleting the

Re: What are the files located in the AppName.egg-info used for?

2012-02-18 Thread Tjelvar
Dear Mike, Thank you for clarifying that. Tjelvar -- 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

Re: Limited traversal

2012-02-18 Thread Michael Merickel
On Sat, Feb 18, 2012 at 3:53 PM, Andrey Popp 8may...@gmail.com wrote: My use-case is different -- to allow User object to be attached on request without touching database (user id is encoded in authc cookie), but I think it should work for constructing lazy resource graph as well. In