On Feb 13, 6:13 pm, Karl Guertin [EMAIL PROTECTED] wrote:
Aside from RecentChanges, no. We really just need a simple quiz
question captcha. Something else to add when I get to hacking on the
wiki code...
IMO, the longer we can go without complicating the other end of
commenting the better
In your User class, specify a joinColumn of user_id so sqlobject
knows where to look it up. In general you can do pretty well by just
following along with what was already done to establish groups/
permissions as much as is applicable.
-Adam
I'm not really seeing what the problem is with creating a containing
div and replacing everything inside of that. Something like:
div id=datawidget-container${html}/div
in your template would give you a container to hook on to and do
innerHTML replacement. The other option involves building dom
The CheckBoxList currently does not work with a RemoteForm, since each
checkbox shares the same name the values overwrite each other instead
of appending to a list. There was a discussion about this a little
while ago[1] along with a patch to widgets/static/ajax.js that will
make it work, but
IIRC, installing the .egg will put the start-projname.py script in
whatever executeable file location is appropriate for your system (/
usr/bin on my ubuntu system). This is also true for source copies of
the project that are added to the setuptools environment with
setup.py develop.
-Adam
Does the following work for you?
class MyWidget( widgets.TableForm ):
foobar = widgets.TextField()
This should allow you to change the value by calling the widget with $
{widget.display(foobar=spam)} in the template. If that isn't what
you are looking for let me know and hearing another
That depends entirely on when each decorator is running.
identity.require runs before the function does, so if error_handler
does so as well then the original-function-wrapped-in-identity-
behavior will not be called. If error_handler waits until after the
encapsulated function is run then
What kind of difference are you looking for? If all you need is to
change the style a bit that is pretty easily done with, as Isaac said,
a little peek at the cherrypy.request object and a change of widgets
used to point people to a different CSS stylesheet.
If you need to alter the template
Awesome work Krys! If I can make a docs suggestion you will probably
want to do a getting started type of page first, as that will
probably handle most of the questions you will get. From my
understanding you can go right ahead and post it to TurboGears-Ann.
The list is moderated so don't be
On Jan 29, 11:51 pm, Christoph Zwerschke [EMAIL PROTECTED] wrote:
Richard Clark wrote:
You have compared a bunch of high level web development frameworks,
whose express purpose is to make development of complex web
applications simple, by comparing their most basic performance metrics
The hamster in the arkivo bot appears to be on holiday, please replace
with a competent worker at the earliest convenience.
-Adam
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
TurboGears Trunk group.
To post to
Per the discussion on fork the 1.1 branch (and the wish list)?
should I make a 1.1-plugin-refactor branch to handle this? It will
take me a while to go through all of the code and come up with a list
of possible targets, so I can wait a couple of days until that debate
has settled if need be.
TestDataGears provides helpers for loading, unloading, and reloading
of test data. It makes creating database entries to test your code a
simple matter of defining functions, and provides helpers so even that
is easier.
Eventually, TestDataGears will support dynamic generation of data that
Apparently this only happens on a fresh page load, I think it has
something to do with that element being displayed before the page has
finished downloading. Nothing really stands out about it though, maybe
my CSS fu is just not up to this at the moment.
-Adam
The only other really relevant information I can think of is how does
the visit plugin handle users who have cookies disabled?. It might be
good to have that in there just so people know what will happen.
-Adam
--~--~-~--~~~---~--~~
You received this message
I am a big fan of setuptools. It is an awesome piece of software, and
one that TurboGears seems to only partially leverage. Case in point,
plugins. SetupTools makes these pretty easy through the use of
entry_points, which are already in use to provide extensions to tg-
admin, alternative
On Jan 28, 5:34 am, Alberto Valverde [EMAIL PROTECTED] wrote:
That's a good idea. Now we have tg.util.load_class to load the
identity/visit classses as defined by the configuration file. This
could be changed to use pkg_resources.EntryPoint.parse which does
something similar but in a more
On Jan 28, 9:01 pm, Mark Ramm [EMAIL PROTECTED] wrote:
If we could get somebody to make a Win32 egg for PySQLite2, and post
it up on the pysqlite download page that would make thousands of
windows developer's lives easier and lessen the stranglehold that
Access seems to have on Windows
I left a comment on the page, but overall this looks really good. If
someone with more experience using Visit will give it a nod, I am
ready to add it to main docs.
Looking at it though, I can't help but wonder why we are using this
kind of plugin system when setuptools provides one. IMO
We could add something to the docs site, but it would (I think) need a
big fat note saying that the list is maintained by the TG community
and is not verified or endorsed by the TurboGears project, its
members, or anyone other than the individual consultant. The other
option would be to put
On Jan 27, 6:54 pm, venkatbo [EMAIL PROTECTED] wrote:
How about a new Google-grp: TurboGears-Consultants or some
such just for that purpose...
I doubt it would see much use. I've seen a relatively sharp upturn in
people looking for TG consultants (which is awesome ... if anyone
wants a
On Jan 26, 12:06 pm, Kenneth McDonald
[EMAIL PROTECTED] wrote:
Finally, bundling just for OS X is also fine (though if I could do it
for Windows, that'd be good too.)
I don't know much about OS X (but from what I've heard it should be
possible/relatively easy), but you might be able to get
The trac appears to be down. Here is a copy of the traceback I
received.
Python Traceback
Traceback (most recent call last):
File
/home2/turbogears/lib/python2.4/trac-0.10.3-py2.4.egg/trac/web/main.py,
line 387, in dispatch_request
dispatcher.dispatch(req)
File
Although the cherrypy filter is probably the way to go, if you need a
quick and dirty hack to do it you could wrap the expose decorator to
look for this in the input and make whatever changes are necessary that
way. If all you are doing is changing the CSS this can be really easy
by using a
On Jan 23, 7:01 pm, Mark Ramm [EMAIL PROTECTED] wrote:
I'd like to suggest that we do one on February 10th. We can meet in
the same A2 location, as well as virtually around the world, same as
last time.
Hah, I went to a baby shower during the last sprint, and will be
attending a wedding
There aren't really many recommendations. If you search through it you
can probably find a few threads where people are asking about breaking
up a monolithic controller file, which might help you out a bit.
I know of a few people (myself included) who create a /widgets
directory with its own
It looks like you can find the older eggs here:
http://trac.turbogears.org/browser/site_resources/oldeggs in svn, I
don't know if that covers everything though. If you need to figure out
the versions for 0.8.9's requirements it should be in the .egg-info
folder inside of that egg. I don't know of
python-cjson, which is evidently a dependency of ToscaWidgets 0.1a1,
failed to install because you have to have the .NET framework SDK
installed to build it on Windows. Install that then try the upgrade
again. Until you get it installed your active version of ToscaWidgets
will fail with
In theory, you shouldn't have many problems always including CSS *and*
always serving something that is nice and accessible. CSS is capable of
repositioning everything, and if you are willing to use conditional
comments[1] getting it all to work in IE isn't *too* painful. The
problem is that at
Julio Oña wrote:
Hi Lee,
Just create a class with all your common definition (derived from SQLObject)
later derive from this class fore each of your tables.
for example:
class Common(SQLOBject):
name = StringCol()
age = IntCol()
[...]
I *think* this needs to derive from
That file should be in your current directory. You can also pass the
full path to the current directory as a command line argument.
Please note that TG actually does this by default, just in a slightly
different way. I would recommend sticking with their version unless you
are just testing this
I don't really think the rate of documentation change/creation/whatever
has much to do with anything other than interest in writing
documentation. No one enjoys it, and most people would rather A) hack
on TG, B) hack on their own code, or C) do just about anything else.
Creating a doc team would
At the moment, TurboGears does not work with Python 2.5, so it looks
like we are out of luck here. As far as I know the only real obstacle
to 2.5 support is RuleDispatch, which is used in a couple of places. I
*think* RuleDispatch has a patch to support python2.5 under x86, which
would make it
Wow ... much bigger response than I thought this would get to this.
When I first agreed to start doing mailing list summaries here, I had
some of the same ideas. I even started a project to implement them (
http://code.google.com/p/summado ) That is about as far as I got. The
first summary I put
It is becoming obvious to me (and everyone else, most likely) that I am
not going to be able to keep up with summaries for this list. In my
opinion the list is simply bigger than that. The python-devel list
(referenced in the first call for summaries) experienced roughly 1/4 of
the volume in Dec
I would say go ahead and submit a patch, worst thing that will happen
is it will get rejected ... but I doubt that. If you would like to see
more of these changes start a thread on turbogears-trunk and discuss it
with the devs there. Most likely this post got missed in the ever
increasing level
I do. Well, I will as soon as I get back home to a box that has emacs
on it. I'm still far in the learning stages with Emacs and have been
wondering if anyone else around here uses it. Maybe some kind of
turbogears minor is in order, could be a good way for me to finally get
around to learning
iain duncan wrote:
snip
If I could go back in time to talk to myself, I would tell myself not to
just learn code from sites but start with a proper book on html/xhtml,
css, and javascript. There are waaay too many out of date or plain bad
examples and tutorials on the net. These are your
Look through your code and see if you accidentally wrote a call to
'get_fref()' instead of 'get_href()'. This function is available as
'tg.paginate.get_href' in your template. If it isn't that then please
post a traceback and the version of TG you are using.
-Adam
Christopher Arndt wrote:
Adam Jones schrieb:
There is only a slight problem though, we wanted to use
http://www.example.com/$username; as the url, not /sample. To solve
this you should probably look into CherryPy filters, which are designed
for this sort of thing.
I don't think that you
Christopher Arndt wrote:
Adam Jones schrieb:
There is only a slight problem though, we wanted to use
http://www.example.com/$username; as the url, not /sample. To solve
this you should probably look into CherryPy filters, which are designed
for this sort of thing.
I don't think that you
AFAIK the IRC meeting will be tomorrow, so I don't think you've missed
it.
I would appreciate a transcript of the meeting though, as I don't think
I will be able to get away from work long enough to attend. It looks
like you can fish one out of the archives at:
If you haven't seen it yet you might want to check out the
documentation at:
http://docs.turbogears.org/1.0/PaginateDecorator
Please let me know if you find anything missing or confusing.
-Adam
--~--~-~--~~~---~--~~
You received this message because you are
For everyone looking for the next mailing list summary, yes, I realize
it is overdue. For some reason I thought the list traffic would slow
down over the holidays and I could rely on it being reasonable when I
got back. I was obviously wrong (there have been somewhere around 150
threads since
I am assuming that by static resource/directory you mean a portion of
a url, like - http://www.example.com/$username/ - If that is the case
then what you are looking for should be relatively easy, with one small
exception.
First off, you will have to secure the controller. Since you are
You have comments closed on the blog, so i'll post this here. You might
want to consider using a domain socket instead of a local port to
connect to your database. I'm not really sure if that will have any
effect on MySQL dropping connections to your TG instance, but it does
have other benefits.
I also have to ask, is any part of stylo.tv running on TG? If so do you
mind adding (or having someone else add) a link to
http://docs.turbogears.org/1.0/SitesUsingTurboGears
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Ilias Lazaridis wrote:
Ο/Η Diez B. Roggisch έγραψε:
If all it takes to make a good post is to remind people that more/better
documentation is needed, I just set up a daily reminder post and become
poster-of-the-week for the next year or so. Because that is true for
nearly every project
chiangf wrote:
Thanks so much for all the responses. It worked!
But... really? This is how things work in Python? Because it seems
like quite a headache.
A lot of things seem like quite a headache before you understand them.
Only some of them stay a headache after you do. Python imports
That looks pretty good. Note that you will be using the name of a
ForeignKey to access what it is linking to from an object, so to get
the name of a type of equipment you would be doing something like:
Equipment.get(id).type_id.name
I've found that dropping the _id from the column name makes
--egg is a command line option to the sqlobject-admin tool that is
used by tg-admin sql. Basically tg-admin sql * gathers some
project-specific information then calls the appropriate command from
the sqlobject-admin tool. What versions of these components are you
using? You can get a full list
Postgres needs psycopg 2 if you are using unicode. It's in the docs,
although this bit needs to be reworked as
http://docs.turbogears.org/1.0/AlternativeDatabaseAccess is not where I
would expect to go for info on setting up postgres. Considering I did
the port from trac I guess I should get
Ian Charnas wrote:
Any news on that?
Daniel, yes it's done, I forgot to post it. I have it in html on my
computer now, and I'm trying to get it up on docs.turbogears.org and I
see I finally have to learn moin moin, something I've been avoiding for
no particular reason. I lost my
Karl Guertin wrote:
On 12/19/06, Christopher Arndt [EMAIL PROTECTED] wrote:
With a normal screensize (i.e. 1280x1024) and using an IDE it is very
difficult
to have an editing window even 80 chars wide in an acceptable font size.
1280x1024 seems small for a work screen unless you're on
[EMAIL PROTECTED] wrote:
Hi guys!
I have a suggestion about the controllers, suppose the following code:
. class Root(controllers.RootController):
. @expose(template=cheetah:myproject.templates.index)
. def index(self):
. return {}
Why don't presume where the template
Whenever I do stuff like that I end up saying that I outsmarted myself
with it. The nice part about this kind of stuff is that once the
embarrassment wears off you still have a useful tool to work with.
-Adam
--~--~-~--~~~---~--~~
You received this message
chiangf wrote:
I'm still in the Java mindset so I haven't figured out Python packages
yet. My controllers.py file is a little big for my tastes and it takes
a while to scroll around. So I want to split it up.
To make it simpler to describe, let's say that I want to split it into
three
Steve Bergman wrote:
With TG, it seems like I am forever fumbling around for a mini-howto on
a wiki somewhere when what I need is reference documentation at a known
location.
Thanks for the feedback. If you have any specific examples you can
think of, I would love to hear it. After you
Steve Bergman wrote:
Spider wrote:
I think this was fixed in ticket #1163 only a few days ago. It looks
like it should be in 1.0b2, however.
Apparently not. This just tripped me up using a project newly created
with 1.0b2.
Yes, this is still a problem in 1.0b2. It should be fixed in
Lee McFadden wrote:
On 12/14/06, Spider [EMAIL PROTECTED] wrote:
Adam, excellent work, but one request - could you change the date
format to something more internationally comprehensible? So rather than
12/04/06 - 12/13/06
I'd prefer
2006/12/04 - 2006/12/13
+1 on this. To
Jorge Vargas wrote:
On 12/14/06, Steve Bergman [EMAIL PROTECTED] wrote:
I'm moving an app which uses FastData from 0.9a3 to 1.0b2. I'm getting
the traceback below.
I'll probably rewrite the FastData parts to use a regular grid. But
I'm curious about the status of FastData. The
With longer bits of code like this you might want to consider using our
paste instance at: http://paste.turbogears.org
It is a lot easier to just give the link than it is to let the mailing
list mangle your Python code on longer snippets like this.
I am guessing that your problem is that
Spider wrote:
Adam, excellent work, but one request - could you change the date
format to something more internationally comprehensible? So rather than
12/04/06 - 12/13/06
I'd prefer
2006/12/04 - 2006/12/13
Thanks
I'll try to remember that for next time. I just copied and pasted
Christopher Arndt wrote:
Adam Jones wrote:
IMO anyone who
deletes files without knowing what they are needs that kind of learning
experience anyways.
I agree :-)
I've seen that you put this recipe in the official docs. Here's a few
remarks and questions:
- The setup.py snippet
Don't forget that you can always create a file-like object that wraps
this config file and decrypts it under whatever necessary conditions.
ConfigObj will work with anything that support read() (among a huge
variety of other options). It looks like the TG code that wraps it
won't really step in
Christopher Arndt wrote:
Adam Jones schrieb:
The reason I like command.py is that it seems appropriate to place
anything that ends up on the command line there, so your startup
function, command-line scripts, tg-admin extension(s) ... they can all
go in one place. Sort of like how
, as the volume on the list has increased
dramatically. Adam Jones agreed to do so. Multiple options for handling
summary writing were discussed and a project to help make summaries a
collaborative procedure has been started.
- `I surrender
http://groups.google.com/group/turbogears/browse_thread/thread
Arthur Clune wrote:
On 13 Dec 2006, at 19:52, Adam Jones wrote:
Please contact me
with any comments or questions either here or off the list.
That is really, really useful. Thanks for the work. Will this
be posted somewhere online or on a separate list?
Right now this is the only
[EMAIL PROTECTED] wrote:
On Dec 13, 1:11 pm, Adam Jones [EMAIL PROTECTED] wrote:
Arthur Clune wrote:
On 13 Dec 2006, at 19:52, Adam Jones wrote:
Please contact me
with any comments or questions either here or off the list.
That is really, really useful. Thanks for the work
I don't know about default, but optional and trivial sounds good to
me. There is not much to stop us from switching to putting the startup
command in a command.py file in the project folder and
importing/running from start-projectname.py. From there setup.py can
have a console script line
Christopher Arndt wrote:
Adam Jones schrieb:
I don't know about default, but optional and trivial sounds good to
me. There is not much to stop us from switching to putting the startup
command in a command.py file in the project folder and
importing/running from start-projectname.py
[EMAIL PROTECTED] wrote:
Karl,
On Dec 8, 8:12 pm, Karl Guertin [EMAIL PROTECTED] wrote:
On 12/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I would like to use nvu to edit/create kid templates. It works OK as
long as the paths to the CSS and image files are relative (i.e.
Alberto Valverde wrote:
On Dec 9, 2006, at 4:49 PM, chiangf wrote:
I tried doing something like (not sure if this is what you meant?):
class Controller:
@expose()
def index(self, **kw):
if kw.get('action_kung'):
self.kung(**kw)
elif
Neil Ludban wrote:
On Sat, 09 Dec 2006 14:10:44 +
Matt Wilson [EMAIL PROTECTED] wrote:
I'm running my TG site behind apache2 in a subdirectory.
My site is at http://example.com, and I want
http://example.com/mytgproject to be my TG project.
I followed the instructions on the
Chris Cioffi wrote:
Now that I've had the chance to both go through the book and update my app
I'm starting to add TurboGear-ism to my toolbox of Python idioms and I was
wondering if there was any interest in creating a Zen of TG page along the
lines of 'import this' in Python?
These
Ok, maybe that is a little melodramatic, but there are a lot of cool
things setuptools can do for you. One of the really nice ones is
automatically generating platform-specific console scripts and
installing them in the appropriate console directory. You have already
seen this done, since it is
Suren wrote:
Correction: When I remove all the mochi:format text, I can sort and
render it correctly.
Although, I was wondering why Genshi errors out when I include it. Thx
The mochi:format portion uses the xml namespace mochi You probably
did not have that defined in the template. It can
[EMAIL PROTECTED] wrote:
On Dec 7, 6:29 pm, John M Camara [EMAIL PROTECTED] wrote:
Adam Jones wrote:
I'm thinking about putting together a site that pulls the last 50
threads feed off Google Groups and uses it as a basis. Then from there
I can access a thread directly, write
Any pointers on how these summaries are done? I probably have time to
do them, just need some direction on how to decide what is worth
including, where/how they should be available, etc etc.
-Adam
--~--~-~--~~~---~--~~
You received this message because you are
Marco Mariani wrote:
Christopher Arndt wrote:
Suren schrieb:
If I have multiple buttons on a form, how does the controller which
button has been clicked? I can send all submits to one controller
method but how to determine which of those four buttons were clicked?
BTW, for the
Hmm, this should be interesting. I probably will use ReST to format
these as it is a lot easier to move from the list to a web page. Maybe
make a directory on the docs wiki to store these so they can be edited
piecemeal throughout the week? I'll see what I can come up with.
-Adam
Tim Lesher wrote:
On 12/7/06, Adam Jones [EMAIL PROTECTED] wrote:
Hmm, this should be interesting. I probably will use ReST to format
these as it is a lot easier to move from the list to a web page. Maybe
make a directory on the docs wiki to store these so they can be edited
John M Camara wrote:
Adam Jones wrote:
I'm thinking about putting together a site that pulls the last 50
threads feed off Google Groups and uses it as a basis. Then from there
I can access a thread directly, write a summary on the site, then when
finished click go to generate the full
That is part of CherryPy. It is turned off with the production config
(gives a 500 error instead). See the section on 'server.environment' on
this page for details:
http://docs.turbogears.org/1.0/Configuration
-Adam
--~--~-~--~~~---~--~~
You received this
Sanjay wrote:
The docs should probably have a link to this, but you can find the
whole thing in a trac ticket. Evidently paginate.py diff 6 is the one
you want.
http://trac.turbogears.org/turbogears/ticket/1115
Thanks! Some layman questions:
1. Could not trace whether the patches
Doug Grainger wrote:
if it's at the root, then to get to the page, i do http://server/; and
go directly to the application. i'd prefer to have it be at
http://server/application/;, though, because the web server that i'm
installing it on has some other stuff on it that i don't want to
Sanjay wrote:
Hi Adam,
Thanks a lot! I found patch already installed in my system(FC5).
Thinking to apply all patches, rather than taking the risk of applying
only one...
I would recommend applying only the last one first. Either way keep a
backup of the original file to make testing
Mark Ramm wrote:
On 12/4/06, Steve Bergman [EMAIL PROTECTED] wrote:
It seems the Elves were at work last night:
http://www.turbogearsbook.com/code/chapter-3.zip
http://www.turbogearsbook.com/code/bookmarker-v1.zip
http://www.turbogearsbook.com/code/bookmarker-v2.zip
Sanjay wrote:
The help documentation and discussion forum indicate that some work was
going on to support sqlalchemy for paginate. Like to know whether it is
incorporated in 1.0b2...
The docs should probably have a link to this, but you can find the
whole thing in a trac ticket. Evidently
MR wrote:
Hi everyone,
I spent an awful lot of time last night learning that if I instantiate
a widget and call it's render method that the javascript files
referenced with javascript = JSLink(...) are apparently not made
available in the serialized output (or any other way I could find)
mulicheng wrote:
I'm working on a little sub project to allow a few of the sites I've
got running to share some common functionality. Part of the solution
requires a common template. (similar to a widget)
* I want the template to be defined in the common code base.
* I want the
Sanjay wrote:
Hi All,
A belated but big thanks to Adam and all who guided and inspired an
amateur like me to code a pattern for integrating openid with
turbogears identity.
I have a sample working project. Me being an amateur in Python,
Turbogears and Web technologies, the approach and
Karl Guertin wrote:
On 11/30/06, Adam Jones [EMAIL PROTECTED] wrote:
I created a space on RoughDocs where I can post links relating to this,
I don't plan on changing anything in the actual identity docs until at
least some of the people are happy.
I'm happy with the split. Thanks
My understanding is that tg-admin update should take care of this.
Did you do this on the project before trying to run it? Note that, if
you try this on something else, don't universally accept file
replacements as it might mess up your controller/model/etc files.
-Adam
Matt Wilson wrote:
I provide the user's account and password outside of the website. On a
user's first login, I want to put up a welcome screen.
Is there already support in the TG identity model to detect a user's
first login?
None that I am aware off. Pretty much everything that is
gasolin wrote:
Adam:
BTW, to avoid forgetting add dependency while release and blah blah in
setup, I'm looking forward your TurboSetup (especially the doc):-D
Dependency processing would be ... interesting from TurboSetup. At
least on my ubuntu system I have to install any eggs as Root,
thesamet wrote:
Fred, Thanks for making tg-migrate. It works great for me.
The hints given by tg-admin tg-migrate migrate help are really
helpful to get you started quickly.
I'd also like to know whether it makes sense to manage my changes
repository under svn?
It might make sense if you
Ilias Lazaridis wrote:
gasolin wrote:
Hi:
I've submitted an project to cheeseshop called tgmigrate
http://www.python.org/pypi/tgmigrate/
Can I use this to provide an automated schema-evolution (migration)
support?
tgmigrate integrates the Migrate project for SQLAlchemy with
flyingfrog wrote:
Thanks Adam, but i can't understand where did i go wrong. I just
imported my classes in model.py, and copyed the db file into turbogears
but when i run tg-admin toolbox catwalk is empty!
If you run tg-admin shell are you able to access the SO classes you are
importing? This
Kevin Dangoor wrote:
Hi Iain,
On Dec 1, 2006, at 2:14 AM, iain duncan wrote:
As far as I can tell, it is currently impossible to install from the
turbogears site without hacking of setup scripts beyond my ken.
I would say this is a serious issue, as it seems there is no backup
1 - 100 of 268 matches
Mail list logo