Jonathan LaCour wrote:
I find it to excel at the complex, and falter at the simple. I am
extremely excited to hear that you are working on a more declarative
SQLObject-like layer to SQLAlchemy, as it would address my *one* big
gripe with it: its just too complex for the simple stuff.
Hi
This might help :
http://www.cherrypy.org/wiki/CamelToLower
Like this?
Thanks for the tip,
Simon
P.S. this is a re-send (from a different mail account) since my
original reply has not been delivered for more than 24h.
Stephen Thorne wrote:
Excellent ideas!
I'd recently become quite vexed at the error handling, especially when SQL
errors occur.
This might help :
http://www.cherrypy.org/wiki/CamelToLower
I added this clarification on this page:
The old variable names will still work until at least CherryPy-2.3,
but they are considered deprecated.
Remi.
Moin,
I use some components from the tg installation for scripts. Sometime
I've got:
Traceback (most recent call last):
File /usr/local/bin/djson2sql, line 4, in ?
from pysqlite2 import dbapi2 as sqlite
File
Hello All,
I just did an update from svn to move to Cherrypy 2.2.
I am running on windows xp
python 2.4.2
I deleted my old versions of the packages.
Here is the error from setup.py install
Installed
c:\python24\lib\site-packages\turbogears-0.9a0dev_r512-py2.4.egg
Processing dependencies
Hi all,
Despite good advice to the contrary, I've garnered myself some Apache +
mod_python + TG hosting. Now I have what's probably a silly question.
I've been testing using Cherrypy on localhost to serve, but it had to
restart each time I changed a template or controller. Will Apache, or
can I
Typo in the title.
It should be SVN install still looking for CherryPy 2.1.1
I really should finish my coffee before I post :-)
You need to go into the turbogears/thirdparty/cherrypy/ folder and run
easy_install .
On 1/13/06, Michael Schneider [EMAIL PROTECTED] wrote:
Typo in the title.
It should be SVN install still looking for CherryPy 2.1.1
I really should finish my coffee before I post :-)
--
cheers
On 1/12/06, Alvin Wang [EMAIL PROTECTED] wrote:
If the enhancements were added in the widgets ( id and javascript), it
seems to me that it would be cleaner. Formencode currently resides
completely on the server. Widgets handles the UI html generation
stuff. JS is in the UI.
Wouldn't
On 1/13/06, Ian Bicking [EMAIL PROTECTED] wrote:
In order to test CherryPaste in a realistic situation, I'd like to test
it against a real application. Is there an application someone could
recommend that has a good set of tests? HTTP-based tests are best, but
CherryPy tests are okay too
On 1/12/06, rick [EMAIL PROTECTED] wrote:
I added two lines of code:
print run_with_transaction retval = func() failed
traceback.print_stack()
to the part of run_with_transaction:
except:
rollback_all()
raise
And I can no longer
It would be nice, if client-side validation library would be generic
enough to allow real-time validation and value completion.
For example say we have a billing page with fields price, amount and
total_price. What I would like is to have a mechanism for updating
total_price every time either
For those of you not on the MochiKit list, I wanted to bring this up:
Thomas Hervé has ported Script.aculo.us to MochiKit! I took a quick
look through, and it's a good start.
Script.aculo.us provides all of the visual effects goodies that you
see on Rails sites and can generally provide a more
And I've confirmed with Phillip that I can't conveniently put up an
egg of CP 2.2 unless I hide it away in some other part of the
TurboGears site. I figured rather than doing that, I'd just update the
contributing page to reflect that you may need to head into the
thirdparty directory and
I'd recommend just installing the egg with easy_install
--always-unzip, since Phillip's already done the work of figuring out
the best way to unzip it...
Kevin
On 1/13/06, mtg [EMAIL PROTECTED] wrote:
Moin,
I use some components from the tg installation for scripts. Sometime
I've got:
I used/suggest an other approach :
* add various attributes to input tag like required='true',
regexp='...', max-value='...'
* the client side library use those tag to check field (on form submit,
on field value change...)
* the formmaker/widgetbuilder use Validator and SOXxxxCol definition to
Thanks Kevin,
That did the trick. The full steps:
1) update from svn
2) cd turbogears\thirdpary
#Note: this step may not be required, but I was getting a strange
conflict with
#cherrypy, so I deleted all cherrypy from site-libs\cherrypy
2a) delete
Trac seems to be having a little fit. Some kind of DB issue... I
think that while it can be read from (so displaying stuff is fine) it
can't be written to.
Try creating a ticket and you'll see what I mean.
Lee
There is a neat javascript library that can help to keep HTML clean
for validators:
http://bennolan.com/behaviour/
--
Ksenia
or try see TimeLine...
Looks like a foreign character in modelDesigner.js, the accented A
Firefox says:
Error: missing ) after condition
Source File:
http://imacg5.local.:7654/tg_toolbox/designer/javascript/modelDesigner.js
Line: 1314, Column: 24
Source Code:
if(name=='None' ||Â name == '') return;
Here is how what I ended up with, in case of anyone interested:
@turbogears.expose(content_type=text/html; charset=UTF-8,
html=bookswap.templates.addbook)
def addbook(self, **kw):
### XXX: why this is needed?
for k,v in kw.items():
if
On 1/12/06, Stephen Thorne [EMAIL PROTECTED] wrote:
TableForm(widgets=[TextField(name='email',
validator=validators.Any(validators.Empty(), validators.Email()))])
Try reversing the two. Formencode actually processes the list
backwards and you'll want to check for emptiness first. I haven't
Thanks Richard,
r513 takes care of it.
Cheers.
Ronald
On Jan 13, 2006, at 4:25 PM, Richard (koorb) wrote:
Looks like a foreign character in modelDesigner.js, the accented A
Firefox says:
Error: missing ) after condition
Source File: http://imacg5.local.:7654/tg_toolbox/designer/
On 1/12/06, Igor Murashkin [EMAIL PROTECTED] wrote:
I know I do, at least until widgets are more mature (right now they
don't even have containers!)
I actually do have a working container widget. Unfortunately I don't
have the ability (legally) to commit it to TG. I'm working on that and
will
Kevin Dangoor wrote:
And I've confirmed with Phillip that I can't conveniently put up an
egg of CP 2.2 unless I hide it away in some other part of the
TurboGears site.
Well, you could change all the 2.1 dependencies to be =2.1,2.2a
which would reject any 2.2 alphas or betas as well as 2.2
On 1/13/06, Ksenia Marasanova [EMAIL PROTECTED] wrote:
There is a neat javascript library that can help to keep HTML clean
for validators:
http://bennolan.com/behaviour/
I do not reccommend this library. The default CSS selector is buggy
and inefficient. The idea is a good one, but use dean
mtg wrote:
Moin,
I use some components from the tg installation for scripts. Sometime
I've got:
OSError: [Errno 13] Permission denied: '/.python-eggs'
Your HOME appears to be set to '/' instead of your home directory,
causing the attempt to create a cache directory to fail. Correct your
Kevin Dangoor wrote:
On 1/13/06, Ian Bicking [EMAIL PROTECTED] wrote:
In order to test CherryPaste in a realistic situation, I'd like to test
it against a real application. Is there an application someone could
recommend that has a good set of tests? HTTP-based tests are best, but
CherryPy
I think they have upgraded Trac to 0.9.3...
On 1/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I think they have upgraded Trac to 0.9.3...
I just did that to see if it had any bearing whatsoever on this
problem (it didn't). It was a good idea, anyhow, since there were
security-related fixes. I haven't yet figured out what the
Is the DataController meant to be used as CRUD in application, or is
it meant only for easy data manipulation?
I haven't much time to research right now, but I have a couple columns
that should be edited by the user, whereas others should be filtered.
Here's an example:
class Posts(SQLObject):
On 1/13/06, Phillip J. Eby [EMAIL PROTECTED] wrote:
Kevin Dangoor wrote:
And I've confirmed with Phillip that I can't conveniently put up an
egg of CP 2.2 unless I hide it away in some other part of the
TurboGears site.
Well, you could change all the 2.1 dependencies to be =2.1,2.2a
2006/1/13, Jared Kuolt [EMAIL PROTECTED]:
Is the DataController meant to be used as CRUD in application, or is
it meant only for easy data manipulation?
I haven't much time to research right now, but I have a couple columns
that should be edited by the user, whereas others should be
On 1/13/06, Lee McFadden [EMAIL PROTECTED] wrote:
Trac seems to be having a little fit. Some kind of DB issue... I
think that while it can be read from (so displaying stuff is fine) it
can't be written to.
Try creating a ticket and you'll see what I mean.
Sadly, the logging wasn't
I'm going to move the MochiKit SVN from http://svn.red-bean.com/
mochikit to http://svn.mochikit.com so that it's easier for me to
manage. http://svn.mochikit.com has been a mirror of the red-bean
repository for many months now, and has had consistently better
uptime (with the bonus that
That's great news. I have often looked at script.aculo.us and stomped
away mumbling to myself that two JS frameworks is just too messy ... I
will take a good look and see what I can do to help.
On Jan 13, 2006, at 9:58 AM, Bob Ippolito wrote:
I'm going to move the MochiKit SVN from http://svn.red-bean.com/
mochikit to http://svn.mochikit.com so that it's easier for me to
manage. http://svn.mochikit.com has been a mirror of the red-bean
repository for many months now, and has
I have updated the svn:external for MochiKit.
Kevin
On 1/13/06, Bob Ippolito [EMAIL PROTECTED] wrote:
I'm going to move the MochiKit SVN from http://svn.red-bean.com/
mochikit to http://svn.mochikit.com so that it's easier for me to
manage. http://svn.mochikit.com has been a mirror of the
Hi!
We're going to build an app that has to run in at least 3 different languages
(pt_BR, en_US and es_ES). Since date format differs from one to the other,
I'd like to know how can I make date input I18Nizable for input using either
an input field or a widget... I don't want to put three
On 1/13/06, Jared Kuolt [EMAIL PROTECTED] wrote:
The DataController would then be able to build a form simply on the
title and text only, and run the filters on the form submission. Keep
in mind that I have barely used DataController and am not up-to-speed
on the usage. Is there an easier way
On 1/13/06, Jorge Godoy [EMAIL PROTECTED] wrote:
We're going to build an app that has to run in at least 3 different languages
(pt_BR, en_US and es_ES). Since date format differs from one to the other,
I'd like to know how can I make date input I18Nizable for input using either
an input
On Jan 13, 2006, at 10:08 AM, Bob Ippolito wrote:
On Jan 13, 2006, at 9:58 AM, Bob Ippolito wrote:
I'm going to move the MochiKit SVN from http://svn.red-bean.com/
mochikit to http://svn.mochikit.com so that it's easier for me to
manage. http://svn.mochikit.com has been a mirror of
Kevin Dangoor [EMAIL PROTECTED] writes:
This kind of thing would be nice to have built into a widget. I'm
certain it can be done, but I'm really counting on folks who are i15ng
their apps to help out with that kind of thing, because there's
nothing like eating your own dogfood to make things
Kevin Dangoor [EMAIL PROTECTED] writes:
On 1/13/06, Jorge Godoy [EMAIL PROTECTED] wrote:
And then I have this on my method:
data_envio:validators.DateConverter(month_style='dd/mm/'),
Ahh... So it looks like the first thing needed is a date validator
that handles locales
Essa é a melhor chance da sua vida!!!
Olá, pessoal, a seguir está todo o relato de um programa
REVOLUCIONÁRIO. Consultei um advogado sobre a LEGALIDADE, e ele
aprovou!! Leiam o P.A.R.E.C.E.R J.U.R.Í.D.I.C.O nesta comunidade do
orkut: http://www.orkut.com/Community.aspx?cmm=7668991 e CONHEÇA
What an excellent opportunity!
Kevin Dangoor [EMAIL PROTECTED] writes:
Ahh. You may need to override the function that produces the set of
JavaScripts for the widget.
Remember that, at least at present, widgets are stateless. It seems
like when the javascript is requested, at that point you could look up
the locale and
Jared Kuolt [EMAIL PROTECTED] writes:
What an excellent opportunity!
Don't you hate those stupid pyramid things? What is worse is that there are
errors in the message... With all the earnt money the person who wrote that
wasn't even able to buy a spellchecker or a dictionary... Speaking /
On 1/13/06, Jorge Godoy [EMAIL PROTECTED] wrote:
Since calendar languages are different from what we have from the browser or
with cherrypy I thought about adding a new variable -- defaulting to 'en' --
to choose the language.
For example, there are two options for pt: pt and pt-utf8. One
On 1/13/06, Jorge Godoy [EMAIL PROTECTED] wrote:
And then I have this on my method:
data_envio:validators.DateConverter(month_style='dd/mm/'),
Ahh... So it looks like the first thing needed is a date validator
that handles locales reasonably and possibly lets you override the
I can reproduce this error. If I go to svn repository and rename 'db'
directori to other thing I can get this error in the trac.
You have some kind of problem with 'db' directory in your svn. Try
svnadmin verify or/and recover...
Helio Pereira
well, not true... now I have tryed again and don't give the same error
:-(
On 1/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I can reproduce this error. If I go to svn repository and rename 'db'
directori to other thing I can get this error in the trac.
You have some kind of problem with 'db' directory in your svn. Try
svnadmin verify or/and recover...
cboos
Kevin Dangoor [EMAIL PROTECTED] writes:
You *could* do something like set cherrypy.request.calendar_language which
then reflects what gets included. I'd advocate *trying* to guess the
language to use if nothing is set there and using that if there is something
set.
How would I try to guess
On 1/13/06, Jorge Godoy [EMAIL PROTECTED] wrote:
I'll try and see if I can come up with this cherrypy.request.calendar_language
thing. I can't guarantee it will be today -- I'm travelling and I'll be back
on Tuesday --, so don't hold your breath for now. But I'll get it working
soon. ;-)
On 1/13/06, Jorge Godoy [EMAIL PROTECTED] wrote:
Don't you hate those stupid pyramid things? What is worse is that there are
errors in the message... With all the earnt money the person who wrote that
wasn't even able to buy a spellchecker or a dictionary... Speaking / writing
correctly
I just read them thanks. So, using ActivePython may be an issue and
switching to the python sources from python.org might be best? Or can
I just recompile the pyexpat and leave the rest of my python install
alone?
Kevin, we can access to your timeline if we don't want to view chanset
(repository) like you can see in this link:
http://trac.turbogears.org/turbogears/timeline?from=01%2F13%2F06daysback=30milestone=onticket=onticket_details=onwiki=onupdate=Update
But if you check the Repository checkins it
Sorry about that. i'm using the following;
MYSQL 4.1.x
Turbogears 0.8a3
SQLObject-0.7.0
MySQLPython 1.2.0
I am running in dev mode not prod and connecting via the network not
the sock file.
Thanks for that interesting clue. I've passed it on to the trac folks.
Kevin
On 1/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Kevin, we can access to your timeline if we don't want to view chanset
(repository) like you can see in this link:
For those of you not on the MochiKit list, I wanted to bring this up:
Thomas Hervé has ported Script.aculo.us to MochiKit! I took a quick
look through, and it's a good start.
This is fabulous! TG and friends need a lot more visibility at this
stage and this will help tremendously. Blog away!
On 1/13/06, citizenkahn [EMAIL PROTECTED] wrote:
I just read them thanks. So, using ActivePython may be an issue and
switching to the python sources from python.org might be best? Or can
I just recompile the pyexpat and leave the rest of my python install
alone?
From reading the linked
On Jan 13, 2006, at 2:06 PM, Diwaker Gupta wrote:
For those of you not on the MochiKit list, I wanted to bring this up:
Thomas Hervé has ported Script.aculo.us to MochiKit! I took a quick
look through, and it's a good start.
This is fabulous! TG and friends need a lot more visibility at
This is fabulous! TG and friends need a lot more visibility at this
stage and this will help tremendously. Blog away! :)
I'd wait until it lands in SVN to blog about it. This will be a
MochiKit 1.3 feature.
Sure. I'm just trying to build up the buzz around here, so that when
it is time,
For some reason I tried this (probably a result of the mindset
necessary for hacking around IE's CSS bugs)... in my templates which
are the master for another template, I made the following change:
On any element that contained a py:def, I made sure that the py:def was
the FIRST attribute.
I
This is in the log:
18:07:45 Trac[__init__] INFO: Syncing with repository (511 to 513)
Kevin
On 1/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
can you run this sql with sqlite3 to see what is the last revision the
trac db as sync with svn?
#sqlite3 $TRAC_ENV/db/trac.db
sqliteselect
I've found what causes the TypeError: 'NoneType' object is not
callable error in Kid templates. I've narrowed it down to the
_freshen_template method in the TurboKid kidsupport.py file.
Here's a summary of what I've found:
1) The error occurs every time after the sitetemplate is marked as
Except that I get this error also and I don't use widgets. I'm not
saying you haven't tracked down *ONE* cause of it, but it certainly
isn't the only cause.
On 13 Jan, 2006, at 10:05 pm, Sean De La Torre wrote:
I've found what causes the TypeError: 'NoneType' object is not
callable error
I didn't intend to state that this was the exact solution to all the
problems (hence the statement This could be a more general error in
the refresh logic or in the way kid reloads templates, but I won't know
for certain until I've investigated the issue a little more. ).
Besides, the
One more thing that I just tested:
I removed the widget from my code, and tested the same scenario with
only templates in my project. I then reverted kidsupport.py to its
original state, and the error reappears after I see the refresh
statement in my logs. Changing kidusupport.py as I stated
I am 100% positive that it is the module reloading. With my
setup I cannot recreate the issue so it is impossible for me to debug.
I am working on a patch that really cleans the reloading up.
It's pretty late here so I will post it to the list tomorrow after I make sure I am not doing anything
73 matches
Mail list logo