Re: [Webware-discuss] MiddleKit Threading Error?

2008-11-10 Thread Christoph Zwerschke
Roger Haase schrieb: > I have downloaded the latest version of MiddleObject.py and verified > that putting the lock on the class level works for me. Per your > previous messages, it looks like you have already processed the 3 > other MiddleKit changes in the queue. Good to hear. Yes, I wanted to

Re: [Webware-discuss] MiddleKit Threading Error?

2008-11-10 Thread Roger Haase
--- On Tue, 11/4/08, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > From: Christoph Zwerschke <[EMAIL PROTECTED]> > Subject: Re: [Webware-discuss] MiddleKit Threading Error? > To: "Discussion of Webware for Python including feedback and proposals." > > D

Re: [Webware-discuss] MiddleKit Threading Error?

2008-11-06 Thread Christoph Zwerschke
Christoph Zwerschke schrieb: > Btw, I was trying to run the MiddleKit test suite, but I get many > errors. For instance when running "python Test.py MKDelete" I get a > "Lock wait timeout exceeded" (this hasn't anything to do with the lock > in the patch, I get it also without your patch). I ha

Re: [Webware-discuss] MiddleKit Threading Error?

2008-11-04 Thread Christoph Zwerschke
Roger Haase schrieb: > I had to revise your new MiddleObject.py to put the "_mk_cacheLock = > threading.RLock()" statement at the module level rather than in the > MiddleObject __init__ method. A new MiddleObject instance is being > created with each request so putting the lock inside the object

Re: [Webware-discuss] MiddleKit Threading Error?

2008-11-04 Thread Roger Haase
--- On Sun, 11/2/08, Christoph Zwerschke <[EMAIL PROTECTED]> wrote: > From: Christoph Zwerschke <[EMAIL PROTECTED]> > Subject: Re: [Webware-discuss] MiddleKit Threading Error? > To: [EMAIL PROTECTED], "Discussion of Webware for Python including feedback > an

Re: [Webware-discuss] MiddleKit Threading Error?

2008-11-02 Thread Christoph Zwerschke
Roger Haase schrieb: > My revised solution is to put the lock at the beginning and end of the method. I never used MiddleKit, so I don't know how to test this, but since it looks reasonable I've checked this in anyway, and cleaned up MiddleObject.py a bit. Can you check whether this works for yo

Re: [Webware-discuss] MiddleKit Threading Error?

2008-10-22 Thread Roger Haase
--- On Sun, 10/19/08, Roger Haase <[EMAIL PROTECTED]> wrote: > From: Roger Haase <[EMAIL PROTECTED]> > Subject: MiddleKit Threading Error? > To: webware-discuss@lists.sourceforge.net > Date: Sunday, October 19, 2008, 3:46 PM > I last reported this problem back on May 22, 2004. I am not > sure

[Webware-discuss] MiddleKit Threading Error?

2008-10-19 Thread Roger Haase
I last reported this problem back on May 22, 2004. I am not sure what I have been doing different lately, but I have encountered the problem on both my test system and my production system this past month. I have never been able to reproduce this problem at will. The problem last went away wi

Re: [Webware-discuss] MiddleKit Schema Upgrade

2006-09-07 Thread Seth Remington
On Thu, 2006-09-07 at 09:45 -0700, Chuck Esterbrook wrote: > On 9/7/06, Seth Remington <[EMAIL PROTECTED]> wrote: > > Hello All, > > > > I am using MiddleKit in an open source application and as most projects > > go it is expanding and evolving, and the database structure is evolving > > with it. >

Re: [Webware-discuss] MiddleKit Schema Upgrade

2006-09-07 Thread Chuck Esterbrook
On 9/7/06, Seth Remington <[EMAIL PROTECTED]> wrote: > Hello All, > > I am using MiddleKit in an open source application and as most projects > go it is expanding and evolving, and the database structure is evolving > with it. > > So now I have a requirement to provide a convenient upgrade path for

[Webware-discuss] MiddleKit Schema Upgrade

2006-09-07 Thread Seth Remington
Hello All, I am using MiddleKit in an open source application and as most projects go it is expanding and evolving, and the database structure is evolving with it. So now I have a requirement to provide a convenient upgrade path for users that includes database schema changes. MiddleKit is wonder

Re: [Webware-discuss] MiddleKit

2006-04-07 Thread marcelo schiavone
HI I solved the problem of the following way: class Est(SQLObject): class sqlmeta: idName="IDEst" Descripcion = StringCol() Regards --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language

Re: [Webware-discuss] MiddleKit

2006-03-17 Thread marcelo schiavone
Thank you for the answers, I am going to realize tests, then I comment to them on the results that I obtained. Regards --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile

Re: [Webware-discuss] MiddleKit

2006-03-15 Thread sophana
marcelo schiavone wrote: Hi, does someone know the way of doing that "MiddleKit" works with a remote (existing) database, using MSSQL? The database already exists and the idea is to realize an application in Webware in another PC that accedes to the above mentioned database using MiddleKit. Re

Re: [Webware-discuss] MiddleKit

2006-03-14 Thread Chuck Esterbrook
On 3/14/06, marcelo schiavone <[EMAIL PROTECTED]> wrote: > Hi, does someone know the way of doing that "MiddleKit" works with a > remote (existing) database, using MSSQL? > > The database already exists and the idea is to realize an application > in Webware in another PC that accedes to the above m

[Webware-discuss] MiddleKit

2006-03-14 Thread marcelo schiavone
Hi, does someone know the way of doing that "MiddleKit" works with a remote (existing) database, using MSSQL? The database already exists and the idea is to realize an application in Webware in another PC that accedes to the above mentioned database using MiddleKit. Regards. ---

[Webware-discuss] MiddleKit status

2005-05-27 Thread Juarez Rudsatz
Saudações, I am in process of choosing the tecnology for the new website. Webware seems to be amazing for developing a web application. But I have some doubts about building the infrastructure: - Middlekit does not support Postgresql. There are any other way or workaround? - H

[Webware-discuss] MiddleKit

2005-05-08 Thread Vytautas Bruzgis
    ---Original Message---   From: Vytautas Bruzgis Date: 05/08/05 13:11:50 To: [EMAIL PROTECTED] Subject: MiddleKit     Hello, i am new at Webware and i am trying to use MiddleKit as it is described in http://webware.sourceforge.net/Webware-0.7/MiddleKit/Docs/QuickStart.html#Next (M

[Webware-discuss] MiddleKit DateTime problem - Python 2.3

2005-01-27 Thread jacob martinson
Hi, I am having a problem with MiddleKit. I think the generated code is not handling datetime data correctly. Can save datatime data ok (it populates the table correctly) but when I try to retrieve objects, I get an exception like this: Traceback (most recent call last): File "./NSC.py", line

Re: [Webware-discuss] MiddleKit problem

2005-01-26 Thread Seth Remington
It sounds like you are traveling down the exact same path I went down a few weeks ago ;) I was getting a similar MySQL "max connections exceeded" error as well. The fix for me was to configure MiddleKit to use an SQL connection pool. In your model's Settings.config file add the following: 'SQLConn

