Re: 3rd party client applications accessing pylons model over a local network

2009-09-11 Thread Jules Stevenson
What do you mean when you say importing a slightly modifed model on each client machine? How different is it and why? I had to change the binding in the model file, so originally it read: Session = scoped_session(sessionmaker(autoflush=True, transactional=True,

Re: 3rd party client applications accessing pylons model over a local network

2009-09-11 Thread Jules Stevenson
The main differences I've seen with MySQL compared to SQLite off the top of my head are: - Rigid column lengths (SQLite stores long values; MySQL truncates them with a warning) - Different date handling functions (you'll need if-blocks in your code; e.g., if engine.name==mysql) - Different

Re: 3rd party client applications accessing pylons model over a local network

2009-09-10 Thread Jules Stevenson
Is there some reason you can't connect to the database remotely? That's the most efficient way. Hi Mike, Yes, I've kind of found that trying to do stuff through JSON is not really going to hack it. As it's an Intranet I'm currently installing sqlalchemy and importing a slightly modifed model

Re: Adjacency list problem [sqlachemy]

2009-08-13 Thread Jules Stevenson
Will do, thanks. On Thu, Aug 13, 2009 at 2:00 AM, Chris Miles miles.ch...@gmail.com wrote: I recommend asking on the SQLALchemy list. There'll be a much greater expertise available there to help you out. Cheers Chris --~--~-~--~~~---~--~~ You received this

Time out beaker session?

2009-02-06 Thread Jules Stevenson
Hi All, Is it possible to make the beaker session time out / delete itself after a period of inactivity? I'd like it so that when a user doesn't use the site for x amount of time the session is deleted, forcing the user to re log in [user name is stored in the session]. Many thanks, Jules

waitfor it and pylons debugger, WAS: Running a program without waiting for it to finish

2009-01-07 Thread Jules Stevenson
Hi Ian, I didn't notice this thread first time around, but you might find WaitForIt (http://pythonpaste.org/waitforit/) helpful for cases like these; you could write the code as blocking and let WaitForIt deal with the long-running aspect. (Assuming it runs for a long time, but eventually

RE: Running a program without waiting for it to finish

2009-01-02 Thread Jules Stevenson
I need my app to be able to compile and run a performance test. then gather the results and display the results in a relevant way. the tests are written in autoHotKey which is a windows scripting program. so to run a test all i need to do is call the file from the command line. snip This

RE: Problem with pylons install on win XP 32

2008-12-19 Thread Jules Stevenson
You should work with Python 2.5, or maybe you could use 0.9.7rc Not really an option, we're tied into 2.6 [64 bit windows - nice :P] because that's the version the 3d app we use predominantly here uses. --~--~-~--~~~---~--~~ You received this message because

RE: Problem with pylons install on win XP 32

2008-12-18 Thread Jules Stevenson
Hi All, I've been trying to get pylons up and running on a win 32bit XP box under python 2.6.1. Easy install worked up until the json errors, I then manually installed the rest of the dependancies. JSON I ran without speedups, and therefore bypassed the failure to install. snip It was

Problem with pylons install on win XP 32

2008-12-17 Thread Jules Stevenson
Hi All, I've been trying to get pylons up and running on a win 32bit XP box under python 2.6.1. Easy install worked up until the json errors, I then manually installed the rest of the dependancies. JSON I ran without speedups, and therefore bypassed the failure to install. When I try and setup

[no subject]

2008-12-04 Thread Jules Stevenson
Hi All, I'm building an intranet based office management 'thing'. It has a lot to do with automating project setup, folder creation, various start up scripts etc. One snag that I've hit is I seem unable to access mako template files that are outside of the pylons project. For example %

Forcing mako to access templates outside of the pylon app?

2008-12-04 Thread Jules Stevenson
apologies for the repost, accidentally omitted a subject line previously Hi All, I'm building an intranet based office management 'thing'. It has a lot to do with automating project setup, folder creation, various start up scripts etc. One snag that I've hit is I seem unable to access mako

RE: newb: Correct way to set a SQLalchemy 'relation'

2008-11-20 Thread Jules Stevenson
Hi Dalius, Thanks for getting back to me. Never seen it done this way. Even if it works it does not look correct way. It looks hard to understand and in some sense it is unpythonic - other developers will have hard time to understand it. Just look at pylons tutorials how it is done. I have

RE: newb: Correct way to set a SQLalchemy 'relation'

2008-11-20 Thread Jules Stevenson
Hey Dalius, contact.client=Session.query(ArkClient).filter(ArkClient.client=='clien tName').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

RE: Pylons and Python 2.6 (Was: Re: go-pylons.py broken on Python 2.6 in Windows?)

2008-11-19 Thread Jules Stevenson
I'm running Pylons 9.6 under vista 64bit on Python 2.6 64bit. To say it has been a mission to get it working is somewhat of an understatement. Setuptools / easy install is broken under 64bit windows - the exe files it ships with are 32bit and therefore spit blood when trying to execute [i.e.

Purge/empty request.get?

2008-11-13 Thread Jules Stevenson
Hi, Is there a simple way to remove the request.get variables? I have a page that uses .GET to store a load of form elements data as the page can be resent to the controller at any time [onchange event on a select] but is not actually stored at this time, and these get vars are used to

Pylons docs are down

2008-11-11 Thread Jules Stevenson
The docs section on the pylons site is not working. Cheers, Jules --~--~-~--~~~---~--~~ 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

newb: Correct way to set a SQLalchemy 'relation'

2008-11-10 Thread Jules Stevenson
Hi List, I'm stumbling slightly blind and just wanted to check if there is a smarter way of doing what I'm doing. I'm using declarative classes to make the DB, and example class below: class ArkContact(Base): all contacts __tablename__ = 'contacts' id = Column(Integer,

newbie: Passing c values through a re_direct?

2008-10-27 Thread Jules Stevenson
Hi List, I'm very green to pretty much everything web framework related, so apologies in advance... Basically my problem is that I want to be able to access 'c' object values after a 'redirect_to' call. I'm guessing from tests that I've done that this isn't possible. The idea behind this is I

RE: newbie: Passing c values through a re_direct?

2008-10-27 Thread Jules Stevenson
If you just want to show a message on the destination page, webhelpers.pylonslib.Flash will do that. If you need something more elaborate, you'll have to pass the data as query parameters, cookies, or save it in the session (the pylons.session, not the SQLAlchemy Session). Saving it in

RE: newbie: Passing c values through a re_direct?

2008-10-27 Thread Jules Stevenson
Saving it in the session is the most convenient, and is how Flash works. I'm not sure what I'm doing, but the session object dosen't seem to be holding any values, this is how I'm trying to manipulate the session object: def formProjectAdd(self): # # validate!! #