Brian Beck wrote:
Jared Kuolt wrote:
Doesn't IE choke on that Content-Type?
Not sure, but it didn't solve my problem anyway, since Kid ignores the
DTD you give it and puts in its own. Also tried the xlmns:mochi thing
you suggested, still can't get the template to render. Where can I
Jorge Godoy wrote:
Interesting, Michele, because I haven't tried putting it in master.kid. Since
it is something particular to this page only, I didn't think about putting it
there and polluting the whole site. This is definitely something to look
at. Specially because if I had something
Selon Brian Beck [EMAIL PROTECTED]:
Brian Beck wrote:
Found it. Forgot to add mochi:format to the DTD attribute list.
For anyone else who runs into this, here's a comment from the top of
the Sortable Tables HTML:
Technically we should be using this:
!DOCTYPE html PUBLIC -//W3C//DTD
I'd like to include a new variable in stdvars - hash_randomWhy, because of IE's caching of GET requests. This is particularly annoying when working with XMLHttpRequests.With a hash_random variable you can construct URLs with std.url like this:a href=""khtml-block-placeholder">def
evan [EMAIL PROTECTED] writes:
WriteException: Cannot write in JSON: lt;User 1
creationDate='datetime.datetime...)'
modificationDate='datetime.datetime...)' username='test'
password='test'gt;
/pre
div id=poweredBy
spanPowered by a href=http://www.cherrypy.org;Cherrypy
Krys Wilken [EMAIL PROTECTED] writes:
What makes a slug field interesting is the validation/auto text processing.
I didn't get why you want to validate this.
Hmm... Now that I am thinking of it, a slug could be viewed simply as a
regexp text processing of another given field. As such, a
Michele Cella [EMAIL PROTECTED] writes:
In my case adding it to the template that extends master.kid does
nothing, I always get:
body
I have the same problem here.
That's not what I would expect, I haven't looked too close at
master.kid but It can be a problem related to it.
Mine says:
Jorge,
IMHO, what you're suggesting isn't a slug. A slug is normally human
readable afaik... generating MD5 hashes for content wouldn't make for
easy URL's. :)
Lee
On 07 Dec 2005 09:36:02 -0200, Jorge Godoy [EMAIL PROTECTED] wrote:
myinstance.mySlug = md5.md5(myinstance.myCol).hexdigest()
I've added your proposal to this ticket:
http://trac.turbogears.org/turbogears/ticket/163
So we can keep track of this.
Ciao
Michele
Rune Hansen wrote:
I'd like to include a new variable in stdvars - hash_random
Why, because of IE's caching of GET requests. This is particularly
annoying
Is it possible to mount toolbox like you can with CatWalk, if you can,
how?
The other thing is this:
class Root(controllers.RootController):
def __init__(self):
print hello world
$ ./myapp-start.py
hello world
hello world
2005/12/07 12:11:42 CONFIG INFO Server
Lee McFadden [EMAIL PROTECTED] writes:
IMHO, what you're suggesting isn't a slug. A slug is normally human
readable afaik... generating MD5 hashes for content wouldn't make for
easy URL's. :)
Ah! Then it is a column with a unique value containing only ascii
alphanumerical characters (sans
Thanks Michele./rune On 7. des. 2005, at 12.57, Michele Cella wrote:I've added your proposal to this ticket:http://trac.turbogears.org/turbogears/ticket/163So we can keep track of this.CiaoMicheleRune Hansen wrote: I'd like to include a new variable in stdvars - hash_randomWhy, because of IE's
On 12/6/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
but I think it is not very good to do so, model.py depend on the
cherrypy runtime.
the program is hard to test and run without cherrypy.
so the best way is that model.py is separated from cherrypy's
config.Do you think so?
Technically,
m h wrote:
My bad, that was using easy_intall-script.py. Using ez_setup.py I it
appears to work... (Is that a bug in easy_install-script.py?
Shouldn't they be doing the same thing?)
In principle, yes; in practice, Windows has trouble upgrading files
that you are currently running; that's why
m h wrote:
Hmmm, I commented out the requirement for json in setup.py and ran
python setup.py develop again. It's failing on Kid now with a
Sandbox violation.
Kid tries to import its dependencies in its setup script, before
installation has even occurred. This is, uh, well, seriously
On 07 Dec 2005 09:29:34 -0200, Jorge Godoy [EMAIL PROTECTED] wrote:
You're returning an instance of your User class, not its data. Try returning
a list or dictionary instead (I believe I use dicts, but I have to look in my
code ;-))
Correct. And this is one of the things that we should get
Hi Kevin,
Err, but does anything actually support that? The presentation even
notes that Moz has an incomplete implementation.
Unless you're working with in a closed environment (which many people
do, to be sure), you'd really need IE6 and Firefox support minimally
for anything like
On 12/7/05, koorb [EMAIL PROTECTED] wrote:
Is it possible to mount toolbox like you can with CatWalk, if you can,
how?
The Toolbox is just an application root, so you *should* be able to.
It's just turbogears.toolbox.Toolbox.
The other thing is this:
class
On 12/7/05, Sylvain Hellegouarch [EMAIL PROTECTED] wrote:
Well for sure, like most proposed standards, they usually fall on their
implementation. I didn't mean to say this was a solution that could be replace
what current Javascript toolkits do but it could interest people on the long
run or
If we were adding something for this explicit purpose, I'd prefer to
add a flag to the url function and then have TurboGears eat the
incoming tg_random variable so that you don't need to add another
parameter to your methods.
In some ways, it seems like doing a POST would be nicer than adding a
On Dec 6, 2005, at 10:54 AM, Kevin Dangoor wrote:
On 12/6/05, paron [EMAIL PROTECTED] wrote:
I think that's RESTful, but that's just me. How about asking at the
REST Yahoo group? Kind of a second opinion? Some of the heavyweights
that don't hang around here, hang around there.
I've heard
On 12/7/05, Tracy Ruggles [EMAIL PROTECTED] wrote:
POST /link_styles/1/vote HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 12
support=true
200 OK
Well, first of all, i'm testing this only on mysql, perhaps different
db's act different :P
You couldprobably do this with an extra temporary column or someething
like that.
thanx,
Guyon
http://gumuz.looze.net/
Yes, but how do I install stable if I'm running 2.3 (and stable requires 2.4)?
On 12/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote:
On 12/7/05, m h [EMAIL PROTECTED] wrote:
After manually removing the elementTree and cElementTree packages (I
used the windows installers), running setup.py
div py:offtopic=true
This is not normally something I would post here... but I'm interested
to meet more of you face-to-face, if you happen to be here in Atlanta.
Tomorrow is the December Python meetup in Atlanta:
http://python.meetup.com/46/events/4798499/
Kevin
/div
Well, adding a random variable to a URL may seem terrible, but it's the _only_ way I know of to make IE behave(lest I start running .NET and IIS servers).The main point is that the random variable has to be evaluated in the std.url call.regards/runeOn 7. des. 2005, at 14.42, Kevin Dangoor wrote:If
Krys Wilken [EMAIL PROTECTED] writes:
my_model_instance.my_field =
turbogears.util.slugify(some_other_text_field_data)
... or something like that, anyway.
this is what i use on thraxil.org:
def make_slug(title=no title):
title = title.strip()
slug = re.sub(r[\W\-]+,-,title)
I agree, I will try to look past the 'arrogance' in his post and check
out its code when available
Hi guys,
I'm working on a picture gallery using turbogears.
It works reasonably well so far, thanks to everyone who has done work
on turbogears and its components.
http://msarahan.homelinux.net:8080
(Might I suggest clicking the random button for testing)
My issue is this:
I have an edit
On 12/7/05, nerkles [EMAIL PROTECTED] wrote:
Rate TG on Riffs.com
http://www.riffs.com/item.cgi?item_id=10635736
They even have a link to buy TurboGears :)
Kevin
--
Kevin Dangoor
Author of the Zesty News RSS newsreader
email: [EMAIL PROTECTED]
company: http://www.BlazingThings.com
blog:
Kevin Dangoor wrote:
On 12/7/05, Levi [EMAIL PROTECTED] wrote:
Kevin Dangoor wrote:
You're right... prod.cfg shouldn't be in svn. I wonder if there's a
convenient way to turn that off?
svn:ignore?
I was thinking something more along the lines of telling paster not to
add it in the
On 12/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote:
E4X is not well known and I wanted to give a hint about it ;)
Cool. It is good to see what people are looking at for the future.
I'll stick with JSON for now ;)
Things usually remain dormant until most browsers catch on. Look at
how long
Joost,
Thank you, I temporarily dropped the multiple parent requirement (with
customer approval of course :-). Your code works great.
Thanks
Mike
On 12/6/05, Remco [EMAIL PROTECTED] wrote:
ok, so I followed the tutorial up to the start of page 3 and after
executing Page(pagename=FrontPage, data=Welcome to my front page)
I still get the same error:
SQLObjectNotFound: The Page by alternateID pagename='FrontPage' does
not exist
Ahh...
I hate to say it, but I tried to solve this problem for a day and a
half without using random hashes. I can't say definitively that there
is no other solution, but if there is, it's not well known to google.
(Or my google-fu is much weaker than I thought).
On 12/7/05, Rune Hansen [EMAIL
Ian Bicking wrote:
It isn't deprecated.
Does it still do anything? Searching the documentation for cascade
doesn't return any results, same for joins.py...
Brian Beck wrote:
Ian Bicking wrote:
It isn't deprecated.
Does it still do anything? Searching the documentation for cascade
doesn't return any results, same for joins.py...
Also, if it does do something, then what? I'm using the above code
without cascade and it works the same as far as
Brian Beck wrote:
Also, if it does do something, then what? I'm using the above code
without cascade and it works the same as far as I can tell.
Nevermind my misinformation, found it in cols.py (although it is still
myseriously missing from the documentation). SQLite doesn't appear to
I did actually have the documentation portion of the site split out
between release version and development version earlier. The problem
was that documentation updates needed to be made in both places (for
corrections and amplifications). So, I brought them back together and
started labeling the
On 12/7/05, Jared Kuolt [EMAIL PROTECTED] wrote:
A big reason I don't like this idea is that the changes between 0.8
and 0.9 are so vast, it's comparing apples and oranges. I'm almost to
the point of telling people not to touch TurboGears until 0.9 because
so much of what they'll know about
I wouldn't go that far either. I tend to over-dramatize my points.
Though I think my point remains valid. Using 0.8, you'd have to create
a lot of functionality that is be built into 0.9. I would prefer to
wait it out instead of re-inventing the wheel, then porting it back to
the new wheel
On Dec 7, 2005, at 11:28 AM, Kevin Dangoor wrote:
On 12/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote:
If we were adding something for this explicit purpose, I'd prefer to
add a flag to the url function and then have TurboGears eat the
incoming tg_random variable so that you don't need to add
On 07/12/05, Mike Stephen [EMAIL PROTECTED] wrote:
Greetings from Cork, Ireland!
Well, if Ireland can count, then hello from Leeds, UK :)
--
wavy davy
True religion confronts earth with heaven
and brings eternity to bear on time
- A. W. Tozer
Anybody judging a framework based on its website should just be
ignored.
/Martin
On Wed, 2005-12-07 at 20:58 +, Wavy Davy wrote:
On 07/12/05, Mike Stephen [EMAIL PROTECTED] wrote:
Greetings from Cork, Ireland!
Well, if Ireland can count, then hello from Leeds, UK :)
Make that 2 from Leeds, UK!
Hello Simon ;)
--
Andy Kilner [EMAIL PROTECTED]
signature.asc
On Dec 7, 2005, at 3:58 PM, Bob Ippolito wrote:
If we were adding something for this explicit purpose, I'd prefer to
add a flag to the url function and then have TurboGears eat the
incoming tg_random variable so that you don't need to add another
parameter to your methods.
FYI, I've opened
On 7. des. 2005, at 21.58, Bob Ippolito wrote:On Dec 7, 2005, at 11:28 AM, Kevin Dangoor wrote: On 12/7/05, Kevin Dangoor [EMAIL PROTECTED] wrote: If we were adding something for this explicit purpose, I'd prefer toadd a flag to the url function and then have TurboGears eat theincoming "tg_random"
8.a3
On Dec 7, 2005, at 1:30 PM, Jonathan LaCour wrote:
On Dec 7, 2005, at 3:58 PM, Bob Ippolito wrote:
If we were adding something for this explicit purpose, I'd
prefer to
add a flag to the url function and then have TurboGears eat the
incoming tg_random variable so that you don't need to add
I noticed that widget's CSS links are injected only in the case when
you return widgets inside the dict in your exposed method (isinstance
checks inside _process_output). At least that's how I read it. You see,
I was trying to incorporate some of my widgets inside master.kid (or
any kid page for
I like the idea of providing a workaround for URL caching (I know I've
dealt with this problem in the past as well), but at the same time, if
the proposed code is added to turbogears.view, then computing a random
number happens with every page view whether you want it or not.
Personally, I'd
How do you specify in a SQLObject select clause to only select rows
without related joins?
In the following code, m.parents is a SORelatedJoin to the same object
but I can't work how to express m.q.parents EXISTS/is not Null etc...
return dict(selectID='mods',
Congratulations on your new baby, Jeff!!
http://newburyportion.com/2005/12/molly-elizabeth-watkins
For those of you who don't know, Jeff Watkins has been developing the
Identity model for TurboGears.
--
[EMAIL PROTECTED]
On 12/7/05, Sean De La Torre [EMAIL PROTECTED] wrote:
I was also able to get TG to run using Apache/FastCGI on my
dreamhost.com account. If anyone is interested, please let me know and
I'll write that one up as well.
I'm lazy! Please! For the sake of the docs!
--
[EMAIL PROTECTED]
Michele Cella [EMAIL PROTECTED] writes:
@identity.require( user=molly elizabeth watkins )
def born(self):
print Congratulations Jeff!!
@turbogears.expose()
def me_too(self):
print Congratulations Jeff!
--
Jorge Godoy [EMAIL PROTECTED]
Jared Kuolt [EMAIL PROTECTED] writes:
On 12/7/05, Sean De La Torre [EMAIL PROTECTED] wrote:
I was also able to get TG to run using Apache/FastCGI on my
dreamhost.com account. If anyone is interested, please let me know and
I'll write that one up as well.
I'm lazy! Please! For the sake
Mike Stephen [EMAIL PROTECTED] writes:
The latest thing I tried was using sqlite, and it showed the exact same
behaviour (which is a relief 'cause I'm fond of mysql!)
Anyone got any ideas what I might be doing wrong?
I've submitted a bug at http://trac.turbogears.org/turbogears/ticket/199
I'll be there.
- jmj
Kevin Dangoor wrote:
div py:offtopic=true
This is not normally something I would post here... but I'm interested
to meet more of you face-to-face, if you happen to be here in Atlanta.
Tomorrow is the December Python meetup in Atlanta:
On 07 Dec 2005 22:49:33 -0200, Jorge Godoy [EMAIL PROTECTED] wrote:
Michele Cella [EMAIL PROTECTED] writes:
@identity.require( user=molly elizabeth watkins )
def born(self):
print Congratulations Jeff!!
@turbogears.expose()
def me_too(self):
print Congratulations Jeff!
Ian Bicking [EMAIL PROTECTED] writes:
Personally I'm inclined to name all configurations, including prod.cfg, and
keep them... somewhere. Maybe in a config/ directory or something. Then if
you add some configuration parameter, you can add it to all configuration
files at once. And instead
FYI, a simple hack/workaround got me past this so I could write and
run some tests on my controllers. Posted hack.txt to the below ticket.
I'm sorry that it's not a real fix -- I have no clue how cherrypy works.
--Kitto
On Dec 2, 2005, at 12:31 PM, Kevin Dangoor wrote:
This would be
will do, thanks Jorge :)
Mike.
62 matches
Mail list logo