Re: [Webware-discuss] MiddleKit problem

2005-01-25 Thread jacob martinson
I only have one ObjectStore object, but it will be handling persistance for several hundred other objects. Here's the code that was causing the problem (after I made a change to the ObjectStore code to make it work with the newer python/mysql lib per instructions earlier in this thread): import o

Re: [Webware-discuss] MiddleKit problem

2005-01-25 Thread Winston Wolff
How many ObjectStore objects do you have living? I believe you are only supposed to have one instance for your entire application. I had a lot of trouble with running out of connections when I first started using MiddleKit, and as I recall I fixed it by making a global MySQLObjectStore instance.

Re: [Webware-discuss] MiddleKit problem

2005-01-25 Thread jacob martinson
I think this creates another problem. A new connection/cursor is created for every object that is stored when you call "store.saveChanges()". If my mysql max_connections variable is less than the number of objects I have to commit, I'll get an exception like this: Traceback (most recent call las

Re: [Webware-discuss] MiddleKit problem

2005-01-25 Thread Seth Remington
Actually I think it was a change in the MySQLdb API. I believe that insert_id() moved from the cursor object to the connection object in the latest versions. I've fixed it either by installing an older version of MySQLdb or by editing MySQLObjectStore.py to: def retrieveLastInsertId(self, conn, c

[Webware-discuss] MiddleKit problem

