[turbogears-commits] [1885] projects/TurboKid/trunk: bumping turbokid version number for next turbokid release
Title: [1885] projects/TurboKid/trunk: bumping turbokid version number for next turbokid release Revision 1885 Author kevin Date 2006-09-14 17:34:41 -0500 (Thu, 14 Sep 2006) Log Message bumping turbokid version number for next turbokid release Modified Paths projects/TurboKid/trunk/setup.cfg projects/TurboKid/trunk/setup.py Diff Modified: projects/TurboKid/trunk/setup.cfg (1884 => 1885) --- projects/TurboKid/trunk/setup.cfg 2006-09-14 22:21:45 UTC (rev 1884) +++ projects/TurboKid/trunk/setup.cfg 2006-09-14 22:34:41 UTC (rev 1885) @@ -1,3 +1,3 @@ [egg_info] -# tag_build = dev -# tag_svn_revision = true +tag_build = dev +tag_svn_revision = true Modified: projects/TurboKid/trunk/setup.py (1884 => 1885) --- projects/TurboKid/trunk/setup.py 2006-09-14 22:21:45 UTC (rev 1884) +++ projects/TurboKid/trunk/setup.py 2006-09-14 22:34:41 UTC (rev 1885) @@ -2,7 +2,7 @@ setup( name=TurboKid, -version=0.9.9, +version=1.0, description=Python template plugin that supports Kid templates, author=Kevin Dangoor, author_email=[EMAIL PROTECTED], --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears Repository Commits group. To post to this group, send email to turbogears-commits@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-commits -~--~~~~--~~--~--~---
[turbogears-commits] [1886] projects/TurboCheetah/trunk/setup.cfg: going to tag turbocheetah
Title: [1886] projects/TurboCheetah/trunk/setup.cfg: going to tag turbocheetah Revision 1886 Author kevin Date 2006-09-14 17:36:47 -0500 (Thu, 14 Sep 2006) Log Message going to tag turbocheetah Added Paths projects/TurboCheetah/trunk/setup.cfg Diff Added: projects/TurboCheetah/trunk/setup.cfg (0 => 1886) --- projects/TurboCheetah/trunk/setup.cfg (rev 0) +++ projects/TurboCheetah/trunk/setup.cfg 2006-09-14 22:36:47 UTC (rev 1886) @@ -0,0 +1,3 @@ +[egg_info] +# tag_build = dev +# tag_svn_revision = true --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears Repository Commits group. To post to this group, send email to turbogears-commits@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-commits -~--~~~~--~~--~--~---
[turbogears-commits] [1888] projects/TurboCheetah/trunk: bumping TurboCheetah version for next release.
Title: [1888] projects/TurboCheetah/trunk: bumping TurboCheetah version for next release. Revision 1888 Author kevin Date 2006-09-14 17:39:12 -0500 (Thu, 14 Sep 2006) Log Message bumping TurboCheetah version for next release. Modified Paths projects/TurboCheetah/trunk/setup.cfg projects/TurboCheetah/trunk/setup.py Diff Modified: projects/TurboCheetah/trunk/setup.cfg (1887 => 1888) --- projects/TurboCheetah/trunk/setup.cfg 2006-09-14 22:38:16 UTC (rev 1887) +++ projects/TurboCheetah/trunk/setup.cfg 2006-09-14 22:39:12 UTC (rev 1888) @@ -1,3 +1,3 @@ [egg_info] -# tag_build = dev -# tag_svn_revision = true +tag_build = dev +tag_svn_revision = true Modified: projects/TurboCheetah/trunk/setup.py (1887 => 1888) --- projects/TurboCheetah/trunk/setup.py 2006-09-14 22:38:16 UTC (rev 1887) +++ projects/TurboCheetah/trunk/setup.py 2006-09-14 22:39:12 UTC (rev 1888) @@ -2,7 +2,7 @@ setup( name=TurboCheetah, -version=0.9.5, +version=1.0, description=TurboGears plugin to support use of Cheetah templates., long_description=This template plugin can be used with TurboGears or Buffet. The development version is here: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears Repository Commits group. To post to this group, send email to turbogears-commits@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-commits -~--~~~~--~~--~--~---
[tg-tickets] [TurboGears] #1113: Css missing semi-colon at standart project.
#1113: Css missing semi-colon at standart project. ---+ Reporter: italomaia | Owner: anonymous Type: defect | Status: new Priority: low| Milestone: 1.0b1 Component: Kid| Version: Severity: minor |Keywords: css ---+ There's a missing semicolon at line 75 in the css created with a brand new project. -- Ticket URL: http://trac.turbogears.org/turbogears/ticket/1113 TurboGears http://www.turbogears.org/ TurboGears front-to-back web development --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears Tickets group. To post to this group, send email to turbogears-tickets@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears-tickets -~--~~~~--~~--~--~---
[TurboGears] Re: dynamic form validation
Timur Izhbulatov wrote: OK. Here is the summary: http://trac.turbogears.org/turbogears/wiki/DynamicValidation Cool. Though overly complicated to my own taste. Hopefully TG 1.1/2.0 will make implementing dynamic validation a bit easier. -- Max Ischenko http://www.developers.org.ua -- Ukranian software developers community --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: dynamic form validation
Timur Izhbulatov wrote: OK. Here is the summary: http://trac.turbogears.org/turbogears/wiki/DynamicValidation Cool. Though overly complicated to my own taste. Hopefully TG 1.1/2.0 will make implementing dynamic validation a bit easier. -- Max Ischenko http://www.developers.org.ua -- Ukrainian software developers community --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: dynamic form validation
On Wed, Sep 13, 2006 at 11:06:41PM -0700, Max Ischenko wrote: Timur Izhbulatov wrote: OK. Here is the summary: http://trac.turbogears.org/turbogears/wiki/DynamicValidation Cool. Though overly complicated to my own taste. Yeah, kind of. I couldn't find a simpler way. And the task itself is rather complex too so I took the tradeoff between complexity and flexibility. Hopefully TG 1.1/2.0 will make implementing dynamic validation a bit easier. I can't make any assumptions on this, my imagination refuses to work =) Widgets look good as general approach for me but still far from perfection when it comes to form rendering, and they are tightly coupled with Kid. -- Timur Izhbulatov OILspace, 26 Leninskaya sloboda, bld. 2, 2nd floor, 115280 Moscow, Russia P:+7 495 105 7245 + ext.205 F:+7 495 105 7246 E:[EMAIL PROTECTED] Building Successful Supply Chains - One Solution At A Time. www.oilspace.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Help with UnicodeDecodeError
Hi, I got this strange error, I don't know what is causing it. Is something overflowing? File /Users/xx/Library/Python2.4/site-packages/kid-0.9.3-py2.4.egg/kid/pull.py, line 194, in to_unicode return unicode(value, encoding) UnicodeDecodeError: 'utf8' codec can't decode bytes in position 10-13: invalid data --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Â’ problem encoding ...
i was trying to display some text it is in utf-8 in postgres and when it is displayed in firefox and ie, it gets displayed as some symols with 4numbers in a box or so even for ' apostrophe please tell me how to display this properly i try title.__str__ I'm assuming that you're dynamically generating some HTML document. If so, have you declared the document encoding in the HTML file to be utf-8? NeanderthalsÂ’ Last Stand Is Traced here is the html file and here the python code for inserting filt= Cheetah.Filters.EncodeUnicode() web.insert('feed_entry',feedtable_id=feedt_id,title=filt.filter(d.entries[i].title),link=d.entries[i].link,updated=chkup) and code for retriving feeds i use cheetah to display feedentry_dct=dict((i.id,web.query(select * from feed_entry where feedtable_id = $i.id ORDER BY updated desc, created,vars=locals())) for i in feedlist) how it is displayed in the html file or cheetah template #for i in $feedentry_dct[$blog.id] a href=$i.link $str($i.title) /a thanks for your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] TurboGears Widgets
Hi, I can't install widgets using easy_install. http://www.turbogears.org/preview/widgets/ is not available. (http://www.turbogears.org/widgets/ too) How can i install widgets? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Kid templates won't be translated
Hello, I am using 1.0b1 and though admi18n works at last (it couldn't collect strings) I cannot figure out why I can't see the translated strings on my pages. I have activated the template filter but just string explicitly run through gettext are translated. Templates' strings are collected and, although translated, won't show up unless I wrap them in ${_('some string')} If I activate the session filter the application won't start, complaining that Thread_local attribute has no 'request' attribute (could the two problems be related?) Any clue why this happens? Thank you, Cristiano --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Alien Variable at dev.cfg @__@
Well, after upgrading my tg to 1.01b, i noticed this variable: (current_dir_uri) Well again, it doens't seem to work as i tried on my winXP sqlite connection, so i come and ask: Is this variable really set? Where was it set them? hu. Thnx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Widget Customisation
Hi. I want to customise the TextField class to include error handling, so that a display() of a TextField will display any error message (and help text too, after...). Basically, I want to be able to trigger the logic used to display label, field, error and helptext in TableForm (with a differnet template), on a field by field basis in the kid template. Is it possible by just overloading the TextField template ? In this case, how can I get the field object to call error_for(field) in the template ? If this is not the right solution, what pointer can you give me to solve this problem ? Many thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Catching exceptions from a .kid template?
Hi, At the moment, you'd need to define _cp_onerror (or is it _cp_on_error?) which is a general exception handler. Template rendering exceptions probably should go through the exception handling machinery of TG, but they're in a different part of the code. This can likely be fixed more easily in TG 1.1. Kevin On Sep 14, 2006, at 12:11 AM, Andre wrote: Hi, I'm trying to figure out how to catch exceptions that are caused in a template file. Ideally this wouldn't ever occur, but I wanted to know if it was possible. I have @exception_handler()'s around the method that is returning the dict to the template, but this isn't working. I'm assuming there needs to be an exception_handler around whatever my method is returning the dict to... ? Any suggestions? Andre -- Kevin Dangoor TurboGears / Zesty News email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: TurboGears Widgets
MG : widgets are included in turbogears, just import them in your code from turbogears import widgets Here are all available widgets included in turbogears. http://trac.turbogears.org/turbogears/wiki/WidgetList if you want to install the other widgets list on http://www.turbogears.org/cogbin/ You can use easy_install widget name for it, ex: # easy_install Select-Shuttle -- Fred --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: TurboGears Widgets
I know, but looks like download link is broken. Output: sudo easy_install Lightbox Searching for Lightbox Reading http://www.python.org/pypi/Lightbox/ Reading http://www.turbogears.org/widgets/ Reading http://www.python.org/pypi/Lightbox/2.0-p1 No local packages or download links found for Lightbox error: Could not find suitable distribution for Requirement.parse('Lightbox') I looked to http://www.python.org/pypi/Lightbox/2.0-p1, it says Download URL: http://www.turbogears.org/widgets/ . But the link is broken. So i can't install it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: TurboGears Widgets
I know but i can't install Lightbox. When i looked to cheeseshop, it says download link is http://www.turbogears.org/widgets/;. It redirects to http://www.turbogears.org/preview/widgets/;, but address is not available. easy_install output: $ sudo easy_install Lightbox Searching for Lightbox Reading http://www.python.org/pypi/Lightbox/ Reading http://www.turbogears.org/widgets/ Reading http://www.python.org/pypi/Lightbox/2.0-p1 No local packages or download links found for Lightbox error: Could not find suitable distribution for Requirement.parse('Lightbox') gasolin wrote: if you want to install the other widgets list on http://www.turbogears.org/cogbin/ You can use easy_install widget name for it, ex: # easy_install Select-Shuttle -- Fred --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Widget Customisation
Anton2 wrote: Hi. I want to customise the TextField class to include error handling, so that a display() of a TextField will display any error message (and help text too, after...). Basically, I want to be able to trigger the logic used to display label, field, error and helptext in TableForm (with a differnet template), on a field by field basis in the kid template. Is it possible by just overloading the TextField template ? In this case, how can I get the field object to call error_for(field) in the template ? If this is not the right solution, what pointer can you give me to solve this problem ? Many thanks IIRC there should be an error variable available to the FormField template that gives you the field error. Ciao Michele --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: RepeatingFormField, some javascript and a FormEncode error
Ok, I think I've found the problem. If we assume a test using a TextField as the widget to be cloned, the html produced is like this: div id=ajaxcompound_4_AjaxRepeating_template class=invisible input type=text id=ajax_repeater_form_customFieldsRepeater_customFields value= class=textfield name=customFieldsRepeater.customFields/ /div div id=ajaxcompound_4_AjaxRepeating_rep_0 label for=ajax_repeater_form_customFieldsRepeater_0_customFields class=fieldlabelCustomfields/label span input type=text name=customFieldsRepeater-0.customFields class=textfield id=ajax_repeater_form_customFieldsRepeater_0_customFields/ /span /div div id=ajaxcompound_4_AjaxRepeating_container /div As soon as the user adds a new field, the javascript inserts the following div inside the container: div id=ajaxcompound_4_AjaxRepeating_element_0 class= input type=text id=ajax_repeater_form_customFieldsRepeater_customFields value= class=textfield name=customFieldsRepeater.customFields/ /div Since the widget is supposed to be agnostic as to what is cloned, I just create the div, give it a diferent id, and slip inside a clone of the template. Now, when we post the form containing these fields with value1 on the first text box which was created by repetition, and value2 on the second text box, which was created by javascript, firefox sends: customFieldsRepeater.customFields= customFieldsRepeater-0.customFields=value1 customFieldsRepeater.customFields=value2 which on turbogears/cherrypy by the time the form is being validated (widgets/forms.py:1073) gets translated the following value for the customFieldsRepeater key on the validation value: [{'customFields': u'value1'}, [u'', u'value2']] And here's the catch. For the repeating widget a dictionary is created. For the javascript cloned entries, a list is created. I've iet to investigate further as to how to get around this. My first thought is to try and associate a validator to this widget which does the translation correctly, but I'm not sure how it would behave on cases were there are more than one cloned widget. Has someone had any previous experience doing any of the above? Or any ideia as to how it would better be implemented? I'm thinking of just putting this widget up on the cheeseshop if it ends up any good, to try and contribute something to the whole :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Alien Variable at dev.cfg @__@
On 9/14/06, Italo Maia [EMAIL PROTECTED] wrote: Well, after upgrading my tg to 1.01b, i noticed this variable: (current_dir_uri) Well again, it doens't seem to work as i tried on my winXP sqlite connection, so i come and ask: Is this variable really set? Where was it set them? hu. Works for me under linux, it's set in turbogears.config --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Widget Customisation
On 9/14/06, Anton2 [EMAIL PROTECTED] wrote: I want to customise the TextField class to include error handling, so that a display() of a TextField will display any error message (and help text too, after...). Actually, the initial versions of widgets worked this way, but it was decided (IMO for the better) to move that functionality to the form. Nothing useful to add, just wanted to comment. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Help with UnicodeDecodeError
What template are you trying to use for this? You should check that, any widgets it might be using, and the data it is trying to print to see if it ended up with any characters in it that are outside of the utf8 set. If you post the full trace log we can probably help you figure out where this problem is coming from. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: TurboGears Widgets
It looks like the widget folder was missed in the migration from the preview site to the regular one. Kevin, or someone else with access to the site, should see this soon and correct the matter. When that person looks at it they might want to also switch the CSS links in the cogbin to point to the full site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Alien Variable at dev.cfg @__@
I noticed in winXP, the sqlite: should follow 3 slash /// insted of 2 //, then it works --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: How TG recognizes other template systems besides kid
On Wed, 2006-09-13 at 03:06 +, batok wrote: Thanks, it was just a matter of ... editing easy_install.pth removing the Turbostan entry deleting the TurboStan egg. .. I think TurboStan is not ready for 1.0b1. I have an updated version that works with 1.0b1. I'll try to get it packaged up and in the cheeseshop tonight. Regards, Cliff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Help With Error Messages on Form Validation Error
Bump --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: New Offline/Proxied Install Documentation
I'm blushing, Krys. Glad to be useful - about time I gave something back! Now I've got tg set up I'd better try doing something with it . . . BTW, any other old punks on the list remember what TG stood for 20 years ago? 20 Jazz Funk Greats I believe. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: New Offline/Proxied Install Documentation
Karl Guertin wrote: Eh, I was just reading through and it looked like a typo. If you like, you can just say that eggs are generally preferable over .tar.gz files without mentioning platform specific/independant. Done. :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] tg-admin sql create broken in 1.0b1?
I'm new to TG and am working through the getting started pages. I'm getting stumped nearly right off the bat through. When I run the tg-admin sql create command I get the following error: Using database URI sqlite:///C|\py\Snazzy/devdata.sqlite Exception exceptions.AttributeError: 'pysqlite2.dbapi2.Connection' object has no attribute 'autocommit' in bound method Transaction.__del__ of sqlobject.dbconnection.Transactio n object at 0x015B7F70 ignored I'm on WinXP and have SQLite v3.3.7 and pysqlite v2.3.2. I used easy_install and seem to have TG 1.0b1 correctly installed. Running the server produced the welcome page and I was just working on developing a model. Any ideas? Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Widget Customisation
Michele Cella wrote: IIRC there should be an error variable available to the FormField template that gives you the field error. Indeed there is. And a label too... Thanks ! And if there were not available, It seems that overloading 'update_params' is the solution. Now I need to make the form do the magic regarding values, as the solution used in WeAreFlexible form.display_field_for('price', value=product.price) is not working when there is an error, as product is None. Passing None to the widget will fetch the data from input_values, but you have to add extra logic to do it. So I'm still wondering if there is a better solution ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Resources and pointers
i would like to find resources for these, pls give me pointers 1) USING webpy + ajax - 2) file uploads 3) better explanation of how to handle ENCODING utf 4) Caching techniques. 5) Geolocating. 7) Email + a mail queue. + Import email addressbooks 8) Ajax snipplets + webpy code. 9). Persistant background threads. 1. Uploaded Images - scaling, verifying, storing. 2. Creating images with text,scaling, modifying, and layering on the fly. 3. Getting client information: REFERER, ip, UA. 6. Threaded, Scored, Sorted message boards. 7. Zip code proximity calculations. 8. Email + a mail queue. + Import email addressbooks 9. Ajax snipplets + webpy code. 13. Persistant background threads. thanks a lot Anil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Python Crash
I recently upgraded from 0.8 to 1.0b1 and am having some trouble. I've managed to get thru most of the update stuff, and get my app to display etc, but when I try to use it, python crashes and cherrypy shuts down. I'm on windows XP. The app is just a simple interface that runs scripts in other python files for me. So, i hit the button on the form that starts the script, and it starts, gets itself into some fuctions (in the other imported python script)...then it tries to access the geoprocessor module from ESRI and it seems the whole thing crashes down with a 'python.exe is having some problems' dialogue. The info that goes along with that is below... AppName: python.exe AppVer: 0.0.0.0 ModName: geoprocessor.dll ModVer: 9.1.0.750Offset: 00020715 It would seem that this is not a turbogears problem, but this stuff was working fine before I upgraded, and it works fine if I run the original script, even if i just write a little script that imports my controllers.py file and runs it from there... Anyone with an idea of what I should be trying? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Widget Customisation
Karl Guertin wrote: Actually, the initial versions of widgets worked this way, but it was decided (IMO for the better) to move that functionality to the form. Nothing useful to add, just wanted to comment. Yes, this is clear. What I don't know is how to customize the form to use a 'complicated' template done by a web designer. But the path I'm taking now seems very awkward, so I hope that there is better option ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Resources and pointers
On 9/14/06, anil [EMAIL PROTECTED] wrote: 1) USING webpy + ajax - 1) this is not the web.py mailing list 2) Google is your friend. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: TurboGears Widgets
On Sep 14, 2006, at 11:09 AM, Adam Jones wrote: It looks like the widget folder was missed in the migration from the preview site to the regular one. Kevin, or someone else with access to the site, should see this soon and correct the matter. When that person looks at it they might want to also switch the CSS links in the cogbin to point to the full site. Fixed. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Python Crash
My guess would be that something in 1.0b1 is stepping on a name used for geoprocessor. You may want to review how you are handling imports and rewrite any global include (from module import *) to not do that. Alternatively you could use os.system to run the script in another shell instance (which would have its own clean namespace) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Mac x86 install problems
Has anyone installed Turbogears 1.0b on a Mac x86? I have no problems on PPC but no luck on x86 version --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] CSSLink
Hello, I am trying to include CSS with my widget and its not working. I have tried guessing around and trying to find useful examples. I have something like this: class Menu(Widget): template = ... css = [CSSLink('widgets/static/css/', name=menu.css)] params = ['submenus'] params_doc = {'submenus': A list of submenus of the form [dict(title=, items=)]} submenus = [] How do I link to this file /static/widgets/css/menu.css ? CSSLink('widgets/static/css/', name=menu.css) ? Thanks, -Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Mac x86 install problems
On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone installed Turbogears 1.0b on a Mac x86? I have no problems on PPC but no luck on x86 version Works fine here with universal python 2.4.3. You should probably mention what problems you had and which Python installation you're using. -bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Mac x86 install problems
yeah I have installed it on X86 mac mini and had no problems at all. I assume you are using Universal Binary 2.4.3?On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Has anyone installed Turbogears 1.0b on a Mac x86? I have no problemson PPC but no luck on x86 version --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Mac x86 install problems
Python 2.4.3 First I had a problem with SQL Object MySQL driver so I reloaded. Now I'm getting gcc not found ( Ihave the latest Xcode) when trying to load the RuleDispatch --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Mac x86 install problems
yes I'm using Universal Binary 2.4.3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Mac x86 install problems
On 9/14/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Python 2.4.3 First I had a problem with SQL Object MySQL driver so I reloaded. Now I'm getting gcc not found ( Ihave the latest Xcode) when trying to load the RuleDispatch If you're getting GCC not found, you definitely do not have the latest Xcode installed. Some of the packages are available in universal binary form here: http://pythonmac.org/packages/py24-fat/ -bob --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: New Offline/Proxied Install Documentation
Krys: Cool , you did a good job :-D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: CSSLink
Can you give us a little more detail?When you say it's not working, do you mean:1) The widget isn't being included right?2) The CSS isn't appearing in the rendered page?3) You're getting a Python traceback? From what I can see, it looks like you're on the right track, as long as the css filename and the path to it are correct in CSSLink...Kevin H.On 9/14/06, Ian Wilson [EMAIL PROTECTED] wrote: Hello,I am trying to include CSS with my widget and its not working.Ihave tried guessing around and trying to find useful examples.I havesomething like this:class Menu(Widget):template = ...css = [CSSLink('widgets/static/css/', name=menu.css)]params = ['submenus']params_doc = {'submenus': A list of submenus of the form[dict(title=, items=)]} submenus = []How do I link to this file /static/widgets/css/menu.css ?CSSLink('widgets/static/css/', name=menu.css) ?Thanks,-Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: New Offline/Proxied Install Documentation
Very nice. Clear, thorough, but without being totally boring. Very good job!Kevin HOn 9/14/06, gasolin [EMAIL PROTECTED] wrote:Krys:Cool , you did a good job :-D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---
[TurboGears] Re: Latest Eggs
Looks like debian packages might not be such a bad idea (hmm or rpm?)! I've got an old laptop that isn't crippled supporting me and a house so I hope 1.0 goes smooth and my neck doesn't snap trying to figure out all the name changes and betas. I can't wait till I can figure out how to bring an older version up to logging at least and see it work. I think the requires is neat that way I can gauge with the utmost confidence what to fix and where to fix it. There was a great page on updating from an older version of turbogears. Its probably a headache to revise but its a great page. I hope that page goes in the book. I would really like a debian howto on making eggs into deb packages. Its not really needed though but the upgrading between versions like for python 2.5 is a great idea there is probably a script somewhere.If you know post it please. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups TurboGears group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~--~~~~--~~--~--~---