On Sat, 26 Feb 2005 18:28:31 -0500, lloyd wrote:
> middlekit's postgresql code generation appears to presume a
> separate database for each project/model. is it possible to use a
> table prefix to distinguish models instead of a separate database?
>
> eg instead of a "fooproj" database with "item"
middlekit's postgresql code generation appears to presume a separate
database for each project/model. is it possible to use a table prefix
to distinguish models instead of a separate database?
eg instead of a "fooproj" database with "item" and "item_type" tables,
i'd prefer to put all the proj
If you use inheritence then its sort of like this:
Templates:
1) write the site template
siteMain.template
...
#block body
I am a default page - listing
#end block
2) Compile it w/ cheetah-compile
3) write a child template
moduser.template
#from siteMain import siteMain
#extends siteMain
#implemen
Hi Aaron,
Your explanation seems to tie in nicely with the problems ive been
having. By creating a new instance of the base template in the servelts
respond() method i can get it working. However this seems to be quite
costly preformance wise.
I would like to update my templates to use the met
So the problem is that you are trying to
#include templateName
where templateName is a runtime variable.
This is only a guess, use cheetah-compile to verify:
The template is compiled in awake.
The included code gets compiled into the cheetah template instance.
By default the cheetah template insta
Hi Aaron,
The base template contains a stanza #include $body to determine the body
of the page. I do this because i would like to keep the amount of code
in the template defininations as minimal as possible, limited to simple
#if's and #for's.
The page's are rendering correctly - to a point. T
I am not sure what should be happening when at the line:
self.T.body = 'templates/users/moduser.template'
if you have something like
$body
in your cheetah template then this will just expand to that string, not
the contents of the template moduser.templet.
check the source of the gene
Hi Aaron,
Thanks for the great tips and urls. Im pretty much on my way now,
however i am getting some strange? behavior, is this the correct behaviour?
i have a "site" class parent defined as
--- code ---
from pyPgSQL import PgSQL
from mx.DateTime.Parser import DateTimeFromString
from Viva.User
Anything that the Browser sends comes in via the Request object.
You can access this from a servlet via self.request()
If you check the limited docs (
http://webware.sourceforge.net/Webware-0.8.1/WebKit/Docs/Source/Summaries/HTTPRequest.py.html
)
you will see a method called field.
so to get the v
G'day all,
Ive recently installed webware and have been having a play with it. I
have managed to create a very very simple app that uses Cheetah
templates to produce a static output. I would really love to extend this
futher to handle forms and query string parameters. Reading the docs
that co
On Thu, 2002-10-24 at 19:55, Michael Montagne wrote:
> Question #2:
> Where do I put the funformkit package to allow me to use it. In the
> base python site-packages directory? The appdir?
It goes in the Webware/ directory. If you put it in, you'll see an FFK
examples context, which are servl
>On 24/10/02, from the brain of Michael Montagne tumbled:
> Pardon the imposition on the documentation discussion. I certainly
> don't want to slow that down. But I'm just getting up to speed with
> webware and i'm trying to do some playin around. I created an Appdir
> and I can successfully re
When you access /WK you're accessing the AppServer, and it's reading
from the "default" context -- when you install Webware, this is the
Examples context (in WebKit/Examples). And it accesses the index or
Main servlet in this context (since you didn't give a servlet name
either). You can add a co
Pardon the imposition on the documentation discussion. I certainly
don't want to slow that down. But I'm just getting up to speed with
webware and i'm trying to do some playin around. I created an Appdir
and I can successfully reach http://localhost/WK.
I set httpd.conf to:
WKServer localhost
14 matches
Mail list logo