2005-01-25 Thread jacob martinson
Hi, I was just trying out middlekit for the first time and ran into a problem. I was following the quick start guide and when I tried running the code with "store.saveChanges()" in main, I get this error: $ ./main.py Traceback (most recent call last): File "./main.py", line 31, in ? main(

[Webware-discuss] MiddleKit MySQLObjectStore question

2004-09-28 Thread carl :: allgigs.com
Hi, I'm new both to Python and Webware, so please excuse my ignorance if it's an obvious answer! I'm using the latest CVS version of Webware, if that has any impact. I have two classes defined in my Classes.csv (Some fields removed for clarity) : Class,Attribute,Type,Default,isRequired,Min,Max,

[Webware-discuss] MiddleKit Postgres support passes test suite

2004-09-17 Thread Jason Hildebrand
Woohoo! RESULTS --- succeeded MKBasic.mkmodel succeeded MKNone.mkmodel succeeded MKString.mkmodel succeeded MKDateTime.mkmodel succeeded MKEnums.mkmodel succeeded MKDefaultMinMax.mkmodel succeeded MKTypeValueChecking.mkmodel succeeded MKInheritance.mkmod

Re: [Webware-discuss] MiddleKit broken or major design change in CVS head?

2004-08-26 Thread Roger Haase
--- Chuck Esterbrook <[EMAIL PROTECTED]> wrote: > Not to worry. As the author of MiddleKit I also have older projects > that I don't want broken (and don't feel like upgrading). > Consequently, when I make changes like this, I always add an option > to get the old behavior. In this case, the set

Re: [Webware-discuss] MiddleKit broken or major design change in CVS head?

2004-08-25 Thread Chuck Esterbrook
On Tue, 24 Aug 2004 10:57:52 -0700 (PDT), Roger Haase wrote: > The current CVS head for Middlekit now generates and expects the > serialNum field for all SQL tables to be called "serialNum" where > before the serialNum field for each table would be called > + "Id". > > This breaks a lot of existin

[Webware-discuss] MiddleKit broken or major design change in CVS head?

2004-08-24 Thread Roger Haase
The current CVS head for Middlekit now generates and expects the serialNum field for all SQL tables to be called "serialNum" where before the serialNum field for each table would be called + "Id". This breaks a lot of existing code as all SQL tables created with prior versions will not work. He

Re: [Webware-discuss] MiddleKit with SQL Server

2004-08-06 Thread soif
On Thursday 29 July 2004 01:36, Dennis Kertis wrote: > I'm having some trouble using MiddleKit with SQL > Server. I'm trying to go through the quick start guide > and ran into some issues. The first problem I had was > connecting to the database. However, I added a DSN > and changed the parameter

[Webware-discuss] MiddleKit with SQL Server

2004-07-29 Thread Dennis Kertis
I'm having some trouble using MiddleKit with SQL Server. I'm trying to go through the quick start guide and ran into some issues. The first problem I had was connecting to the database. However, I added a DSN and changed the parameters including the connection string in the MiddleKit.Run.MSSQLObj

[Webware-discuss] MiddleKit Threading Problem

2004-05-22 Thread Roger Haase
It has been almost two years, but I have once again hit an abend in MiddleObject.py (line 75 in 8.1): assert len(cache)+1==len(row) On my last reported incident, I had been encountering this problem every several months, and the suggestion was made to upgrade to 7.1. That seemed to have fixed

Re: [Webware-discuss] MiddleKit .mkmodel mode

2003-09-19 Thread Ian Bicking
On Friday, September 19, 2003, at 03:53 AM, Tripp Lilley wrote: [1] I plan to add more highlighting rules, better faces, etc., and would like to borrow outline mode's expand / collapse features, but that ain't happenin' tonight. Or ever, realistically. Right, Ian? :-) By tomorrow you'll probably

[Webware-discuss] MiddleKit .mkmodel mode

2003-09-19 Thread Tripp Lilley
Here's a minimalist[1] major mode to give the .mkmodel CSV files some syntax highlighting in emacs-like operating systems, er, editors. Tested only under XEmacs, but I don't think it does any mojo that would break GNU Emacs. Props to Andrew Cosgriff's itty-bitty procmail mode on this page:

RE: [Webware-discuss] MiddleKit vs sqlobject

2003-09-09 Thread Mark Mueller
thing? Someone please correct me. > > Also, has anyone looked at Modeling? > http://modeling.sourceforge.net/ > > -Original Message----- > From: mike [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 04, 2003 4:00 AM > To: [EMAIL PROTECTED] > Subject: [Webware-discuss] Middl

Re: [Webware-discuss] MiddleKit vs sqlobject

