[TurboGears] Re: Found the source of Kid's TypeError: 'NoneType' object is not callable error

2006-02-06 Thread Lee McFadden
On 2/6/06, Mike Sarahan [EMAIL PROTECTED] wrote: Good idea, Lee, but unfortunately, it didn't work. Same sitetemplate error showing up. Actually, looking closer at your traceback this looks more like some kind of path error. If you open up a python shell at any arbitary path you should

[TurboGears] Re: Using XMLRPC filter

2006-02-06 Thread Lee McFadden
On 2/6/06, reflog [EMAIL PROTECTED] wrote: well, I'll take a look at identity's code, but the wikis don't help, since they use deprecated syntax for filters. Not the first link that I gave you. That is the current documentation. Granted, the second link is slightly out of date in that it

[TurboGears] Re: TG on Twisted server

2006-02-03 Thread Lee McFadden
On 2/3/06, Karl Guertin [EMAIL PROTECTED] wrote: ... and perhaps RhubarbTart for wsgi-fied cherrypy that might work within twisted. RhubarbTart isn't a wsgi-fied CherryPy. It's a seperate beast that tries to impliment the style of the cherrypy api. It certainly won't drop into place

[TurboGears] Re: Is there a convenient solution to object names in urls?

2006-01-30 Thread Lee McFadden
On 1/30/06, Ksenia Marasanova [EMAIL PROTECTED] wrote: I think the addition of Routes to TG would be *very* welcome :) Routes has already got a non-working implimentation for TG in the wiki[1]. Unfortunately I'm not sure how to actually get the recipe working and it was abandoned as hacking

[TurboGears] Re: Is there a convenient solution to object names in urls?

2006-01-30 Thread Lee McFadden
Sorry, I missed the link[1] ;) [1] http://trac.turbogears.org/turbogears/wiki/RoutesIntegration

[TurboGears] DynamicSelectField widget

2006-01-30 Thread Lee McFadden
http://trac.turbogears.org/turbogears/ticket/475 Comments and discussion please. I think that this is a good addition to the base widgets. If not then I'll add it as a recipe for a custom widget on the wiki. (Copied from the ticket) Sometimes you don't know what a SelectField's options are

[TurboGears] Re: AutoComplete and CalendarDatePicker patches

2006-01-27 Thread Lee McFadden
Ticket updated with another patch that reverts some of these changes. Sorry, it seems I was looking at the wrong version of the file yesterday. I reverted it too far due to a typo while downloading a previous revision. :)

[TurboGears] Re: howto configure server start page

2006-01-26 Thread Lee McFadden
Another option could be to simply open the file and stream it directly without redirecting anywhere. I'm not sure how fast/slow this method would be though. @turbogears.expose() def index(self): import os return cherrypy.lib.cptools.fileGenerator(open(os.path.join(static,index.html),

[TurboGears] AutoComplete and CalendarDatePicker patches

2006-01-26 Thread Lee McFadden
I have two patches submitted to trac, and I thought I'd announce them here to try and get them committed. :) AutoCompleteField doesn't add it's value when it is within a form widget: http://trac.turbogears.org/turbogears/ticket/470 CalendarDatePicker doesn't allow empty values:

[TurboGears] Re: AutoComplete and CalendarDatePicker patches

2006-01-26 Thread Lee McFadden
On 1/26/06, Jorge Godoy [EMAIL PROTECTED] wrote: I've added some comments to this one. Specially one change that I'd like to see reverted from your patch. I've copied this from my comment on the ticket. I don't see how it would break any implimentation for the different CSS classes on the

[TurboGears] Re: cherrypy.request.paramMap

2006-01-25 Thread Lee McFadden
On 1/24/06, Mike Sarahan [EMAIL PROTECTED] wrote: File /home/.castor/mikez0r/elementarycatastrophe.com/photogal/photogal/contro llers.py, line 416, in edit itemlist=itemlist+'%s=%s' % name,value TypeError: not enough arguments for format string I would just add an if to make sure

[TurboGears] Re: cherrypy.request.paramMap

2006-01-25 Thread Lee McFadden
I had to rush the last bit... the penultimate line shuold be: previous_url=%s%s % (previous_url[52:], itemstring) Lee

[TurboGears] Re: cherrypy.request.paramMap

2006-01-25 Thread Lee McFadden
On 1/25/06, Mike Sarahan [EMAIL PROTECTED] wrote: Lee, Thanks for your help. No problem :) So it's getting the parameters for both the referring page (album gets pathadd) and the edit page (gets alt_ID). [...] Why would it be picking up parameters from the edit method? The answer is,

