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,
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
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
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
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
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
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
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
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
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
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
%
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
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
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
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.
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
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
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,
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
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
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!!
#
21 matches
Mail list logo