2003-09-09 Thread Ian Bicking
On Thursday, September 4, 2003, at 02:59 AM, mike wrote: I am just wondering whether somebody could briefly compare sqlbject (or any similar module) with MiddleKit. Personally, sqlobject looks to me more flexible for basic database operations, but it would be nice to know what others prefer to us

RE: [Webware-discuss] MiddleKit vs sqlobject

2003-09-09 Thread Ian Sparks
3 4:00 AM To: [EMAIL PROTECTED] Subject: [Webware-discuss] MiddleKit vs sqlobject I am just wondering whether somebody could briefly compare sqlbject (or any similar module) with MiddleKit. Personally, sqlobject looks to me more flexible for basic database operations, but it would be nice to know

Re: [Webware-discuss] MiddleKit vs sqlobject

2003-09-04 Thread Frank Barknecht
Hallo, mike hat gesagt: // mike wrote: > I am just wondering whether somebody could briefly compare sqlbject > (or any similar module) with MiddleKit. Personally, sqlobject looks > to me more flexible for basic database operations, but it would be > nice to know what others prefer to use with WebK

[Webware-discuss] MiddleKit vs sqlobject

2003-09-04 Thread mike
I am just wondering whether somebody could briefly compare sqlbject (or any similar module) with MiddleKit. Personally, sqlobject looks to me more flexible for basic database operations, but it would be nice to know what others prefer to use with WebKit. Thanks, mike --

[Webware-discuss] Middlekit Default Dates?

2003-04-02 Thread Kevin Dahlhausen
I'm having trouble setting default dates for Middlekit objects. It is using mxDate and Time. My classes.csv looks like this: UserDemographics ,birthday, 1968-03-17 When generating the code, the following exception is thrown: Generating SQL... Generating Python... Traceback (most recent call

Re: [Webware-discuss] MiddleKit versus ZODB

2003-03-01 Thread Edmund Lian
Thanks to all for the discussion about MiddleKit vs ZODB. It was enlightening, to say the least. I've not used either so far, preferring to work directly with the underlying RDBMS since the schema I've been using were very complex--4-6 table joins, etc. I'll give MiddleKit a shot on the next proj

[Webware-discuss] MiddleKit Object Versioning

2003-02-28 Thread Martin Virtel
> I haven't needed transactions or record versioning in my applications. > I'm amenable to MiddleKit enhancements in this area, however. I'm going to build an abstract VersionedObject MiddleKit object class next week because I need one for a wiki-esque application where users can change each othe

[Webware-discuss] MiddleKit relationships

2003-02-28 Thread Robert A. Gottlieb
Hi all, I have a master entity Entry and a detail entity Variant. I created the csv file with a column named variant in Entry that is of type list of Variant. In the Variant class (of the csv file) I have entry of type Entry In my code: entry = Entry() # set several attributes, then entry.add

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread John Holland
I'm going to jump in here though I know I'm _way_ out of my league replying to Chuck and IanI'm just a hacker who likes Webware I got interested in ZODB and tinkered with it some, and also saw that it could play nice with Webware. It seems to me it could be a nice combination for situation

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Chad Walstrom
On Fri, 2003-02-28 at 09:37, Edmund Lian wrote: > I was reading one of Kuchling's write-ups about ZODB and ZEO last > night (http://www.amk.ca/zodb/zodb-zeo.html), and was wondering why > people use MiddleKit instead of ZODB. Simplicity, interactivity with an often required RDBMS, and speed. The

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Ian Bicking
On Fri, 2003-02-28 at 09:37, Edmund Lian wrote: > I have a question... please don't get offended by it, I don't mean it to be > offensive... No one should be offended by such a question... > While I'm not a great fan of object oriented DBs, I do see a role for them > in providing persistence when

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Chuck Esterbrook
On Friday 28 February 2003 07:37 am, Edmund Lian wrote: > I have a question... please don't get offended by it, I don't mean it > to be offensive... > > While I'm not a great fan of object oriented DBs, I do see a role for > them in providing persistence when the demands of an application are > lig

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Stephan Diehl
On Friday 28 February 2003 16:37, you wrote: > I have a question... please don't get offended by it, I don't mean it to be > offensive... > > [...] > > There hasn't been much discussion of using/integrating ZODB/ZEO into > Webware as a standard persistence tool. Am I missing something? Probably no

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Jim Bucher
I have never used an OODB, so I might be wrong, but I have always seen their weakness to be flexibility. You will get stuck with the objects you use for a particular application. With a relational DB you can map the data to any type of object. It is a little more complex because of the extra ma

