[tg-docs] Re: Comment spam...

2007-02-15 Thread Adam Jones
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

[TurboGears] Re: Problem with expanding the default identity model a bit

2007-02-15 Thread Adam Jones
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

[TurboGears] Re: Widget Replacement with Javascript and JSON

2007-02-13 Thread Adam Jones
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

[TurboGears] Re: CheckBoxTable widget and RemoteForm together doesn't work

2007-02-11 Thread Adam Jones
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

[TurboGears] Re: How start app //outside// of source code directory?

2007-02-08 Thread Adam Jones
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

[TurboGears] Re: Stuck on a widget question

2007-02-07 Thread Adam Jones
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

[TurboGears] Re: is order of decorators still important?

2007-02-07 Thread Adam Jones
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

[TurboGears] Re: How to do one site with many different languages or brands?

2007-02-02 Thread Adam Jones
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

[TurboGears] Re: Announcing TurboLucene

2007-01-31 Thread Adam Jones
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

[TurboGears] Re: The permance test of 6 leading web-frameworks.

2007-01-30 Thread Adam Jones
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

[tg-trunk] irc log bot...

2007-01-29 Thread Adam Jones
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

[tg-trunk] Re: Plugin system question...

2007-01-29 Thread Adam Jones
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.

[TurboGears] ANN: TestDataGears 0.1

2007-01-29 Thread Adam Jones
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

[TurboGears] Re: site alignment

2007-01-29 Thread Adam Jones
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

[tg-docs] Re: Visit Framework Doc

2007-01-28 Thread Adam Jones
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

[tg-trunk] Plugin system question...

2007-01-28 Thread Adam Jones
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

[tg-trunk] Re: Plugin system question...

2007-01-28 Thread Adam Jones
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

[TurboGears] Re: pysqlite cheeseshop entry fixed

2007-01-28 Thread Adam Jones
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

[tg-docs] Re: Visit Framework Doc

2007-01-27 Thread Adam Jones
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

[TurboGears] Re: Turbogears consultant?

2007-01-27 Thread Adam Jones
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

[TurboGears] Re: Turbogears consultant?

2007-01-27 Thread Adam Jones
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

[TurboGears] Re: Bundling into a self-contained turbogears app--easy/possible/hard?

2007-01-26 Thread Adam Jones
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

[tg-trunk] trac is down...

2007-01-25 Thread Adam Jones
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

[TurboGears] Re: Global URL parameters

2007-01-24 Thread Adam Jones
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

[TurboGears] Re: Doc Sprint 2.0

2007-01-23 Thread Adam Jones
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

[TurboGears] Re: Proper organization for TG file structure?

2007-01-22 Thread Adam Jones
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

[TurboGears] Re: Need to install TurboGears 0.8.9

2007-01-22 Thread Adam Jones
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

[TurboGears] Re: ToscaWidgets broke My TG install:

2007-01-22 Thread Adam Jones
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

[TurboGears] Re: Opinions wanted on degrading strategy

2007-01-20 Thread Adam Jones
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

[TurboGears] Re: sqlobject and tables

2007-01-20 Thread Adam Jones
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

[TurboGears] Re: More cool stuff from the dark corners of setuptools

2007-01-19 Thread Adam Jones
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

[tg-docs] Re: Post DocSprint observations

2007-01-14 Thread Adam Jones
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

[TurboGears] Re: Portable Python needs help

2007-01-14 Thread Adam Jones
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

[TurboGears] Re: I surrender (second edition)

2007-01-12 Thread Adam Jones
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

[TurboGears] I surrender (second edition)

2007-01-11 Thread Adam Jones
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

[TurboGears] Re: td in DataGrid should have css class

2007-01-05 Thread Adam Jones
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

[TurboGears] Re: Emacs: switch between template and controller

2007-01-04 Thread Adam Jones
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

[TurboGears] Re: What's My Learning Path?

2007-01-04 Thread Adam Jones
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

[TurboGears] Re: Paginate decorator problem

2007-01-02 Thread Adam Jones
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

[TurboGears] Re: Securing Resources

2007-01-02 Thread Adam Jones
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

[TurboGears] Re: Securing Resources

2007-01-02 Thread Adam Jones
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

[TurboGears] Re: IRC meeting transcript

2007-01-02 Thread Adam Jones
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:

[TurboGears] Re: Paginate decorator problem

2007-01-02 Thread Adam Jones
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

[TurboGears] Update on mailing list summary...

2007-01-02 Thread Adam Jones
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

[TurboGears] Re: Securing Resources

2007-01-01 Thread Adam Jones
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

[TurboGears] Re: WestHost ServerPronto hosting

2006-12-20 Thread Adam Jones
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.

[TurboGears] Re: WestHost ServerPronto hosting

2006-12-20 Thread Adam Jones
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

[TurboGears] Re: turbogears or django?

2006-12-19 Thread Adam Jones
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

[TurboGears] Re: Splitting up controllers

2006-12-19 Thread Adam Jones
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

[TurboGears] Re: Do I get it?

2006-12-19 Thread Adam Jones
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

[TurboGears] Re: Debian Sarge/easy_install troubles

2006-12-19 Thread Adam Jones
--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

