[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 Problems

2001-10-08 Thread Tim Roberts
On Sun, 7 Oct 2001 19:24:42 -0400, "Aaron Held" <[EMAIL PROTECTED]> wrote: > >I hate the >SQL += 'WHERE 1=1 AND' >if (DateRange): >SQL += ' ( (callDate > %(startDate)s) AND (callDate > %(endDate)s) ) ' >if (OneDate): >SQL +=' callDate = %(startDate)s' > >Currenly I write this code over an

Re: [Webware-discuss] MiddleKit Problems

2001-10-07 Thread Chuck Esterbrook
At 01:27 AM 10/7/2001 -0500, Ian Bicking wrote: >Of course, no one actually writes that clause. They write something >like "state = '%s' and %s = %s and duration > 60" % ("NJ", >"extension", , 60), or something of that sort. So it kinda sucks >any way you do it. Perhaps they would write: "

Re: [Webware-discuss] MiddleKit Problems

2001-10-07 Thread Ian Bicking
Chuck Esterbrook <[EMAIL PROTECTED]> wrote: > >Prose is what the programming is itself. Unfortunately, a SQL query > >means writing a program that runs on the DBMS, not in your native > >language. That's awkward too, just like the builder is awkward. > > But many of these sql clause are both ea

Re: [Webware-discuss] MiddleKit Problems

2001-10-06 Thread Ian Bicking
tom smith <[EMAIL PROTECTED]> wrote: > objectized, it worked but it sucked, and the first thing I did was to > circumvent it to be able to add text ala "clauses". Because making a simply > query used to take a fortnight. > > Using objects is great, but sql is great (ish) too. I think using 3 li

Re: [Webware-discuss] MiddleKit Problems

2001-10-06 Thread tom smith
>> query in DODS by calling methods such as >> >> callLogQuery.addWhereClause( callLogTable.State, "NJ", QueryBuilder.EQUALS) >> callLogQuery.addWhereClause( "extention", "", QueryBuilder.EQUALS) >> callLogQuery.addWhereClause( "duration", "60", QueryBuilder.GREATER_THAN) > > I have consider

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread Ian Bicking
"Aaron Held" <[EMAIL PROTECTED]> wrote: > Right now I am converting a project that I started w/ DODS into webware and that is >the feature that I miss most. I can build a > query in DODS by calling methods such as > > callLogQuery.addWhereClause( callLogTable.State, "NJ", QueryBuilder.EQUALS) >

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread Chuck Esterbrook
At 02:23 PM 10/5/2001 -0400, Aaron Held wrote: >For now though I just need a way to pull a resultset and make an html >table or excel sheet based on it. Since I don't need caching >or updating are there any other advantages to MiddleKit that I am >missing. Instead of MiddleKit I was thinking a

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread Aaron Held
riginal Message - From: "Chuck Esterbrook" <[EMAIL PROTECTED]> To: "Aaron Held" <[EMAIL PROTECTED]>; "tom smith" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, October 05, 2001 10:41 AM Subject: Re: [Webware-discuss] MiddleKit Problem

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread Chuck Esterbrook
At 07:41 AM 10/5/2001 -0700, Chuck Esterbrook wrote: >Note that the above call will also pick up subclasses of CallLog if there >are any. If for some reason you didn't want that, you could add isDeep=1 >to the call. Woops. isDeep=0 would prevent it from picking up subclasses. -Chuck

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread Chuck Esterbrook
At 10:08 AM 10/5/2001 -0400, Aaron Held wrote: >callLogQuery.addWhereClause( callLogTable.State, "NJ", QueryBuilder.EQUALS) >callLogQuery.addWhereClause( "extention", "", QueryBuilder.EQUALS) >callLogQuery.addWhereClause( "duration", "60", QueryBuilder.GREATER_THAN) > >I'm actually trying to f

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread Aaron Held
iginal Message - From: "tom smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 05, 2001 5:11 AM Subject: Re: [Webware-discuss] MiddleKit Problems > > On Thursday, October 4, 2001, at 10:14 PM, [EMAIL PROTECTED] wrote: > > >> BTW I

Re: [Webware-discuss] MiddleKit Problems

2001-10-05 Thread tom smith
On Thursday, October 4, 2001, at 10:14 PM, [EMAIL PROTECTED] wrote: >> BTW If you are new to this kind of programming, MiddleKit _may_ be a >> big >> pill to swallow right off the bat. Are you already familiar with >> WebKit? >> Not that it's a prerequisite, but I suspect it is easier to learn

Re: [Webware-discuss] MiddleKit Problems

2001-10-04 Thread iron
On Thu, Oct 04, 2001 at 02:02:25PM -0700, Chuck Esterbrook wrote: > BTW If you are new to this kind of programming, MiddleKit _may_ be a big > pill to swallow right off the bat. Are you already familiar with WebKit? > Not that it's a prerequisite, but I suspect it is easier to learn and get > s

Re: [Webware-discuss] MiddleKit Problems

2001-10-04 Thread Chuck Esterbrook
At 09:43 PM 10/4/2001 +0100, tom smith wrote: > > I appreciate your points below > >Thanks, maybe I'm biting off more than I can chew with WebKit. This is all about MiddleKit, right? I didn't see anything about WebKit in your message. Those 2 components are independent. You can use one or the

Re: [Webware-discuss] MiddleKit Problems

2001-10-04 Thread tom smith
> I appreciate your points below Thanks, maybe I'm biting off more than I can chew with WebKit. >but we do call it a Quick Start instead of > a tutorial because it doesn't hold one's hand as thoroughly as a tutorial. Can we have a tutorial as well then :-) > I assumed in the > QuickStart tha

Re: [Webware-discuss] MiddleKit Problems

2001-10-04 Thread Chuck Esterbrook
At 06:45 PM 10/4/2001 +0100, tom smith wrote: >hi, > >boy!, wading through the middlekit docs is hard work (, but then I am >considerably stupider than you). I'm coming to Webware having explored >Zope, and although I like Zope, sometimes I feel that I'm "too far way" from >python. Webware looks

Re: [Webware-discuss] MiddleKit Problems

2001-10-04 Thread tom smith
hi, boy!, wading through the middlekit docs is hard work (, but then I am considerably stupider than you). I'm coming to Webware having explored Zope, and although I like Zope, sometimes I feel that I'm "too far way" from python. Webware looks really promising, but the documentation could do wi

Re: [Webware-discuss] MiddleKit Problems

2001-10-04 Thread Chuck Esterbrook
At 12:56 PM 10/4/2001 +0100, tom smith wrote: >IOError: [Errno 2] No such file or directory: 'Videos.mkmodel/Classes.csv' > >any ideas? This is a simple "file not found" error. Did you create the Videos.mkmodel and the Classes.csv file as instructed by the Quick Start? (Or copy it from Docs/Vid

[Webware-discuss] MiddleKit Problems

2001-10-04 Thread tom smith
hello, I've just installed WebKit on OSX and trying to follow the MiddleKit QuickStart. When I... python /Library/WebServer/CGI-Executables/Webware/MiddleKit/Design/Generate.py --db MySQL --model Videos I get... Generating SQL... Traceback (most recent call last): File "/Library/WebServer