Re: [Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Nick Murtagh
Edmund Lian wrote: Why bother trying to persist to a relational DB if you can't really get at the full power of the relational model through MiddleKit (or any other ORM The most obvious reason would be for compatibility with an existing application sharing the same database... ---

[Webware-discuss] MiddleKit versus ZODB

2003-02-28 Thread Edmund Lian
I have a question... please don't get offended by it, I don't mean it to be offensive... While I'm not a great fan of object oriented DBs, I do see a role for them in providing persistence when the demands of an application are lightweight (and don't require all the good stuff that relational DBs

Re: [Webware-discuss] Middlekit question.... Bug or not?

2003-02-18 Thread Jason Hildebrand
On Tue, 2003-02-18 at 05:15, Bogdan wrote: > I have Webaware8 > I have error > > File "/var/Webware/WebKit/averest/index.py", line 35, in writeHTML > self.ViewCustomers() > File "/var/Webware/WebKit/averest/index.py", line 85, in ViewCustomers > stor.readModelFileNamed('/var/Webware/Web

[Webware-discuss] Middlekit question.... Bug or not?

2003-02-18 Thread Bogdan
I have Webaware8 I have error File "/var/Webware/WebKit/averest/index.py", line 35, in writeHTML self.ViewCustomers() File "/var/Webware/WebKit/averest/index.py", line 85, in ViewCustomers stor.readModelFileNamed('/var/Webware/WebKit/averest/Billing') File "./MiddleKit/Core/ModelUser.

[Webware-discuss] Middlekit: MySQLObjectStore Question (Too many connections)

2003-02-10 Thread Jeff Ellen
Hi- I had a quick question about the MySQLObjectStore in Middlekit. Is there a 'close()' or some other such method that I am missing out on? I think the 'persistent store' is a little too persistent. Whenever I call MySQLObjectStore.fetchObjectsOfClass() a connection is opened to MySQL that perf

[Webware-discuss] Middlekit and Postgres and a Bug

2003-01-04 Thread Kevin Dahlhausen
I've been working with the Postgres patches for Middlekit and found a bug in the PostgreSQLObjectStore. New objects can be added to the store just fine, but changes to objects are not saved. I've tracked the problem down to the fact that the connection used to commit the changes after all are exe

Re: [Webware-discuss] MiddleKit objects in session store?

2002-11-27 Thread Jason Hildebrand
On Wed, 2002-11-27 at 00:15, Wayne Larsen wrote: > So just to clarify, if you have a long running > AppServer, the store will grow to contain all of the > database objects that have been queried for? Do > people just run clear regularly, or is this something > I don't need to worry about? So far

Re: [Webware-discuss] MiddleKit objects in session store?

2002-11-26 Thread Wayne Larsen
Thanks, I've got it running and it appears to be working fine. Only change is that I needed to move the Session initialization about the Context Initialization in MiddleKit/Application.py __init__ > > I wonder if MiddleKit has a mechanism to discard > objects in memory? > > ObjectStore has a

Re: [Webware-discuss] MiddleKit objects in session store?

2002-11-26 Thread Jason Hildebrand
On Tue, 2002-11-26 at 11:52, Wayne Larsen wrote: > As a related question, do you > know how MiddleKit manages caching? MiddleKit keeps a cache (essentially a dictionary) of references to each objects which it has loaded. Also, any object which has a "List of" attribute will cache the list of o

Re: [Webware-discuss] MiddleKit objects in session store?

2002-11-26 Thread Wayne Larsen
Hi Jason, You solution seems like an improved version of what I described as option 1. As a related question, do you know how MiddleKit manages caching? I wonder if MiddleKit has a mechanism to discard objects in memory? I would be interested in seeing your solution. It seems like a good c

Re: [Webware-discuss] MiddleKit objects in session store?

2002-11-26 Thread Jason Hildebrand
On Mon, 2002-11-25 at 18:11, Wayne Larsen wrote: > Hey all, > > In building a login system, I authorize the user, and > then put the user object into the session data. That > works great, and I can always query the user's > permission easily, because the user object is easily > accessible. The u

[Webware-discuss] MiddleKit objects in session store?

2002-11-25 Thread Wayne Larsen
Hey all, In building a login system, I authorize the user, and then put the user object into the session data. That works great, and I can always query the user's permission easily, because the user object is easily accessible. The user object is a middlekit object, and therein lies the problem

Re: [Webware-discuss] MiddleKit store

2002-11-18 Thread Jason Hildebrand
On Mon, 2002-11-18 at 20:34, Tom Harris wrote: > Greetings, > > I am playing with Middlekit, can someone tell me the correct way to clear > the error state in the store if an object added to the store with > addObject(), then attempted to be saved with saveChanges() raises an > exception (in my te

[Webware-discuss] MiddleKit store

2002-11-18 Thread Tom Harris
Greetings, I am playing with Middlekit, can someone tell me the correct way to clear the error state in the store if an object added to the store with addObject(), then attempted to be saved with saveChanges() raises an exception (in my test this was because the object had None in a field that was

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Roger Haase
--- Michael Engelhart <[EMAIL PROTECTED]> wrote: > Shouldn't these updates/inserts be wrapped in a database transaction > anyway? > Wouldn't that avoid the threading issues that are coming up? > I have been wrong a lot on MiddleKit threading issues in particular, but I think currently if a servle

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Michael Engelhart
Shouldn't these updates/inserts be wrapped in a database transaction anyway? Wouldn't that avoid the threading issues that are coming up? On Tuesday, November 5, 2002, at 02:24 PM, Roger Haase wrote: I fixed the problem by putting a rather brutal lock in ObjectStore, but I would be happy to try

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Roger Haase
--- Jason Hildebrand <[EMAIL PROTECTED]> wrote: > > In any case, it would be a good first step to see if it solves your > problem, Roger. I can send you a patch, just let me know if you use > the > 0.7 release or CVS. > I fixed the problem by putting a rather brutal lock in ObjectStore, but I

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Chuck Esterbrook
On Tuesday 05 November 2002 09:39 am, Jason Hildebrand wrote: > If these requirements are general enough, I'll document this and > commit the fix to CVS.  What do you think, Chuck? Sounds great to me! Additional thoughts for the implementation: - There is already a "boolean" self._threaded. The p

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Jason Hildebrand
On Tue, 2002-11-05 at 10:15, Roger Haase wrote: > In Jason's paper and elsewhere in the MiddleKit docs there is some > advice on avoiding concurrency issues: > During some stress testing a few days ago I found that if two servlets > are updating or inserting different records at the same time usi

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Roger Haase
--- Chuck Esterbrook <[EMAIL PROTECTED]> wrote: > I added your paper to: > http://webware.sourceforge.net/Papers/ > > > > http://www.opensky.ca/~jdhildeb/webware/ > > In Jason's paper and elsewhere in the MiddleKit docs there is some advice on avoiding concurrency issues: ''' Concurrency

Re: [Webware-discuss] MiddleKit references

2002-11-05 Thread Chuck Esterbrook
I added your paper to: http://webware.sourceforge.net/Papers/ On Sunday 03 November 2002 12:13 pm, Jason Hildebrand wrote: > I gave a talk on Webware at LinuxTag 2002, which has a section on > MiddleKit and includes an example schema, Classes.csv and Samples.csv > files. The paper is avai

Re: [Webware-discuss] MiddleKit column

2002-11-03 Thread Jason Hildebrand
On Sun, 2002-11-03 at 09:31, Michael Montagne wrote: > I'm getting this error when called in my browser: > File "/home/michael/Webware/MyContext/db.py", line 17, in showcats > cats=store.fetchObjectsOfClass(Pic) > File "./MiddleKit/Run/SQLObjectStore.py", line 286, in fetchObjectsOfClass >

Re: [Webware-discuss] MiddleKit references

2002-11-03 Thread Jason Hildebrand
On Sat, 2002-11-02 at 08:50, Michael Montagne wrote: I'm building sample data in a .csv file. To create a relationship between two objects the doc say: "You can see that in sample data, references to objects (sometimes called "obj refs", "references" or "pointers") are made by refer

[Webware-discuss] MiddleKit column

2002-11-03 Thread Michael Montagne
I'm getting this error when called in my browser: File "/home/michael/Webware/MyContext/db.py", line 17, in showcats cats=store.fetchObjectsOfClass(Pic) File "./MiddleKit/Run/SQLObjectStore.py", line 286, in fetchObjectsOfClass File "./MiddleKit/Run/SQLObjectStore.py", line 337, in executeS

[Webware-discuss] MiddleKit references

2002-11-02 Thread Michael Montagne
I'm building sample data in a .csv file. To create a relationship between two objects the doc say: "You can see that in sample data, references to objects (sometimes called "obj refs", "references" or "pointers") are made by referring to the implicit serial number of the target object (1, 2, 3

Re: [Webware-discuss] MiddleKit SQL clause

2002-10-28 Thread Chuck Esterbrook
On Sunday 27 October 2002 07:17 am, Michael Montagne wrote: > How do I pass an SQL statement containing joins of different classes > to MySQLObjectStore? It appears I can only return rows from one > table using fetchObjectsOfClass. Are all updates to tables intended > to be through the classes r

[Webware-discuss] MiddleKit SQL clause

2002-10-27 Thread Michael Montagne
How do I pass an SQL statement containing joins of different classes to MySQLObjectStore? It appears I can only return rows from one table using fetchObjectsOfClass. Are all updates to tables intended to be through the classes rather than using straight SQL or is it possible to both ways? Thank

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-11 Thread Gerhard Häring
* Gregory Brauer <[EMAIL PROTECTED]> [2002-10-11 17:54 -0700]: > Ernesto Revilla wrote: > >the new persistence framework of the Python Crew > > I'd be curious to know more about this. Is there any place I can get > info? http://www.python.org/sigs/persistence-sig/ -- Gerhard -

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-11 Thread Gregory Brauer
Ernesto Revilla wrote: the new persistence framework of the Python Crew I'd be curious to know more about this. Is there any place I can get info? Greg --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkge

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-11 Thread Ernesto Revilla
t;[EMAIL PROTECTED]> To: "Max Ischenko" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 09, 2002 2:49 AM Subject: Re: [Webware-discuss] MiddleKit port to PostgreSQL > On Tue, 2002-10-08 at 01:53, Max Ischenko wrote: > > Hi, > > > >

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-09 Thread Gregory Brauer
Ian Bicking wrote: > On Tue, 2002-10-08 at 20:26, Gregory Brauer wrote: > >>For this reason I am currently using PyDO/Skunkweb. > > > AFAIK, neither PyDO or MiddleKit are tied very closely to their > respective frameworks, no? That's true. The only real ties are in the coding styles. I use Sk

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-08 Thread Ian Bicking
On Tue, 2002-10-08 at 20:26, Gregory Brauer wrote: > For this reason I am currently using PyDO/Skunkweb. AFAIK, neither PyDO or MiddleKit are tied very closely to their respective frameworks, no? Ian --- This sf.net email is sponsored by:

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-08 Thread Gregory Brauer
Ian Bicking wrote: > On Tue, 2002-10-08 at 01:53, Max Ischenko wrote: > >>Hi, >> >>I'd like to try MiddleKit but I am to use PostgreSQL DB, which seems >>unsupported. I did this almost two years ago and submitted the patch back to Chuck, but it never got integrated, probably because the regressi

Re: [Webware-discuss] MiddleKit port to PostgreSQL

2002-10-08 Thread Ian Bicking
On Tue, 2002-10-08 at 01:53, Max Ischenko wrote: > Hi, > > I'd like to try MiddleKit but I am to use PostgreSQL DB, which seems > unsupported. > > How complex would be to add the PostgreSQL support or may be it is > already done in CVS? There's a patch on sourceforge -- I have no idea what it l

[Webware-discuss] MiddleKit port to PostgreSQL

2002-10-07 Thread Max Ischenko
Hi, I'd like to try MiddleKit but I am to use PostgreSQL DB, which seems unsupported. How complex would be to add the PostgreSQL support or may be it is already done in CVS? -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph. --- This sf

[Webware-discuss] MiddleKit question about MySQL varchar() binary keyword

2002-08-22 Thread Hank Knox
I just started experimenting with Webware, and I am very very impressed, congratulations! I have a question about data types in the MiddleKit component: My database design requires that a couple of the fields in the data store, which will be housed in MySQL, be defined as 'varchar( 20 ) binary

Re: [Webware-discuss] MiddleKit Threading Problem?

2002-08-21 Thread Roger Haase
I think I have a fix to MiddleObject.py at: http://www.users.qwest.net/~haaserd/Webware/NEWMiddleObject.py My modified code is marked # 2002-08-21. I looked at the CVS version and there does not seem to be a lock where I put one, although there are other places it could go, I suppose. At any

RE: [Webware-discuss] MiddleKit Threading Problem?

2002-08-21 Thread Geoffrey Talvola
g.RLock objects in strategic places. - Geoff > -Original Message- > From: Roger Haase [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 21, 2002 1:03 AM > To: [EMAIL PROTECTED] > Subject: [Webware-discuss] MiddleKit Threading Problem? > > > I have finally h

[Webware-discuss] MiddleKit Threading Problem?

2002-08-20 Thread Roger Haase
I have finally had a repeat of the problem I last wrote about on July 20. I have a web page that is trying to load several images at once similar to: The ShowPix.py servlet does several MySQL calls, then loads a .jpg image from the filesystem, messes with it, and writes out the modi

[Webware-discuss] MiddleKit Problems

2002-08-08 Thread Tim Payne
I spent most of the night working with MiddleKit, and I came across a few problems. I'm working with the latest release, not CVS. I was following the Quick Start and came to the point where you create the store in the main.py under Command/. I could not get the Middle.Video to import. It t

Re: [Webware-discuss] middleKit sql queries

2002-07-30 Thread Jason Hildebrand
On Tue, 2002-07-30 at 08:26, jonathan wrote > 2. Should I have global access to 'store', or should each module where it is > used create it's own store?? I noticed in the source for SQLObjectStore, > that new connections are created all over the place anyway. So would this be > much of a performa

Re: [Webware-discuss] middleKit sql queries

2002-07-30 Thread jonathan
be ongoing, and would need to store all this data in the database anyway. jonathan - Original Message - From: "Edmund Lian" <[EMAIL PROTECTED]> To: "jonathan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 31, 2002 12:12 AM Subjec

Re: [Webware-discuss] middleKit sql queries

2002-07-30 Thread Edmund Lian
On 07/30/2002 09:26:40 AM webware-discuss-admin wrote: >3. In the experimental project that I am playing around with, it requires >initially about 1.5m transactions on the database to set up the data. For >some reason that I am not clear on the app starts to really slow down about >halfway into

[Webware-discuss] middleKit sql queries

2002-07-30 Thread jonathan
Hi, I have just started using webware and middlekit, and am essentially experimenting and seeing whether I should convert an in development site to use it instead of my home grown middleware. So I have a couple of questions about how to use it. 1. To execute sql queries that don't fall into the o

Re: [Webware-discuss] MiddleKit Threading Problem - Stage 2

2002-07-22 Thread Roger Haase
Well, I have been wrong a lot lately... My HTML page had 7 very similar tags trying to display 7 images. The second image succeeded and the other 6 failed. If I had messed up the classes.csv file all seven images should have failed. Also, restarting the AppServer made everything wo

Re: [Webware-discuss] MiddleKit Threading Problem - Stage 2

2002-07-21 Thread Jason Hildebrand
Hi Roger, On Sat, 2002-07-20 at 15:45, Roger Haase wrote: > I believe I have stumbled into another threading issue, one step further > along than the problem of last week. This time it looks like it is in > MiddleKit to me. The situation is the same, I have a web page that is trying What makes

RE: [Webware-discuss] MiddleKit Browser Problems

2002-07-17 Thread Geoffrey Talvola
once you're familiar with it, you can fix the MiddleKit Browser and submit patches :-) - Geoff > -Original Message- > From: Tim Payne [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 2:23 PM > To: [EMAIL PROTECTED] > Subject: [Webware-discuss] MiddleKit Browser Prob

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem - Solved

2002-07-14 Thread Roger Haase
Thanks Geoff! I downloaded your fix and by putting in the print statement verified I was getting multiple copies of UnboundMethodError before the fix and only one after the fix. If I understand the problem correctly, the className.methodName(self,...) form of call does a global lookup and th

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem - Solved

2002-07-14 Thread Geoff Talvola
I just checked in a fix to Webware CVS. Give it a try. - Geoff On Sun, 2002-07-14 at 12:36, Geoff Talvola wrote: > This isn't a Python problem -- it's a bug in Webware. > > If you put a print statement at the end of UnboundMethodError.py you'll > find that the module actually gets imported mul

Re: [Webware-discuss] MiddleKit/MySQL Threading Problem - Solved

2002-07-14 Thread Geoff Talvola
This isn't a Python problem -- it's a bug in Webware. If you put a print statement at the end of UnboundMethodError.py you'll find that the module actually gets imported multiple times. This somehow causes a mismatch between the instances and the classes that triggers the error you're noticing.

  1   2   3   >