[TurboGears] Re: Found the source of Kid's TypeError: 'NoneType' object is not callable error

2006-01-25 Thread Lee McFadden
This is really getting to be a bane for me. After a while I'll get the following traceback: Page handler: bound method Root.search of archive.controllers.Root object at 0x00FAE2F0 Traceback (most recent call last): File

[TurboGears] Re: Found the source of Kid's TypeError: 'NoneType' object is not callable error

2006-01-25 Thread Lee McFadden
On 1/25/06, Jorge Godoy [EMAIL PROTECTED] wrote: Just as a feedback: definitely the change has broken something here. I've restored my old configuration and the problems I related were solved. What I did was (from the top of my head, I haven't written down what I did and haven't repeated

[TurboGears] Re: Found the source of Kid's TypeError: 'NoneType' object is not callable error

2006-01-25 Thread Lee McFadden
On 1/25/06, Sean De La Torre [EMAIL PROTECTED] wrote: The problem has completely gone away with the hack in place, however, hopefully a real patch will be created to solve the issue. Unless I'm missing something _freshen_template() is no longer used at all in kidsupport.py. I'll look for it

[TurboGears] Re: egg, svn problem with INITools

2006-01-24 Thread Lee McFadden
This is actually a problem with svn rather than initools itself. I had the same problems while trying to svn up this morning. Keep trying and it will work eventually, it just has to have a full run where the svn server doesn't have a hissy fit. :) Lee

[TurboGears] Re: Found the source of Kid's TypeError: 'NoneType' object is not callable error

2006-01-24 Thread Lee McFadden
I'm still getting horrible issues with the NoneType is not callable error. I'm using kid as my template engine and, admittedly, this is from an older quickstarted project. I'm running on the latest SVN (as of 9am GMT this morning) and there is no longer a kidsupport.py for me to edit. If

[TurboGears] Re: Does anybody do webproject with frames/framesets on TurboGears?

2006-01-19 Thread Lee McFadden
On 1/18/06, northam [EMAIL PROTECTED] wrote: Any other ideas? I don't see so far. Is updating the page using javascript not an option? The sidebar stays static and you have a container div on the right... when clicking things on the sidebar you have a little bit of mochi ajax that updates

[TurboGears] Re: Trac is better now

2006-01-17 Thread Lee McFadden
502 Bad Gateway It's down again. :(

[TurboGears] CalendarDatePicker widget and empty defaults

2006-01-17 Thread Lee McFadden
I have a use case where I don't always want a default value in any of my fields, but the CalendarDatePicker widget was forcing one upon me. I've created my own version of the widget (I'm really becoming a fan of widgets) but I think this is a common enough use case for it to be available in

[TurboGears] Re: proper way to instantiate a widget with a specific set of data

2006-01-17 Thread Lee McFadden
On 1/6/06, Karl Guertin [EMAIL PROTECTED] wrote: The data is expected to be a class with attributes matching the names in the form, but if you pass in a dict with the correct keys it gets converted. The names in the data and on the text fields have to match. This still does not work for me.

[TurboGears] Re: server crashes frequently

2006-01-17 Thread Lee McFadden
This happens all the time for me, but since I run a lot of other bits and pieces on this machine I assumed it was a problem at my end and I switched off autoreload. I have many RelatedJoins in all my models. I'll try creating a simple one without any later and see if that causes any problems on

[TurboGears] Re: Virtual hosting options for Turbogears application

2006-01-17 Thread Lee McFadden
I currently use Linode.com for my VPS needs. I have one server that runs my blog, planet.turbogears.org, a test TG app and 3 other websites. Bandwidth is huge and the support is excellent. Also, when they move to Xen the performance will be blazing.

[TurboGears] Re: Trac is better now

2006-01-17 Thread Lee McFadden
On 1/17/06, Kevin Dangoor [EMAIL PROTECTED] wrote: At least the database works :) All clouds have their silver lining I suppose. :)

[TurboGears] Re: Virtual hosting options for Turbogears application