[TurboGears] Re: Another problem with the Wiki 20 tutorial

2006-12-19 Thread Adam Jones
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

[TurboGears] Re: Upload Progress Bar?

2006-12-19 Thread Adam Jones
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

[TurboGears] Re: TG and pylint

2006-12-19 Thread Adam Jones
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

[TurboGears] Re: Template name in expose

2006-12-18 Thread Adam Jones
[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

[TurboGears] Re: OT - stupid mistake

2006-12-17 Thread Adam Jones
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

[TurboGears] Re: Splitting up controllers

2006-12-17 Thread Adam Jones
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

[TurboGears] Re: turbogears or django?

2006-12-17 Thread Adam Jones
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

[TurboGears] Re: Quickstart with SQLAlchemy and Identity in 1.0b2

2006-12-16 Thread Adam Jones
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

[TurboGears] Re: 12/04/06 - 12/13/06

2006-12-15 Thread Adam Jones
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

[TurboGears] Re: FastData?

2006-12-15 Thread Adam Jones
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

[TurboGears] Re: Verify Roles

2006-12-15 Thread Adam Jones
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

[TurboGears] Re: 12/04/06 - 12/13/06

2006-12-14 Thread Adam Jones
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

[TurboGears] Re: More cool stuff from the dark corners of setuptools

2006-12-14 Thread Adam Jones
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

[TurboGears] Re: more secure config files for TurboGears?

2006-12-14 Thread Adam Jones
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

[TurboGears] Re: More cool stuff from the dark corners of setuptools

2006-12-13 Thread Adam Jones
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

[TurboGears] [TurboGears mailing list summary] 12/04/06 - 12/13/06

2006-12-13 Thread Adam Jones
, 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

[TurboGears] Re: [TurboGears mailing list summary] 12/04/06 - 12/13/06

2006-12-13 Thread Adam Jones
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

[TurboGears] Re: 12/04/06 - 12/13/06

2006-12-13 Thread Adam Jones
[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

[TurboGears] Re: More cool stuff from the dark corners of setuptools

2006-12-12 Thread Adam Jones
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

[TurboGears] Re: More cool stuff from the dark corners of setuptools

2006-12-12 Thread Adam Jones
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

[TurboGears] Re: Templates and paths

2006-12-11 Thread Adam Jones
[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.

[TurboGears] Re: Multiple buttons on a single form

2006-12-09 Thread Adam Jones
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

[TurboGears] Re: Running site in a subdirectory behind apache breaks widget javascript loads

2006-12-09 Thread Adam Jones
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

[TurboGears] Re: Zen of TurboGears?

2006-12-09 Thread Adam Jones
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

[TurboGears] More cool stuff from the dark corners of setuptools

2006-12-09 Thread Adam Jones
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

[TurboGears] Re: genshi and mochikit

2006-12-09 Thread Adam Jones
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

[TurboGears] Re: I surrender

2006-12-08 Thread Adam Jones
[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

[TurboGears] Re: I surrender

2006-12-07 Thread Adam Jones
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

[TurboGears] Re: Multiple buttons on a single form

2006-12-07 Thread Adam Jones
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

[TurboGears] Re: I surrender

2006-12-07 Thread Adam Jones
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

[TurboGears] Re: I surrender

2006-12-07 Thread Adam Jones
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

[TurboGears] Re: I surrender

2006-12-07 Thread Adam Jones
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

[TurboGears] Re: When I throw an Exception in controller

2006-12-07 Thread Adam Jones
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

[TurboGears] Re: Paginate and SQLAlchemy

2006-12-06 Thread Adam Jones
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

[TurboGears] Re: non-root directory for apache proxy?

2006-12-06 Thread Adam Jones
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

[TurboGears] Re: Paginate and SQLAlchemy

2006-12-06 Thread Adam Jones
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

[TurboGears] Re: Brief Book Review

2006-12-05 Thread Adam Jones
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

[TurboGears] Re: Paginate and SQLAlchemy

2006-12-05 Thread Adam Jones
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

[TurboGears] Re: Difference with JSLink with render() and display

2006-12-05 Thread Adam Jones
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)

[TurboGears] Re: Common templates for multiple sites

2006-12-05 Thread Adam Jones
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

[TurboGears] Re: OpenID implementation

2006-12-04 Thread Adam Jones
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

[tg-docs] Re: Details on Identity Management split?

2006-12-02 Thread Adam Jones
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

[TurboGears] Re: b2 just completely broke my site

2006-12-02 Thread Adam Jones
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

[TurboGears] Re: How to detect a first-time log in?

2006-12-02 Thread Adam Jones
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

[TurboGears] Re: Try sqlalchemy migrate with tg-admin command

2006-12-02 Thread Adam Jones
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,

[TurboGears] Re: Try sqlalchemy migrate with tg-admin command

2006-12-02 Thread Adam Jones
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

[TurboGears] Re: Try sqlalchemy migrate with tg-admin command

2006-12-02 Thread Adam Jones
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

[TurboGears] Re: My own model

2006-12-01 Thread Adam Jones
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

[TurboGears] Re: URGENT set up is broken/down

2006-12-01 Thread Adam Jones
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   2   3   >