2006-01-17 Thread Lee McFadden
On 1/17/06, srid [EMAIL PROTECTED] wrote: I am also a bit skeptical about VPS (as I'm new). Linode offers 3gb disk space. But installing a distro, alone will take around 1.5gb, right? What about your case, splee? -- Sridhar Ratna - http://www.24dot1.com/ I have 6GB on my plan, and even

[TurboGears] Re: proper way to instantiate a widget with a specific set of data

2006-01-17 Thread Lee McFadden
On 1/17/06, Kevin Dangoor [EMAIL PROTECTED] wrote: What does not work for you? Passing a dict? Kevin Yes, passing a dict does not work. I have the following code (just to make sure it wasn't my controller code messing things up) span

[TurboGears] Re: Virtual hosting options for Turbogears application

2006-01-17 Thread Lee McFadden
On 1/17/06, Sridhar Ratna [EMAIL PROTECTED] wrote: And, I have come across another Xen hosting provider - http://www.xelhosting.com/ They give 128MB of RAM and their plans are relatively cheap. Your suggestions? I've never used xelhosting so I can't attest to their service. I reccomend

[TurboGears] Re: Enhanced tg_flash.

2006-01-17 Thread Lee McFadden
Just a bit of self promotion and a possible solution to your needs: http://www.splee.co.uk/2005/11/23/fancy-status-messages-using-tg_flash/ Lee

[TurboGears] Re: Trac woes (again).

2006-01-16 Thread Lee McFadden
Trac is down again with the 502 Bad Gateway error. Kevin, is there anything special about TG's Trac setup that would keep causing this error? I have Trac set up on a few boxes and I've never had any issues with it. Granted, they don't get as much traffic as the TG one, but all the same... Lee

[TurboGears] Re: [ticket] Catwalk inline releated tables and the Javascript table widget

2006-01-16 Thread Lee McFadden
On 1/15/06, Richard (koorb) [EMAIL PROTECTED] wrote: On the subject of the remove button, why is it a division symbol? I have often thought the same thing. Although not complete, I would suggest using some of the icons from the Tango Project[1] as they are free for use wherever. Lee [1]

[TurboGears] Trac woes (again).

2006-01-13 Thread Lee McFadden
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

[TurboGears] Re: Nested/Iterated widgets and JS/CSS

2006-01-12 Thread Lee McFadden
On 1/12/06, Kevin Dangoor [EMAIL PROTECTED] wrote: This is one of those places where resorting to magic maybe wasn't the best idea. I just haven't thought of a better way to do it. The values of the returned dictionary are scanned for widgets, and the CSS/JS refs are pulled from there. By

[TurboGears] Re: SQLObject

2006-01-12 Thread Lee McFadden
On 1/12/06, Rubic [EMAIL PROTECTED] wrote: I came to TurboGears with the perception that SQLObject was optional, but if TG components are going to be tightly coupled to it then I may need to reevaluate my choices. Jeff Bauer I haven't been using Identity yet, but I have been following

[TurboGears] Devcast files

2006-01-12 Thread Lee McFadden
Kevin, Would it be possible to have the files you used for the widget's devcasts available for download? They'd be very handy as a reference not only for myself but to refer others to when they ask questions in IRC/here. Thanks in advance, Lee

[TurboGears] Re: Devcast files

2006-01-12 Thread Lee McFadden
On 1/12/06, Jared Kuolt [EMAIL PROTECTED] wrote: This brings up a thought that I've forgotten about for a while: should we have an example code library? I've often thought about that too. http://snippets.turbogears.org would be nice, and it might be a nice showcase of what turbogears can do

[TurboGears] Re: Devcast files

2006-01-12 Thread Lee McFadden
On 1/12/06, Kevin Dangoor [EMAIL PROTECTED] wrote: You should be able to right click and Save Target As Kevin Sorry, I meant the source code that you use *in* the devcast rather than the devcast itself.

[TurboGears] Re: toolbox in windows

2006-01-10 Thread Lee McFadden
On 1/10/06, Helio MC Pereira [EMAIL PROTECTED] wrote: Hi all, I have tryed toolbox in my linux and it works, but when I try to run it in a windows system, I have a python process with 70% from cpu and It opens the IE to http://localhost:7654 with nothing... and don't give me any error.

[TurboGears] Re: toolbox in windows

2006-01-10 Thread Lee McFadden
On 1/10/06, Tim Lesher [EMAIL PROTECTED] wrote: I wouldn't call it intermittent; it's completely reproduceable. Intermittent probably wasn't the right word. Occasional? Anyhow, it doesn't happen all the time is what I mean ;)

[TurboGears] Re: identity tables shouldn't exist if you're not using identity

2006-01-10 Thread Lee McFadden
+1 +1 for visitor tracking being off by default too (as it's tied in with identity somewhat). A simple toggle in the config is about as simple as it gets imho, and it'll still be great when you do enable it.

[TurboGears] Re: UNSUBSCRIBE (For the time being-thanks)

2006-01-09 Thread Lee McFadden
To unsubscribe you have to go to http://groups.google.com/group/turbogears and follow the unsubscribe link there.

[TurboGears] Re: shell hub.commit() question

2006-01-07 Thread Lee McFadden
The rollback (I'm guessing) is a safety net to prevent any transactions (possibly in another thread when running in an actual app rather than the shell) from being cut off in the middle without a rollback/commit. On 1/7/06, agreif [EMAIL PROTECTED] wrote: Hi, I have the following question

[TurboGears] Re: File upload blocks other requests

2006-01-07 Thread Lee McFadden
If you're running in development mode which is the default when you run python projectname-start.py, make sure your dev.cfg has it's threadpool set higher than 1. On 1/7/06, agreif [EMAIL PROTECTED] wrote: Hi, I experienced the following problem with TG 08a5 and CherryPy 2.1.0 on Linux:

[TurboGears] Re: File upload blocks other requests

2006-01-07 Thread Lee McFadden
In either dev.cfg or prod.cfg add/amend the following: server.threadPool = 1 Make sure you have enough threads to handle the load. On one of my very low traffic internal apps I have this set to 5. The app in question deals with file uploads and I've not had a problem with it so far. Lee On

[TurboGears] Re: TG and Cherokee

2006-01-06 Thread Lee McFadden
Well, Cherokee doesn't seem to fully support FastCGI yet nor any other type of application gateway that is supported by TurboGears/CherryPy. However, there's a $700 bounty[1] to get FastCGI working so if you're really set on getting TG working with Cherokee... Your best bet would be to try

[TurboGears] Re: Using model.py outside of a TG Application

2006-01-06 Thread Lee McFadden
This is something that I ran aground on too. I ended up just having two models as my script (which is run by cron) doesn't have *anything* to do with cherrypy. On 06 Jan 2006 12:40:22 -0200, Jorge Godoy [EMAIL PROTECTED] wrote: Then you're assuming I'd use cherrypy. :-) I don't think I'd

[TurboGears] Re: Using model.py outside of a TG Application

2006-01-06 Thread Lee McFadden
Yes, I considered that but I don't want any old joe to run the task whenever they please just by going to the url. With the particular task in question it has the possibility for a DoS attack. On 06 Jan 2006 13:16:09 -0200, Jorge Godoy [EMAIL PROTECTED] wrote: Lee McFadden [EMAIL PROTECTED

[TurboGears] Re: Using model.py outside of a TG Application

2006-01-06 Thread Lee McFadden
On 1/6/06, Kevin Dangoor [EMAIL PROTECTED] wrote: But, if you're using TurboGears at all, you'll have CherryPy installed (it's part of install_requires). So, what's the problem with using cherrypy.config? There isn't, I sent my message at the same time you sent yours further explaining that

[TurboGears] Re: kid problem in turbogear

2006-01-05 Thread Lee McFadden
Enumerate may be your friend here: ?python pages = ['one','two','three','two'] ? div py:strip=True py:for=i,pagename in enumerate(pages) a href=${std.url('/%s' % pagename)} py:content=pagenameContent/a span class=separator py:if=len(pages) i|/span /div Now, I can't quite remember, but

[TurboGears] Re: How to avoid importing SQLObjectNotFound

2006-01-05 Thread Lee McFadden
I'm curious as to why you don't want to import SQLObjectNotFound. With SQLObjectNotFound in the except statement it's perfectly clear as to when you want the exception to be handled and when you don't. LookupError may cover other things in your try block and could cause bugs down the road. On

[TurboGears] Re: Identity framework: Session cookie not sent

2006-01-04 Thread Lee McFadden
Does it have to be a domain? What happens if you just want to run your site, internally, on an ip address with no domain associated with it? Will the ip then be substituted? Lee On 1/4/06, Jeff Watkins [EMAIL PROTECTED] wrote: According to section 4.2.2 of RFC 2109 (the Cookie spec) a

[TurboGears] Re: TurboGears new site look - let's get to it!

2006-01-03 Thread Lee McFadden
On 1/3/06, Richard (koorb) [EMAIL PROTECTED] wrote: [1] is a slightly different approach with the following provisos; - Three steps are just filler ideas, so both text and images should be improved. - Download Now grey box should have relevant information about the current release. -

[TurboGears] Re: Planet TurboGears

2006-01-03 Thread Lee McFadden
I most certainly can. You're added and the feed will be parsed on the next run (it runs once an hour). On 1/3/06, Lion Kimbro [EMAIL PROTECTED] wrote: Lee McFadden, could you add my blog to Planet TurboGears? RSS: http://lion.taoriver.net/?feed=rss2cat=3

[TurboGears] Re: [PATCH] AutoCompleteField fixes + enhancements

2005-12-27 Thread Lee McFadden
Rather than submitting actual patches here you should submit them on a ticket in trac[1]. Be sure to include [PATCH] in the title so it comes up in the report of pending patches. If you only post it here the patch may end up getting lost. :) Lee [1] http://trac.turbogears.org/ On 12/27/05,

[TurboGears] Re: How do you do Basic Authentication?

2005-12-27 Thread Lee McFadden
On 12/26/05, Lion Kimbro [EMAIL PROTECTED] wrote: I am grateful, but I was hoping that there was some method I could use from within 0.8. Unfortunately not. The identity framework is a new feature in 0.9. To use it you have to use the current development version of TurboGears.

[TurboGears] Re: Pattern matching for allowed hosts

2005-12-23 Thread Lee McFadden
I'm pretty sure that you can specify a subnet using the slash notation, e.g. to allow 192.168.1.* you can use 192.168.1.0/24. Lee On 12/23/05, .M. [EMAIL PROTECTED] wrote: Hi, I'm having some difficulties exposing Catwalk to a private network. We've tried the most recent release and found it

[TurboGears] Re: mod_python +tg -apache hangs on some requests

2005-12-22 Thread Lee McFadden
Possibly this is the cause/workaround for a similar problem when using the toolbox on some windows machines? On 12/22/05, Tim Diggins [EMAIL PROTECTED] wrote: Ok, I seem to have solved this problem or at least found the cause a workaround. For others reference here it is: when working

[TurboGears] Re: Installing .9

2005-12-21 Thread Lee McFadden
Just FYI, and so people might find this on the list in the future: To install turbogears 0.9 from SVN follow the instructions on the Contributing page[1]. There are some caveats and an extra requirement (RuleDispatch) but overall it's a fairly simple process. Hope this helps, and I hope I

[TurboGears] Re: Problems updating to latest svn version

2005-12-21 Thread Lee McFadden
On 12/21/05, jemi [EMAIL PROTECTED] wrote: Can someone _please_ give a more detailed instruction how to make the latest svn version work? Perhaps with fallback instructions what has to be removed before the installation if something goes unexpectedly wrong? I would like to spend my spare

[TurboGears] Re: Problems updating to latest svn version

2005-12-21 Thread Lee McFadden
Oh, and when I say nowhere near stable I mean that in terms of the API. When it's up and running and serving pages I've not encountered a problem with it so far.

[TurboGears] Re: setuptools is going crazy on latest SVN 0.9a0dev-r341 (on windows)

2005-12-20 Thread Lee McFadden
This is an old bug that keeps cropping up for no apparent reason. The toolbox works fine if you load it using tg-admin toolbox -n and then go directly to the tool you want to use (e.g. for catwalk you'd use http://localhost:7654/catwalk/). It's only the root that is broken on the toolbox, and

[TurboGears] Re: Agreement signed with Prentice Hall to publish a TurboGears book!

2005-12-19 Thread Lee McFadden
On 12/19/05, Michele Cella [EMAIL PROTECTED] wrote: Mmmm, it seems as you are not on Planet TurboGears, send an email to [EMAIL PROTECTED] if you would like to be added. I was about to say the same thing... either that or I can just add you now :) Lee

[TurboGears] Re: Tarball: Turbogears 0.9 but tg-admin 0.8a5?

2005-12-16 Thread Lee McFadden
tg-admin has probably been put in two different places when they've been installed. if you have it, make sure your locate db is updated (sudo updatedb) then do locate tg-admin. You'll most likely come up with two executables called tg-admin. Start each one with the full path (.e.g

[TurboGears] Re: Problem running under mod_python

2005-12-16 Thread Lee McFadden
You'll need to use a VirtualHostFilter[1]. The only documentation I could find (although I didn't look very hard) is the api docs. Lee [1] http://www.turbogears.org/docs/api/cherrypy.lib.filter.virtualhostfilter-module.html On 12/16/05, anders pearson [EMAIL PROTECTED] wrote: Angus Lee

[TurboGears] Re: svn-r323 sitetemplate.kid

2005-12-15 Thread Lee McFadden
You need Tortoise SVN for the mac. ;) (sorry, not very constructive) Lee On 12/15/05, Kevin Dangoor [EMAIL PROTECTED] wrote: On 12/14/05, Ksenia Marasanova [EMAIL PROTECTED] wrote: 2005/12/14, Kevin Dangoor [EMAIL PROTECTED]: Sorry about that. I should really put in a feature request

[TurboGears] Re: Raw requests and responses.

2005-12-14 Thread Lee McFadden
If you use @turbogears.expose() with no arguments you can output raw strings by returning them. If you want to return a binary file, take a look at the cherrypy wiki[1]. Lee [1] http://www.cherrypy.org/wiki/FileDownload On 12/14/05, Zarrabeitia [EMAIL PROTECTED] wrote: I'm very new with

[TurboGears] Re: Raw requests and responses.

2005-12-14 Thread Lee McFadden
a look at it tonight. I tried the expose() before posting, and the output looked a lot like json... I guess I was falling asleep already... On 12/14/05, Lee McFadden [EMAIL PROTECTED] wrote: If you use @turbogears.expose() with no arguments you can output raw strings by returning

[TurboGears] Re: TurboGears in the production

2005-12-13 Thread Lee McFadden
Same. I have a linode that is running a test version of TG very nicely. Linode are very good hosts IMHO. On 12/13/05, Karl Guertin [EMAIL PROTECTED] wrote: Every virtual server offering that I've seen gives you root access to your share. Support would therefore be the same as for a distro. I

[TurboGears] Re: TurboGears in the production

2005-12-12 Thread Lee McFadden
You are correct Richard. There are a few hosts that I know of who would allow this kind of setup; Dreamhost[1], Textdrive[2] and I think Site5[3] too. I would go as far as to say that any host that says they support Rails would probably allow you to run TurboGears too. Don't take my word for

[TurboGears] TG and Routes

2005-12-12 Thread Lee McFadden
I'm pretty sure that Kevin has something up his sleeve with regards to RESTful URLs in TG (what with that huge thread about URL preferences), but for those of us who either don't want to wait there's a recipe available on the Wiki[1] to integrate Routes[2] with TG. Enjoy, Lee [1]

[TurboGears] Re: TG and Routes

2005-12-12 Thread Lee McFadden
In actual fact, this doesn't work properly with expose. :( I was testing it simply with redirects and returning text... I shall fix it and try again. :) Lee On 12/12/05, Lee McFadden [EMAIL PROTECTED] wrote: I'm pretty sure that Kevin has something up his sleeve with regards to RESTful URLs

[TurboGears] Re: TG and Routes

2005-12-12 Thread Lee McFadden
a recipe for something they're trying out.) Kevin On 12/12/05, Lee McFadden [EMAIL PROTECTED] wrote: Ok, I'm kinda stuck here. The method I posted on the Wiki skips the @turbogears.expose for each function (which is actually what I should expect, had I really read things properly

[TurboGears] Re: TG and Routes

2005-12-12 Thread Lee McFadden
On 12/12/05, Simon Belak [EMAIL PROTECTED] wrote: On the other hand this needlessly complicates the hierarchy. What makes perfect sense for an URL may not lend itself to a pythonic program. When pushing for ultimate accessability and usability URLs should of course be considered but that is

[TurboGears] Re: TG and Routes

2005-12-12 Thread Lee McFadden
Ruggles [EMAIL PROTECTED] wrote: On Dec 12, 2005, at 10:48 AM, Lee McFadden wrote: Basically I want/need three urls for each unique file. /pickup/id - The basic starting point. /pickup/id/recipient - A page for the user to enter their email address /pickup/id/download - The method

[TurboGears] Re: TurboGears visuals for 0.9/1.0

2005-12-11 Thread Lee McFadden
On 12/11/05, koorb [EMAIL PROTECTED] wrote: http://koorb.co.uk/static/images/tglogos/layout.png comment away Awesome work. +1 on the idea of the O being 'cogified' too. The O and G meshing together giving a feeling of... well, meshing ;) I also like the idea of a bronze-ish G-gear,

[TurboGears] Re: unsubscribe

2005-12-11 Thread Lee McFadden
I think you'll find that you have to go to the google groups page to unsubscribe. http://groups.google.com/group/turbogears -- Lee Blog: http://www.splee.co.uk

[TurboGears] Re: Identity: Multiple authentication types

2005-12-10 Thread Lee McFadden
On 12/10/05, Jeff Watkins [EMAIL PROTECTED] wrote: Frankly, I don't like the disjoint users idea. I'd rather look at a single-sign-on style solution. Maybe with a cross provider credentialing scheme. I'll give this some thought in the next few days, but I *am* a little distracted right now:

[TurboGears] Re: Changes to i18n package

2005-12-10 Thread Lee McFadden
Gear Up, while probably not proper english, is generally used to indicate getting ready or packing up equipment. e.g. Come on guys, if we want to climb this mountain we've got to gear up and get out of here before sunset. On 12/10/05, Michele Cella [EMAIL PROTECTED] wrote: Moreover I still

[TurboGears] Trac down again :(

2005-12-10 Thread Lee McFadden
It seems that Trac has taken a nosedive again. -- Lee Blog: http://www.splee.co.uk

[TurboGears] Re: Identity: Multiple authentication types

2005-12-09 Thread Lee McFadden
On 09 Dec 2005 09:34:34 -0200, Jorge Godoy [EMAIL PROTECTED] wrote: Take a look at http://trac.turbogears.org/turbogears/wiki/IdentityManagement and pay special attention the what has been derived from a question I made here about using an or type of authentication. It will solve your

[TurboGears] Re: Identity: Multiple authentication types

2005-12-09 Thread Lee McFadden
bored of trying to bend the current provider to my will and I'll impliment my own simple authentication for the client side. Lee On 09 Dec 2005 10:23:23 -0200, Jorge Godoy [EMAIL PROTECTED] wrote: Lee McFadden [EMAIL PROTECTED] writes: As it stands it seems that this isn't possible without

[TurboGears] Re: TurboGears on Debian - Issues

2005-12-09 Thread Lee McFadden
Chad, I have it set up on my Linode with Sarge and it's fairly simple. Just: sudo apt-get install python2.4-celementtree That should install the right version for you. Lee On 12/9/05, Chad L. [EMAIL PROTECTED] wrote: I've looked over the docs on the Trac for installing on Debian, but I

[TurboGears] Re: Identity: Multiple authentication types

2005-12-09 Thread Lee McFadden
case. I haven't had a chance to dive into identity yet myself, so I'll have to think about this another time. But, I'd suggest opening a ticket with your use case in it, because a solution *should* exist to the problem, even if it doesn't now. Kevin On 12/9/05, Lee McFadden [EMAIL PROTECTED

[TurboGears] Re: Changing the content-type within an exposed function

2005-12-08 Thread Lee McFadden
Here's the code for my download method which streams from the DB: [code] @turbogears.expose() def download(self, id, **kw): article = NewsPost.get(id) if article.mimetype: cherrypy.response.headerMap[Content-Type] = article.mimetype else:

[TurboGears] Re: Changing the content-type within an exposed function

2005-12-08 Thread Lee McFadden
Oh, and as a side note, you must set logDebugInfoFilter.on = False in your dev.cfg, otherwise the page generation stats get appended to the end of your file. Not very productive :) On 12/8/05, Lee McFadden [EMAIL PROTECTED] wrote: Here's the code for my download method which streams from

[TurboGears] Re: Error with SQLObject MultipleJoin

2005-12-08 Thread Lee McFadden
Either rename 'category' to 'task_category' in class Task or set tasks in TaskCategory using: tasks = MultipleJoin('Task', joinColumn='task_category_id') Lee On 12/8/05, DaveS [EMAIL PROTECTED] wrote: (TurboGears 0.8a5) given the following model (using sqlite): class Task(SQLObject):

[TurboGears] Re: Error with SQLObject MultipleJoin

2005-12-08 Thread Lee McFadden
Yes, that's what I meant... /me slaps himself I need some more coffee ;) On 12/8/05, DaveS [EMAIL PROTECTED] wrote: I think you mean: tasks = MultipleJoin('Task', joinColumn='category_id') which worked :-) Thanks. -- DaveS

[TurboGears] Re: link titles

2005-12-07 Thread Lee McFadden
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()

[TurboGears] Re: install 0.9 using easy_install?

2005-12-06 Thread Lee McFadden
Installing directly from SVN via easy_install isn't possible at the moment. However, if you don't want to use SVN (but I don't see why you wouldn't) you can download a nightly tarball from opensource4you[1], untar and use that as per the contributing to Turbogears[2] installation instructions.

[TurboGears] Re: svn checkout fails to find cElementTree (and PasteScript)

2005-12-06 Thread Lee McFadden
This is a known issue with setuptools that has been fixed iirc. You need to run: easy_install setuptools==dev (the usual caveats about sudo etc apply) Lee On 12/6/05, m h [EMAIL PROTECTED] wrote: Keep responding to myself Here's the output of python setup.py develop. Apparently it is

[TurboGears] Re: install 0.9 using easy_install?

2005-12-06 Thread Lee McFadden
I stand corrected. Handy hint there :) Lee On 12/6/05, Phillip J. Eby [EMAIL PROTECTED] wrote: Lee McFadden wrote: Installing directly from SVN via easy_install isn't possible at the moment. Not true, you just need to use an SVN url with a #egg=TurboGears suffix. The exact

[TurboGears] Re: diggdot.us third most popular mashup!

2005-12-02 Thread Lee McFadden
A Sites using Turbogears page already exists (when trac is up ;). On 02/12/05, Krys Wilken [EMAIL PROTECTED] wrote: Hi, I am thinking that it might be good to start a TG users or TG success stories page in the wiki. A list of sites we can show off, maybe some quotes from the people whom

[TurboGears] Re: bah... who needs css?

2005-12-02 Thread Lee McFadden
CSS? What's that then? ;) On 02/12/05, Kevin Dangoor [EMAIL PROTECTED] wrote: Trac 0.9 seems a bit more solid running as a standalone server... of course, it can't seem to find the css, but css isn't very useful, is it? :) Kevin -- Kevin Dangoor Author of the Zesty News RSS newsreader

[TurboGears] Re: Our trac has been spammed

2005-12-02 Thread Lee McFadden
On 02/12/05, Kevin Dangoor [EMAIL PROTECTED] wrote: This is all a pain, though, because the TurboGears site has these handy comment on this page links that people use quite a bit to submit doc update tickets. It would be a shame to lose that. Would a tg based comment system not get over

[TurboGears] Re: kid encoding problem

2005-12-01 Thread Lee McFadden
Olli, The Turbogears website has some good instructions on installing from SVN: http://www.turbogears.org/community/contributing.html Lee On 01/12/05, Olli Wang [EMAIL PROTECTED] wrote: Kevin I tried test2=u'your Chinese text' and it is ok. I also tried to find how to upgrade to 0.9

[TurboGears] Re: A few comments on tg-admin toolbox

2005-12-01 Thread Lee McFadden
There is an option to launch the toolbox without launching a browser: tg-admin toolbox -n However, at the moment (or at least on the checkout I'm running) there doesn't seem to be a way to make the hosts allowed to use the toolbox anything other than 127.0.0.1. I'll take a look into this and

[TurboGears] Re: A few comments on tg-admin toolbox

2005-12-01 Thread Lee McFadden
) to catwalk when running tg-admin toolbox. Example: tg-admin toolbox -n -c 192.168.0.1 -c 192.168.0.2 This will add both 192.168.0.1 and 192.168.0.2 to catwalk's access list. This patch is for the file /root/trunk/turbogears/command/__init__.py (Rev. 250) Lee On 01/12/05, Lee McFadden [EMAIL

[TurboGears] Re: [help] Still Having problems with MultipleJoin

2005-12-01 Thread Lee McFadden
Mike, You would need to make the following change: class TestCaseOwner(SQLObject): name = StringCol(alternateID=True) tests = MultipleJoin('TestCase', joinColumn='owner_id') If you had called your owner attribute in TestCase: 'testCaseOwner' it would have worked automatically. While

[TurboGears] Re: Identity: Impending Distraction

2005-11-30 Thread Lee McFadden
Congratulations and all the best Jeff. :) On 30/11/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Distracted ? try tired :-) - but it is a beautiful thing. Martin

[TurboGears] Re: http://trac.turbogears.org/ 502

2005-11-30 Thread Lee McFadden
Is running trac via CGI an option? I know it's slower, but at least it won't die completely. On 30/11/05, Kevin Dangoor [EMAIL PROTECTED] wrote: On 11/30/05, bruno modulix [EMAIL PROTECTED] wrote: Kevin Dangoor a écrit : It's back again. It's dead again :( who needs monitoring

<    1   2   3   4   5   >