[turbogears-commits] [2042] widgets/TGTinyMCE/: Creating directory for TGTinyMCE, TGWidgets' version of TurboTinyMCE.

2006-10-31 Thread dangoor
Title: [2042] widgets/TGTinyMCE/: Creating directory for TGTinyMCE, TGWidgets' version of TurboTinyMCE.








Revision 2042
Author alberto
Date 2006-10-31 02:29:59 -0500 (Tue, 31 Oct 2006)


Log Message
Creating directory for TGTinyMCE, TGWidgets' version of TurboTinyMCE.

Added Paths

widgets/TGTinyMCE/




Diff



--~--~-~--~~~---~--~~
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] [2044] projects/TGWidgetsForms/trunk/tests: Porting DataGrid to TGWidgetsForms

2006-10-31 Thread dangoor
Title: [2044] projects/TGWidgetsForms/trunk/tests: Porting DataGrid to TGWidgetsForms








Revision 2044
Author alberto
Date 2006-10-31 05:17:23 -0500 (Tue, 31 Oct 2006)


Log Message
Porting DataGrid to TGWidgetsForms

Modified Paths

projects/TGWidgetsForms/trunk/tgwidgets/forms/__init__.py


Added Paths

projects/TGWidgetsForms/trunk/tests/test_datagrid.py
projects/TGWidgetsForms/trunk/tgwidgets/forms/datagrid.py
projects/TGWidgetsForms/trunk/tgwidgets/forms/static/
projects/TGWidgetsForms/trunk/tgwidgets/forms/static/grid.css
projects/TGWidgetsForms/trunk/tgwidgets/forms/templates/datagrid.html




Diff

Added: projects/TGWidgetsForms/trunk/tests/test_datagrid.py (0 => 2044)

--- projects/TGWidgetsForms/trunk/tests/test_datagrid.py	(rev 0)
+++ projects/TGWidgetsForms/trunk/tests/test_datagrid.py	2006-10-31 10:17:23 UTC (rev 2044)
@@ -0,0 +1,20 @@
+from tgwidgets.testutil import WidgetMixin
+from tgwidgets.forms import DataGrid
+from unittest import TestCase
+
+class User(object):
+def __init__(self, name, age):
+self.name = name
+self.age = age
+
+class TestDatagrid(WidgetMixin, TestCase):
+TestWidget = DataGrid
+widget_kw = {
+'fields' : [('Name', 'name'), ('Age', 'age')],
+}
+
+def test_data_is_displayed(self):
+data = "" % i, i) for i in xrange(10)]
+self.assertInOutput(
+[User%d%i for i in xrange(10)] + map(str, xrange(10)), data
+)


Modified: projects/TGWidgetsForms/trunk/tgwidgets/forms/__init__.py (2043 => 2044)

--- projects/TGWidgetsForms/trunk/tgwidgets/forms/__init__.py	2006-10-31 07:30:34 UTC (rev 2043)
+++ projects/TGWidgetsForms/trunk/tgwidgets/forms/__init__.py	2006-10-31 10:17:23 UTC (rev 2044)
@@ -1,2 +1,3 @@
 from tgwidgets.forms.core import *
 from tgwidgets.forms.fields import *
+from tgwidgets.forms.datagrid import *


Added: projects/TGWidgetsForms/trunk/tgwidgets/forms/datagrid.py (0 => 2044)

--- projects/TGWidgetsForms/trunk/tgwidgets/forms/datagrid.py	(rev 0)
+++ projects/TGWidgetsForms/trunk/tgwidgets/forms/datagrid.py	2006-10-31 10:17:23 UTC (rev 2044)
@@ -0,0 +1,133 @@
+
+Generic widget to present and manipulate data in a grid (tabular) form.
+
+Adapted from turbogears.widgets.datagrid
+
+
+from pkg_resources import resource_filename
+
+from tgwidgets.api import Widget, CSSLink
+
+NoDefault = object()
+
+__all__ = [DataGrid]
+
+class GridCSS(CSSLink):
+filename=resource_filename('tgwidgets.forms', 'static/grid.css')
+
+class DataGrid(Widget):
+
+Generic widget to present and manipulate data in a grid (tabular) form.
+
+The columns to build the grid from are specified with fields ctor argument
+which is a list.  Currently an element can be either a two-element tuple or
+instance of DataGrid.Column class. If tuple is used it a Column is then
+build out of it, first element is assumed to be a title and second element -
+field accessor.
+
+You can specify columns' data statically, via fields ctor parameter, or
+dynamically, by via 'fields' key.
+
+
+css=[GridCSS()]
+template = genshi:tgwidgets.forms.templates.datagrid
+fields = []
+params = [fields]
+
+class Column:
+Simple struct that describes single DataGrid column.
+
+Column has:
+  - a name, which allows to uniquely identify column in a DataGrid
+  - getter, which is used to extract field's value
+  - title, which is displayed in the table's header
+  - options, which is a way to carry arbitrary user-defined data
+
+
+def __init__(self, name, getter=None, title=None, options=None):
+if not name:
+raise ValueError, 'name is required'
+if getter:
+if callable(getter):
+self.getter = getter
+else: # assume it's an attribute name
+self.getter = DataGrid.attrwrapper(getter)
+else:
+self.getter = DataGrid.attrwrapper(name)
+self.name = name
+self.title = title or name.capitalize()
+self.options = options or {}
+def get_option(self, name, default=NoDefault):
+if name in self.options:
+return self.options[name]
+if default is NoDefault: # no such key and no default is given
+raise KeyError(name)
+return default
+def get_field(self, row):
+return self.getter(row)
+def __str__(self):
+return DataGrid.Column %s % self.name
+
+class attrwrapper:
+Helper class that returns an object's attribute when called.
+
+This allows to access 'dynamic' attributes (properties) as well as
+simple static ones.
+
+def __init__(self, name):
+assert isinstance(name, str)
+self.name = name
+def __call__(self, obj):
+

[turbogears-commits] [2046] projects/TGWidgets/trunk/tgwidgets: Some tweaks to Resource and added a calendar and a datagrid to tgsample

2006-10-31 Thread dangoor
Title: [2046] projects/TGWidgets/trunk/tgwidgets: Some tweaks to Resource and added a calendar and a datagrid to tgsample








Revision 2046
Author alberto
Date 2006-10-31 06:38:01 -0500 (Tue, 31 Oct 2006)


Log Message
Some tweaks to Resource and added a calendar and a datagrid to tgsample

Modified Paths

projects/TGWidgets/trunk/examples/tgsample/tgsample/controllers.py
projects/TGWidgets/trunk/examples/tgsample/tgsample/templates/add_user.kid
projects/TGWidgets/trunk/examples/tgsample/tgsample/widgets.py
projects/TGWidgets/trunk/tgwidgets/resources.py




Diff

Modified: projects/TGWidgets/trunk/examples/tgsample/tgsample/controllers.py (2045 => 2046)

--- projects/TGWidgets/trunk/examples/tgsample/tgsample/controllers.py	2006-10-31 11:37:09 UTC (rev 2045)
+++ projects/TGWidgets/trunk/examples/tgsample/tgsample/controllers.py	2006-10-31 11:38:01 UTC (rev 2046)
@@ -6,14 +6,26 @@
 import turbogears
 from turbogears import controllers, expose, validate, redirect, error_handler
 
+from tgwidgets.forms import DataGrid
 
 from tgsample import json
 from tgsample.widgets import *
 
 log = logging.getLogger(tgsample.controllers)
 
+class User(object):
+def __init__(self, **kw):
+self.__dict__.update(kw)
+
+def fields_from_form(form):
+return [
+('Name', 'name'),
+('Age', 'age'),
+]
+
 class UsersController(controllers.Controller):
 add_user_form = AddUserForm('form', action='', submit_text=Add)
+grid = DataGrid(grid, fields=fields_from_form(add_user_form))
 
 @expose(template=tgsample.templates.add_user)
 def add(self):
@@ -21,7 +33,10 @@
 form_args = {
 #'users-0.name' : {'disabled':True},
 }
-return dict(form=form, form_args=form_args)
+data = "" age=i) for i in xrange(10)]
+return dict(
+form=form, grid=self.grid, grid_data=data, form_args=form_args
+)
 
 @error_handler(add)
 @validate(form=add_user_form)


Modified: projects/TGWidgets/trunk/examples/tgsample/tgsample/templates/add_user.kid (2045 => 2046)

--- projects/TGWidgets/trunk/examples/tgsample/tgsample/templates/add_user.kid	2006-10-31 11:37:09 UTC (rev 2045)
+++ projects/TGWidgets/trunk/examples/tgsample/tgsample/templates/add_user.kid	2006-10-31 11:38:01 UTC (rev 2046)
@@ -10,6 +10,7 @@
 div id=main_content
 h2Welcome to the TGWidgets sample TG app/h2
 ${form.display(**form_args)}
+${grid.display(grid_data)}
 /div
 /body
 /html


Modified: projects/TGWidgets/trunk/examples/tgsample/tgsample/widgets.py (2045 => 2046)

--- projects/TGWidgets/trunk/examples/tgsample/tgsample/widgets.py	2006-10-31 11:37:09 UTC (rev 2045)
+++ projects/TGWidgets/trunk/examples/tgsample/tgsample/widgets.py	2006-10-31 11:38:01 UTC (rev 2046)
@@ -10,6 +10,7 @@
 # Let's import all the form fields so we can play with them
 from tgwidgets.forms import *
 
+#from tgmce import TinyMCE
 
 
 # WidgetsList with the fields for the address fieldset
@@ -33,6 +34,8 @@
 email = TextField(
 validator = Email()
 )
+#comments = TinyMCE()
+date = CalendarDateTimePicker()
 roles = CheckBoxList(
 options = Manager Admin Editor User.split(),
 )


Modified: projects/TGWidgets/trunk/tgwidgets/resources.py (2045 => 2046)

--- projects/TGWidgets/trunk/tgwidgets/resources.py	2006-10-31 11:37:09 UTC (rev 2045)
+++ projects/TGWidgets/trunk/tgwidgets/resources.py	2006-10-31 11:38:01 UTC (rev 2046)
@@ -117,12 +117,18 @@
 ``package_resource.resource_filename`` to easily compute it in a portable way.
 
 
+webdir = None
+filename = None
+
 def __init__(self, *args, **kw):
 super(Link, self).__init__(*args, **kw)
-splitted = os.path.split(self.filename)
-self.filename = splitted[-1]
-dirname = os.path.join(*splitted[:-1])
-self.webdir = registered_directories.add(self.webdir, dirname)
+if self.filename:
+splitted = os.path.split(self.filename)
+self.filename = splitted[-1]
+self.dirname = os.path.join(*splitted[:-1])
+if self.webdir is None:
+self.webdir = '/' + self.__module__
+self.webdir = registered_directories.add(self.webdir, self.dirname)
 
 def update_params(self, d):
 super(Link, self).update_params(d)





--~--~-~--~~~---~--~~
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] Re: [TurboGears] #932: Add dependency_links declaration to TurboGears setup.py

2006-10-31 Thread TurboGears
#932: Add dependency_links declaration to TurboGears setup.py
+---
 Reporter:  [EMAIL PROTECTED]  |Owner:  anonymous
 Type:  enhancement |   Status:  new  
 Priority:  normal  |Milestone:  1.0b2
Component:  Deployment  |  Version:  0.9a6
 Severity:  minor   |   Resolution:   
 Keywords:  |  
+---
Comment (by max):

 I don't think this makes sense. If you're installing your own eggs then
 you can specify egg locations and other things in your own setup.cfg
 instead of TurboGears itself.

-- 
Ticket URL: http://trac.turbogears.org/turbogears/ticket/932
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
-~--~~~~--~~--~--~---



[tg-tickets] Re: [TurboGears] #629: [PATCH] IdentityManagementNotEnabledException in a freshly quickstarted project

2006-10-31 Thread TurboGears
#629: [PATCH] IdentityManagementNotEnabledException in a freshly quickstarted
project
--+-
 Reporter:  nyenyec   |Owner:  anonymous
 Type:  defect|   Status:  reopened 
 Priority:  high  |Milestone:  1.0b2
Component:  Identity  |  Version:   
 Severity:  major |   Resolution:   
 Keywords:|  
--+-
Changes (by max):

  * severity:  normal = major

Comment:

 the question is not whether or not we need tests (we do). the question is
 -- you cannot write them right now. I face the problem myself -- tests
 that worked in TG1.0a no longer work raise exception shown above.

-- 
Ticket URL: http://trac.turbogears.org/turbogears/ticket/629
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
-~--~~~~--~~--~--~---



[tg-tickets] Re: [TurboGears] #629: [PATCH] IdentityManagementNotEnabledException in a freshly quickstarted project

2006-10-31 Thread TurboGears
#629: [PATCH] IdentityManagementNotEnabledException in a freshly quickstarted
project
--+-
 Reporter:  nyenyec   |Owner:  anonymous
 Type:  defect|   Status:  reopened 
 Priority:  high  |Milestone:  1.0b2
Component:  Identity  |  Version:   
 Severity:  major |   Resolution:   
 Keywords:|  
--+-
Comment (by max):

 Looks like I cannot reproduce it. I don't see why the patch proposed
 should help. And why uncommenting test_model makes test_controllers fail.

-- 
Ticket URL: http://trac.turbogears.org/turbogears/ticket/629
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
-~--~~~~--~~--~--~---



[tg-tickets] Re: [TurboGears] #1166: [PATCH] Support testing the code that uses identity

2006-10-31 Thread TurboGears
#1166: [PATCH] Support testing the code that uses identity
-+--
 Reporter:  max  |Owner:  anonymous
 Type:  enhancement  |   Status:  new  
 Priority:  normal   |Milestone:   
Component:  unassigned   |  Version:  1.0b1
 Severity:  normal   |   Resolution:   
 Keywords:   |  
-+--
Comment (by max):

 Let me know if it's OK and I'll commit it.

-- 
Ticket URL: http://trac.turbogears.org/turbogears/ticket/1166
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
-~--~~~~--~~--~--~---



[tg-trunk] Re: Can we get some input on the 1.0.b2 tickets?

2006-10-31 Thread isaac

Ok, this is weird... the original discussion on the general TG list
has disappeared! I can't find it on google groups.

Anyway in case it's lost, here is a paste from my gmail (sorry it's
missing headers, I could dig them up if anyone cares):

--

targeting of widget labels with CSS - patch coming soon   TG

isaac   
to turbogears
 Sep 9

Hi all,

I was just working on some ListForm widgets and noticed that there's
not a good way to target the label tags with specific CSS (well,
there are surely ways in CSS using advanced selectors, but those are
not quite reliable in the browsers yet).

Anyway, I'm looking to (1) target the label of a required field (to
make it bold, for example), and also (2) to be able to style the
label for a checkbox differently than a text field, for example.

I started working on a patch to widgets/forms.py and was able to add
e.g. class=required for_checkbox to the labels of a ListForm and
TableForm and it worked. But then I forgot I'd done it and wiped it
out while installing 1.0b1...  d'oh! Anyway, it wasn't much work so I
can do it over easily, but I'm just curious if anyone else is
interested in this? Any thoughts on what to name the classes it adds?

I'd really like to see this make it into 1.0 final, or 1.1. This
seems important for TG playing well with Web Standards (unless I'm
missing something really obvious).

--isaac



Kevin Dangoor   
to turbogears
Sep 12

On Sep 9, 2006, at 7:41 PM, isaac wrote:

 I was just working on some ListForm widgets and noticed that there's
 not a good way to target the label tags with specific CSS (well,
 there are surely ways in CSS using advanced selectors, but those are
 not quite reliable in the browsers yet).

 Anyway, I'm looking to (1) target the label of a required field (to
 make it bold, for example), and also (2) to be able to style the
 label for a checkbox differently than a text field, for example.

 I started working on a patch to widgets/forms.py and was able to add
 e.g. class=required for_checkbox to the labels of a ListForm and
 TableForm and it worked. But then I forgot I'd done it and wiped it
 out while installing 1.0b1...  d'oh! Anyway, it wasn't much work so I
 can do it over easily, but I'm just curious if anyone else is
 interested in this? Any thoughts on what to name the classes it adds?

Are you sure there are no classes already devised for required? (I
can't look it up at the moment).

Also, when putting together a patch, you really want to work from the
svn copy (and you can do setup.py develop to ensure that your code
isn't overwritten by installing a new release).

Thanks for looking into this!

Kevin


isaac   
to turbogears
Sep 12
On 9/12/06, Kevin Dangoor [EMAIL PROTECTED] wrote:

 Are you sure there are no classes already devised for required? (I
 can't look it up at the moment).

The class 'required' is currently added to the form control itself,
but not its label (or the table row/list item). Hmm, it might actually
be simplest to apply it to the li or tr because then you could do
CSS like this:

.required label { font-weight: bold }
.required input { border: 1px solid red }
.for_checkbox label { font-size: 0.9em }

etc... which would also yield cleaner html than adding it to the label
_and_ the form control itself.

 Also, when putting together a patch, you really want to work from the
 svn copy (and you can do setup.py develop to ensure that your code
 isn't overwritten by installing a new release).

will do.

 Thanks for looking into this!

no prob... needed it for a project anyway.

--i

Reply   Forward



isaac   
to turbogears
Sep 17

Hi,

A patch for this is posted, #1116:
http://trac.turbogears.org/turbogears/ticket/1116

it's against the trunk as it was 10 minutes ago.

HTH!

--isaac

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TurboGears Trunk group.
To post to this group, send email to turbogears-trunk@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-trunk
-~--~~~~--~~--~--~---



[TurboGears] Re: script src=....

2006-10-31 Thread jose

I suppose it is a problem with the path.
I copied the javascript file into a system forlder like this:
  script type=text/javascript src= 
/tg_widgets/turbogears.widgets/calendar/help.js/script
and it works perfectly, but  script type=text/javascript 
src=/static/javascript/help.js/script

may be I have to define it into dev.cfg like:

[/static]

static_filter.on = True
static_filter.dir = %(top_level_dir)s/static

what top_level_dir variable should contain?

jo


Ian Wilson wrote:

What do you mean by doesn't work?  The file isn't being included or
the function has errors?

Ill just guess the file isn't being included.  What happens when you
go directly to the file in the browser?

For example if you are running your server at localhost:8080 then try going to
http://localhost:8080/static/javascript/help.js

The file should show up.  If it does not then the file isn't being
found and maybe you should check that the name and permissions of the
file are correct.

Also I think you should have this in either your app.cfg(mine is
located in /project/config/app.cfg or your dev.cfg/prod.cfg located in
your project's root directory.

[/static]
static_filter.on = True
static_filter.dir = %(top_level_dir)s/static

Good luck.

-Ian

On 10/30/06, Jose Soares [EMAIL PROTECTED] wrote:
  

Hi all,

May someone help me calling javascript functions?

In my edit.kid I would like to insert a javascript function like this:
script
  function help(){
 alert ('Ciao')
  }
/script

This one works, but if I move the function to a file into
myproject/static/javascript/help.js
it doesn't work anymore.

This is my definition in my edit.kid:
head
  script type=text/javascript src=/static/javascript/help.js/script
/head

What's wrong with it?

jo









  



--~--~-~--~~~---~--~~
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: kid drives me crazy

2006-10-31 Thread Sylvain Hellegouarch


 *** It would have been pretty stupid for me to start, if someone else
 was already doing it, don't you think? :-)

I much agree. Let's say I had not read your message like that ;)


--~--~-~--~~~---~--~~
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: script src=....

2006-10-31 Thread Ian Wilson

You don't need to fill in the variable since TurboGears will fill it
for you.  This is exactly what I have in mine:

static_filter.dir = %(top_level_dir)s/static

Try putting that in and tell me what happens.

-Ian

On 10/31/06, jose [EMAIL PROTECTED] wrote:

 I suppose it is a problem with the path.
 I copied the javascript file into a system forlder like this:
   script type=text/javascript src=
 /tg_widgets/turbogears.widgets/calendar/help.js/script
 and it works perfectly, but  script type=text/javascript
 src=/static/javascript/help.js/script

 may be I have to define it into dev.cfg like:

 [/static]

 static_filter.on = True
 static_filter.dir = %(top_level_dir)s/static

 what top_level_dir variable should contain?

 jo


 Ian Wilson wrote:

 What do you mean by doesn't work?  The file isn't being included or
 the function has errors?
 
 Ill just guess the file isn't being included.  What happens when you
 go directly to the file in the browser?
 
 For example if you are running your server at localhost:8080 then try going 
 to
 http://localhost:8080/static/javascript/help.js
 
 The file should show up.  If it does not then the file isn't being
 found and maybe you should check that the name and permissions of the
 file are correct.
 
 Also I think you should have this in either your app.cfg(mine is
 located in /project/config/app.cfg or your dev.cfg/prod.cfg located in
 your project's root directory.
 
 [/static]
 static_filter.on = True
 static_filter.dir = %(top_level_dir)s/static
 
 Good luck.
 
 -Ian
 
 On 10/30/06, Jose Soares [EMAIL PROTECTED] wrote:
 
 
 Hi all,
 
 May someone help me calling javascript functions?
 
 In my edit.kid I would like to insert a javascript function like this:
 script
   function help(){
  alert ('Ciao')
   }
 /script
 
 This one works, but if I move the function to a file into
 myproject/static/javascript/help.js
 it doesn't work anymore.
 
 This is my definition in my edit.kid:
 head
   script type=text/javascript src=/static/javascript/help.js/script
 /head
 
 What's wrong with it?
 
 jo
 
 
 
 
 
 
 
 
 
 
 


 


--~--~-~--~~~---~--~~
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: script src=....

2006-10-31 Thread jose

Traceback (most recent call last):
  File ./sicer-start.py, line 21, in ?
cherrypy.config.update(file=dev.cfg)
  File 
/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py, 
line 77, in update
updateMap.update(dict_from_config_file(file))
  File 
/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py, 
line 252, in dict_from_config_file
value = configParser.get(section, option, raw, vars)
  File /usr/lib/python2.4/ConfigParser.py, line 525, in get
return self._interpolate(section, option, value, d)
  File /usr/lib/python2.4/ConfigParser.py, line 570, in _interpolate
raise InterpolationMissingOptionError(
ConfigParser.InterpolationMissingOptionError: Bad value substitution:
section: [/static]
option : static_filter.dir
key: top_level_dir
rawval : %(top_level_dir)s/static

Ian Wilson wrote:

You don't need to fill in the variable since TurboGears will fill it
for you.  This is exactly what I have in mine:

static_filter.dir = %(top_level_dir)s/static

Try putting that in and tell me what happens.

-Ian

On 10/31/06, jose [EMAIL PROTECTED] wrote:
  

I suppose it is a problem with the path.
I copied the javascript file into a system forlder like this:
  script type=text/javascript src=
/tg_widgets/turbogears.widgets/calendar/help.js/script
and it works perfectly, but  script type=text/javascript
src=/static/javascript/help.js/script

may be I have to define it into dev.cfg like:

[/static]

static_filter.on = True
static_filter.dir = %(top_level_dir)s/static

what top_level_dir variable should contain?

jo


Ian Wilson wrote:



What do you mean by doesn't work?  The file isn't being included or
the function has errors?

Ill just guess the file isn't being included.  What happens when you
go directly to the file in the browser?

For example if you are running your server at localhost:8080 then try going 
to
http://localhost:8080/static/javascript/help.js

The file should show up.  If it does not then the file isn't being
found and maybe you should check that the name and permissions of the
file are correct.

Also I think you should have this in either your app.cfg(mine is
located in /project/config/app.cfg or your dev.cfg/prod.cfg located in
your project's root directory.

[/static]
static_filter.on = True
static_filter.dir = %(top_level_dir)s/static

Good luck.

-Ian

On 10/30/06, Jose Soares [EMAIL PROTECTED] wrote:


  

Hi all,

May someone help me calling javascript functions?

In my edit.kid I would like to insert a javascript function like this:
script
 function help(){
alert ('Ciao')
 }
/script

This one works, but if I move the function to a file into
myproject/static/javascript/help.js
it doesn't work anymore.

This is my definition in my edit.kid:
head
 script type=text/javascript src=/static/javascript/help.js/script
/head

What's wrong with it?

jo









  





  



--~--~-~--~~~---~--~~
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] TypeError: decoding Unicode is not supported

2006-10-31 Thread Ian Wilson

I have no idea why this doesn't work.  I can pull the same data from
the TG console and move into lists and its fine but I can't do it
within a TG method.  Does anyone have any ideas?

My uri looks like this:
sqlobject.dburi=mysql://busysignal:[EMAIL 
PROTECTED]/busysignal?unix_socket=/var/run/mysqld/mysqld.sockuse_unicode=1charset=utf8sqlobject_encoding=utf-8

Also my my.cnf is littered with utf8s.

It works on my box at home but not on the server and I think my home
box is running x86 and the server is running amd64, both gentoo linux.
 I don't know if arch has anything to do with it.

It doesn't matter if I proxy is behind apache or I use it directly.

Any ideas would be very very much appreciated as I have tried many
things and broken many things in the process.

-Ian




Page handler: function _wrapper at 0x2afd30150668
Traceback (most recent call last):
  File 
/usr/lib64/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py,
line 105, in _run
self.main()
  File 
/usr/lib64/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cphttptools.py,
line 254, in main
body = page_handler(*virtual_path, **self.params)
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/identity/conditions.py,
line 275, in _wrapper
return fn( *args, **kw )
  File string, line 3, in getPlants
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py,
line 326, in expose
output = database.run_with_transaction(
  File string, line 5, in run_with_transaction
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/database.py,
line 246, in so_rwt
retval = func(*args, **kw)
  File string, line 5, in _expose
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py,
line 343, in lambda
mapping, fragment, args, kw)))
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py,
line 367, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/errorhandling.py,
line 71, in try_call
return func(self, *args, **kw)
  File string, line 3, in getPlants
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/controllers.py,
line 165, in validate
return errorhandling.run_with_errors(errors, func, *args, **kw)
  File 
/usr/lib64/python2.4/site-packages/TurboGears-1.0b1-py2.4.egg/turbogears/errorhandling.py,
line 106, in run_with_errors
return func(self, *args, **kw)
  File 
/home/ian/workspace/busysignal/busysignal/controllers/admin/inventory/plant.py,
line 132, in getPlants
log.debug(str([p.id for p in context[0:limit]]))
  File 
/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/sresults.py,
line 155, in __iter__
return iter(list(self.lazyIter()))
  File 
/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/sresults.py,
line 163, in lazyIter
return conn.iterSelect(self)
  File 
/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/dbconnection.py,
line 776, in iterSelect
select, keepConnection=True)))
  File 
/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/dbconnection.py,
line 705, in __init__
self.dbconn._executeRetry(self.rawconn, self.cursor, self.query)
  File 
/usr/lib64/python2.4/site-packages/SQLObject-0.7.2a_r2023-py2.4.egg/sqlobject/mysql/mysqlconnection.py,
line 77, in _executeRetry
myquery = unicode(query, self.encoding)
TypeError: decoding Unicode is not supported

--~--~-~--~~~---~--~~
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: TurboEntity

2006-10-31 Thread Daniel Haus

I did write a reply yesterday, and I was wondering when my answer would
actually appear. I'll write a second, maybe there was some trouble with


1. Yes, tg-admin sql create does work
   (see http://turboentity.ematia.de/examples.html#s3 )

2. Select queries work exactly like the way they do
in ActiveMapper or plain SQLAlchemy. You can
read a lot about that at http://www.sqlalchemy.org/docs/ 

Daniel


--~--~-~--~~~---~--~~
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: Breaking get_project get_package and get_model.

2006-10-31 Thread Elvelind Grandin

Don't worry, for the time being I will make it backwards compatible.
If the future it look something like.
project = Project()
project.model instead of get_model

I will update the docs when I have time to commit it.

On 10/30/06, Jorge Vargas [EMAIL PROTECTED] wrote:

 On 10/29/06, Elvelind Grandin [EMAIL PROTECTED] wrote:
 
  Is there somebody that uses these in their projects? If not they will
  be changed in the next released to a Project class.
 
 I have some code that depends on get_model it's my hackish way of
 tg-admin sql drop,tg-admin sql create, put sample data. it goes like
 this.

 for item in turbogears.util.get_model().__dict__.values():
 if inspect.isclass(item) and issubclass(item,sqlobject.SQLObject) and \
 item != sqlobject.SQLObject and item != InheritableSQLObject:
 item.dropTable(ifExists=True)
 item.createTable()

 I guess that can be broken since it's not production code.

 also I plan to make a real tg-admin command for this so I can write
 if after the changes.


 what exactly are you planning?
  --
  cheers
  elvelind grandin
 
  
 

 



-- 
cheers
elvelind grandin

--~--~-~--~~~---~--~~
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: script src=....

2006-10-31 Thread Ian Wilson

Well okay I am just winging it still but what version of Turbogears do you have?

Have you altered your sicer-start.py project file at all?

I am running TurboGears-1.0b1.

You could try manually putting that string in there like this(I don't
do this tho):

static_filter.dir = /path/to/project/static

An example from one of my projects would be something like this:
static_filter.dir = /home/ian/workspace/busysignal/busysignal/static

-Ian

On 10/31/06, jose [EMAIL PROTECTED] wrote:

 Traceback (most recent call last):
   File ./sicer-start.py, line 21, in ?
 cherrypy.config.update(file=dev.cfg)
   File
 /usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py,
 line 77, in update
 updateMap.update(dict_from_config_file(file))
   File
 /usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py,
 line 252, in dict_from_config_file
 value = configParser.get(section, option, raw, vars)
   File /usr/lib/python2.4/ConfigParser.py, line 525, in get
 return self._interpolate(section, option, value, d)
   File /usr/lib/python2.4/ConfigParser.py, line 570, in _interpolate
 raise InterpolationMissingOptionError(
 ConfigParser.InterpolationMissingOptionError: Bad value substitution:
 section: [/static]
 option : static_filter.dir
 key: top_level_dir
 rawval : %(top_level_dir)s/static

 Ian Wilson wrote:

 You don't need to fill in the variable since TurboGears will fill it
 for you.  This is exactly what I have in mine:
 
 static_filter.dir = %(top_level_dir)s/static
 
 Try putting that in and tell me what happens.
 
 -Ian
 
 On 10/31/06, jose [EMAIL PROTECTED] wrote:
 
 
 I suppose it is a problem with the path.
 I copied the javascript file into a system forlder like this:
   script type=text/javascript src=
 /tg_widgets/turbogears.widgets/calendar/help.js/script
 and it works perfectly, but  script type=text/javascript
 src=/static/javascript/help.js/script
 
 may be I have to define it into dev.cfg like:
 
 [/static]
 
 static_filter.on = True
 static_filter.dir = %(top_level_dir)s/static
 
 what top_level_dir variable should contain?
 
 jo
 
 
 Ian Wilson wrote:
 
 
 
 What do you mean by doesn't work?  The file isn't being included or
 the function has errors?
 
 Ill just guess the file isn't being included.  What happens when you
 go directly to the file in the browser?
 
 For example if you are running your server at localhost:8080 then try 
 going to
 http://localhost:8080/static/javascript/help.js
 
 The file should show up.  If it does not then the file isn't being
 found and maybe you should check that the name and permissions of the
 file are correct.
 
 Also I think you should have this in either your app.cfg(mine is
 located in /project/config/app.cfg or your dev.cfg/prod.cfg located in
 your project's root directory.
 
 [/static]
 static_filter.on = True
 static_filter.dir = %(top_level_dir)s/static
 
 Good luck.
 
 -Ian
 
 On 10/30/06, Jose Soares [EMAIL PROTECTED] wrote:
 
 
 
 
 Hi all,
 
 May someone help me calling javascript functions?
 
 In my edit.kid I would like to insert a javascript function like this:
 script
  function help(){
 alert ('Ciao')
  }
 /script
 
 This one works, but if I move the function to a file into
 myproject/static/javascript/help.js
 it doesn't work anymore.
 
 This is my definition in my edit.kid:
 head
  script type=text/javascript src=/static/javascript/help.js/script
 /head
 
 What's wrong with it?
 
 jo
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


 


--~--~-~--~~~---~--~~
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: TurboEntity

2006-10-31 Thread Daniel Haus

 Though to use 'turboentity' class to specify the 'tablename' doesn't
 make sense to me,

I'm not fully happy with that choice, either. I chose it because I
don't think that it will cause any naming conflicts (as eg.
settings possibly could).


--~--~-~--~~~---~--~~
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: script src=....

2006-10-31 Thread jose

Ian Wilson wrote:

Well okay I am just winging it still but what version of Turbogears do you 
have?

Have you altered your sicer-start.py project file at all?

I am running TurboGears-1.0b1.

You could try manually putting that string in there like this(I don't
do this tho):

static_filter.dir = /path/to/project/static

An example from one of my projects would be something like this:
static_filter.dir = /home/ian/workspace/busysignal/busysignal/static

  

Yes, now it works. Thank you Ian. :-)

I' m using also TurboGears-1.0b1

I wonder where to define the top_level_dir variable.

I suppose tg guess it using...

pwd + autoreload.package

I don't like this constant definition of static_filter.dir. :-\
anyway...

j

-Ian

On 10/31/06, jose [EMAIL PROTECTED] wrote:
  

Traceback (most recent call last):
  File ./sicer-start.py, line 21, in ?
cherrypy.config.update(file=dev.cfg)
  File
/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py,
line 77, in update
updateMap.update(dict_from_config_file(file))
  File
/usr/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/config.py,
line 252, in dict_from_config_file
value = configParser.get(section, option, raw, vars)
  File /usr/lib/python2.4/ConfigParser.py, line 525, in get
return self._interpolate(section, option, value, d)
  File /usr/lib/python2.4/ConfigParser.py, line 570, in _interpolate
raise InterpolationMissingOptionError(
ConfigParser.InterpolationMissingOptionError: Bad value substitution:
section: [/static]
option : static_filter.dir
key: top_level_dir
rawval : %(top_level_dir)s/static

Ian Wilson wrote:



You don't need to fill in the variable since TurboGears will fill it
for you.  This is exactly what I have in mine:

static_filter.dir = %(top_level_dir)s/static

Try putting that in and tell me what happens.

-Ian

On 10/31/06, jose [EMAIL PROTECTED] wrote:


  

I suppose it is a problem with the path.
I copied the javascript file into a system forlder like this:
 script type=text/javascript src=
/tg_widgets/turbogears.widgets/calendar/help.js/script
and it works perfectly, but  script type=text/javascript
src=/static/javascript/help.js/script

may be I have to define it into dev.cfg like:

[/static]

static_filter.on = True
static_filter.dir = %(top_level_dir)s/static

what top_level_dir variable should contain?

jo


Ian Wilson wrote:





What do you mean by doesn't work?  The file isn't being included or
the function has errors?

Ill just guess the file isn't being included.  What happens when you
go directly to the file in the browser?

For example if you are running your server at localhost:8080 then try 
going to
http://localhost:8080/static/javascript/help.js

The file should show up.  If it does not then the file isn't being
found and maybe you should check that the name and permissions of the
file are correct.

Also I think you should have this in either your app.cfg(mine is
located in /project/config/app.cfg or your dev.cfg/prod.cfg located in
your project's root directory.

[/static]
static_filter.on = True
static_filter.dir = %(top_level_dir)s/static

Good luck.

-Ian

On 10/30/06, Jose Soares [EMAIL PROTECTED] wrote:




  

Hi all,

May someone help me calling javascript functions?

In my edit.kid I would like to insert a javascript function like this:
script
function help(){
   alert ('Ciao')
}
/script

This one works, but if I move the function to a file into
myproject/static/javascript/help.js
it doesn't work anymore.

This is my definition in my edit.kid:
head
script type=text/javascript src=/static/javascript/help.js/script
/head

What's wrong with it?

jo











  



  





  



--~--~-~--~~~---~--~~
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: last chance for PyCon talks!

2006-10-31 Thread Bob Ippolito

On 10/30/06, Kevin Dangoor [EMAIL PROTECTED] wrote:

 Tomorrow (Halloween) is that last day to submit talk proposals for
 PyCon 2007 (in Dallas)! It's a great event, and I'd certainly
 recommend it. Good crowd to hang around with lots of smart people who
 know all kinds of stuff. You won't believe the things you learn just
 by being in the same room as Bob Ippolito. Or Phillip Eby. Or Ian
 Bicking. If we're lucky, the elusive but wonderfully prolific Mike
 Bayer might be in attendance. So, hopefully some folks will propose
 talks, but it would be good for you to at least be there!


Actually I'm not sure I'll be at PyCon 07. Not a huge fan of the new
venue and I haven't submitted any proposals this year.

-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: kid drives me crazy

2006-10-31 Thread Kevin Dangoor

On Oct 31, 2006, at 2:52 AM, Stuart Clarke wrote:


 Is anyone planning to write a memcached caching mechanism for  
 Genshi?

 I love the whole templates are correct XHTML and editable in  
 insert
 name of favourite web editor here factor.  But until I can  
 memcached
 from these templating systems, I'll be using Cheetah.


 er. Why don't you undertake that task then? :)

 *** It would have been pretty stupid for me to start, if someone else
 was already doing it, don't you think? :-)

You might check on the Genshi list. Also, check out MyghtyUtils (and  
possibly Beaker) which support memcached already.

Kevin

--~--~-~--~~~---~--~~
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: last chance for PyCon talks!

2006-10-31 Thread Kevin Dangoor

On Oct 31, 2006, at 2:41 AM, [EMAIL PROTECTED] wrote:


 Dang all those dudes are going to be there? What about the other
 turbogears crew they all coming? I mean cherrypy and etc.

It's variable... we're scattered all over the place. Bob Brewer, who  
did the bulk of the CP3 work, was at PyCon '06.

Kevin


--~--~-~--~~~---~--~~
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: last chance for PyCon talks!

2006-10-31 Thread Kevin Dangoor

On Oct 31, 2006, at 6:06 AM, Bob Ippolito wrote:


 On 10/30/06, Kevin Dangoor [EMAIL PROTECTED] wrote:

 Tomorrow (Halloween) is that last day to submit talk proposals for
 PyCon 2007 (in Dallas)! It's a great event, and I'd certainly
 recommend it. Good crowd to hang around with lots of smart people who
 know all kinds of stuff. You won't believe the things you learn just
 by being in the same room as Bob Ippolito. Or Phillip Eby. Or Ian
 Bicking. If we're lucky, the elusive but wonderfully prolific Mike
 Bayer might be in attendance. So, hopefully some folks will propose
 talks, but it would be good for you to at least be there!


 Actually I'm not sure I'll be at PyCon 07. Not a huge fan of the new
 venue and I haven't submitted any proposals this year.

I should've mentioned that there's no guarantees as to who will be  
there... At PyCon '06, there was lots to be learned from all the  
folks about. I'm sure the same will be true this coming PyCon...

Kevin

--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Max Ischenko


Try to append sqlobject_encoding=utf8 to your sqlobject.dburi in
dev.cfg.

Max.


--~--~-~--~~~---~--~~
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: Dynamically changing widgets params

2006-10-31 Thread Fernando Aires

Jorge,

On 24/10/06, Jorge Godoy [EMAIL PROTECTED] wrote:
 Fernando Aires [EMAIL PROTECTED] writes:
 I have a previously instantiated widget (particularly a
  SingleSelectField), and need to change one of its parameters
  (particularly the options attribute). To do it straightly generates an
  exception.
 I found at the list archives one patch from last January, from
  Michele Celia, proposing a change. However, there's any other way of
  doing so, without redefining the widget?

 The thread-safe option is using a callable to populate your list.  This will
 change the available options that can be selected.

 Another option is using JavaScript (this is the only option when the values
 that you'll be showing depend on some previous choice).

   Just registering: I followed your JavaScript suggestion. My system
now generate the JS source always it calls the controller (this
computation is small enough to be used without problems on my system).
   Thanks a lot, you all, for all the help...

Sincerely,

-- 
--
Fernando Aires
[EMAIL PROTECTED]
Em tudo Amar e Servir
--

--~--~-~--~~~---~--~~
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: trying to meet python/turbogears users in my area

2006-10-31 Thread Max Ischenko

Anyone from Ukraine (Kiev)? Welcome to exception.org.ua


--~--~-~--~~~---~--~~
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: kid drives me crazy

2006-10-31 Thread Karl Guertin

On 10/31/06, Kevin Dangoor [EMAIL PROTECTED] wrote:
 You might check on the Genshi list. Also, check out MyghtyUtils (and
 possibly Beaker) which support memcached already.

If someone is working on memcached support on the Genshi list, they
certainly  haven't announced 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] SQLAlchemy and Identity.

2006-10-31 Thread percious

I think this one may have been solved but I'll give it a shot.  I am
getting some kind of attribute error when the user logs on.  Maybe you
can help.

Page handler: bound method Root.index of turbolink.controllers.Root
object at 0x0170AFF0
Traceback (most recent call last):
  File
C:\Python24\lib\site-packages\cherrypy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py,
line 105, in _run
self.main()
  File
C:\Python24\lib\site-packages\cherrypy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py,
line 254, in main
body = page_handler(*virtual_path, **self.params)
  File string, line 3, in index
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\controllers.py,
line 326, in expose
output = database.run_with_transaction(
  File string, line 5, in run_with_transaction
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\database.py,
line 246, in so_rwt
retval = func(*args, **kw)
  File string, line 5, in _expose
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\controllers.py,
line 343, in lambda
mapping, fragment, args, kw)))
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\controllers.py,
line 367, in _execute_func
output = errorhandling.try_call(func, *args, **kw)
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\errorhandling.py,
line 71, in try_call
return func(self, *args, **kw)
  File
C:\Python24\Lib\site-packages\ft8\turboLink\tg\turbolink\controllers.py,
line 61, in index
return TurboLinkDict()
  File
C:\Python24\Lib\site-packages\ft8\turboLink\tg\turbolink\TurboLinkDict.py,
line 25, in __init__
if identity.in_group('admin'):
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\identity\conditions.py,
line 73, in __nonzero__
return self.eval_with_object( current )
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\identity\conditions.py,
line 86, in eval_with_object
if self.group_name in identity.groups:
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\identity\__init__.py,
line 58, in __getattr__
return getattr(identity, name)
  File
C:\Python24\lib\site-packages\turbogears-1.0b1-py2.4.egg\turbogears\identity\saprovider.py,
line 81, in _get_groups
self._groups = frozenset([g.group_name for g in self.user.groups])
AttributeError: 'User' object has no attribute 'groups'

Model.py:

class Visit(ActiveMapper):
class mapping:
__table__ = visit
visit_key = column(String(40), primary_key=True)
created = column(DateTime, nullable=False,
default=datetime.now)
expiry = column(DateTime)

def lookup_visit(cls, visit_key):
return Visit.get(visit_key)
lookup_visit = classmethod(lookup_visit)

# tables for SQLAlchemy identity
user_group = Table(user_group, metadata,
  Column(user_id, Integer,
  ForeignKey(tg_user.user_id),
  primary_key=True),
  Column(group_id, Integer,
  ForeignKey(tg_group.group_id),
  primary_key=True))

group_permission = Table(group_permission, metadata,
Column(group_id, Integer,
ForeignKey(tg_group.group_id),
primary_key=True),
Column(permission_id, Integer,
ForeignKey(permission.permission_id),
primary_key=True))


class VisitIdentity(ActiveMapper):
class mapping:
__table__ = visit_identity
visit_key = column(String(40), # foreign_key=visit.visit_key,
  primary_key=True)
user_id = column(Integer, foreign_key=tg_user.user_id,
index=True)


class Group(ActiveMapper):

An ultra-simple group definition.

class mapping:
__table__ = tg_group
group_id = column(Integer, primary_key=True)
group_name = column(Unicode(16), unique=True)
display_name = column(Unicode(255))
created = column(DateTime, default=datetime.now)

users = many_to_many(User, user_group, backref=groups)
permissions = many_to_many(Permission, group_permission,
   backref=groups)


class User(ActiveMapper):

Reasonably basic User definition. Probably would want additional
attributes.

class mapping:
__table__ = tg_user
user_id = column(Integer, primary_key=True,)
user_name = column(Unicode(16), unique=True)
email_address = column(Unicode(255), unique=True)
display_name = column(Unicode(255))
password = column(Unicode(40))
created = column(DateTime, default=datetime.now)
enabled = column(Boolean, default=False)

groups = many_to_many(Group, user_group, backref=users)

def 

[TurboGears] Re: SQLAlchemy and Identity.

2006-10-31 Thread percious

Awesome, worked first-go.

-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: Startup/restart time

2006-10-31 Thread Steve Holden

fumanchu wrote:
 Steve Holden wrote:
 
Is it just me, or does CherryPy take a *really* long time to start up
and restart?
 
 
 How long is *really* long? Longer than 1.5 seconds?
 
Way longer. Longer by an order of magnitude. But Kevin has already 
pointed out this is more likely to be TG itself than CP.

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd  http://www.holdenweb.com
Skype: holdenweb   http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

--~--~-~--~~~---~--~~
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: kid drives me crazy

2006-10-31 Thread Stuart Clarke

Cool.  I should be able to get to it in a couple weeks.

Stuart


On Tue, 2006-10-31 at 10:21 -0500, Karl Guertin wrote:
 On 10/31/06, Kevin Dangoor [EMAIL PROTECTED] wrote:
  You might check on the Genshi list. Also, check out MyghtyUtils (and
  possibly Beaker) which support memcached already.
 
 If someone is working on memcached support on the Genshi list, they
 certainly  haven't announced 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: SQLAlchemy and Identity.

2006-10-31 Thread Karl Guertin

On 10/31/06, percious [EMAIL PROTECTED] wrote:
 I think this one may have been solved but I'll give it a shot.  I am
 getting some kind of attribute error when the user logs on.  Maybe you
 can help.

This has been solved a couple times. If you look at the model, you'll
see that there are duplicate relations. E.g. User.groups creates the
backref Groups.user but there's already a Groups.user trying to create
a backref to User.groups.  If you remove these duplicates, you'll be
fine. I recommend keeping the two in Groups and deleting the groups in
both User and Permission.

--~--~-~--~~~---~--~~
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.org is so sloooooowwww

2006-10-31 Thread percious

Anyone else experiencing this? 
Anyone know why? 

-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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Ian Wilson

Thanks but I changed sqlobject_encoding=utf-8 to
sqlobject_encoding=utf8 and I still get the same error.  What else
could I try?

-Ian

On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:


 Try to append sqlobject_encoding=utf8 to your sqlobject.dburi in
 dev.cfg.

 Max.


 


--~--~-~--~~~---~--~~
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: trying to meet python/turbogears users in my area

2006-10-31 Thread Adam Jones


Andrew Grover wrote:
 On 10/29/06, Adam Jones [EMAIL PROTECTED] wrote:
  Same for Portland, OR.

 Hey me too! Cool. -- Andy

We may have to hunt down Cliff Wells and all go out to Rock Bottom some
night. Have a miniature west-coast TurboGears Jam.

-Adam


--~--~-~--~~~---~--~~
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.org is so sloooooowwww

2006-10-31 Thread isaac

yep it's down from here, too.

On 10/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 I haven't been able to connect today...
 Just as I was about to configure my production server  :-(


 On Oct 31, 9:17 am, percious [EMAIL PROTECTED] wrote:
  Anyone else experiencing this?
  Anyone know why?
 
  -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: Turbogears.org is so sloooooowwww

2006-10-31 Thread Nicky . Ayoub

I haven't been able to connect today...
Just as I was about to configure my production server  :-(


On Oct 31, 9:17 am, percious [EMAIL PROTECTED] wrote:
 Anyone else experiencing this?
 Anyone know why?
 
 -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] installing my TG app, including my own .py sources

2006-10-31 Thread venkatbo

Hi folks,

I've built my app on top of a quickstart generated app.
I've had to add a few extra .py modules.

While I know I can use:
 python setup.py bdist_egg
in my tg-app root dir, to deploy this app, where would I
have to list my extra .py modules, so they can also
be compiled and pkgd in the deployment .egg file.

Do I have to add corresponding entries in the:
MANIFEST.in
and/or
SOURCES.txt
file(s) ?

Thanks,
/venkat


--~--~-~--~~~---~--~~
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: trying to meet python/turbogears users in my area

2006-10-31 Thread Dr. Volker Göbbels

Hi Chris,

Am 30.10.2006 um 17:37 schrieb Christopher Arndt:

 I'll chime in here too: I'm in Cologne/Germany. I would even drive  
 as far as
 Frankfurt for occasional meetings.

 BTW, I'm also trying to organize a general Python meet-up in Köln,  
 more here
 (in German): http://article.gmane.org/ 
 gmane.comp.python.general.german/5483

well, that's not too far from Aachen ;)

Best regards,
Volker
--
Dr. Volker Göbbels
Arachnion GmbH  Co. KG, Sandkaulbach 4, 52062 Aachen, Germany
http://www.arachnion.de, http://blog.arachnion.eu




--~--~-~--~~~---~--~~
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: installing my TG app, including my own .py sources

2006-10-31 Thread Adam Jones

If the extra .py files are in your application they should be included
by default.

If they are eggs that your application requires you can list them as
dependencies for your project. You may want to check out this link for
details:
http://docs.turbogears.org/1.0/DeployWithAnEgg

If the .py files are not in your application (and not packaged as an
egg) you have a few options:
1) Require that they be installed first in your documentation and
provide links.
2) Include them in the files distributed with your application, if
possible.
3) (Convince the maintainer to) Package them as .egg files and make
them available for installation.

hth,
-Adam


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Ed Singleton

I had the same thing and fixed it by using sqlite instead of MySQL.
PostGre doesn't seem to have the problem either.

Ed

On 31/10/06, Ian Wilson [EMAIL PROTECTED] wrote:

 Thanks but I changed sqlobject_encoding=utf-8 to
 sqlobject_encoding=utf8 and I still get the same error.  What else
 could I try?

 -Ian

 On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:
 
 
  Try to append sqlobject_encoding=utf8 to your sqlobject.dburi in
  dev.cfg.
 
  Max.
 
 
  
 

 


--~--~-~--~~~---~--~~
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_users tg_groups relationship with SQLAlchemy

2006-10-31 Thread percious

How do I go about deleting the relationship of a user to a group
without deleting the user or the group?

Adding is easy:
user.groups.append(groupid)

something like?
user.groups.delete(groupid)
tried but does not work.

-percioup


--~--~-~--~~~---~--~~
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 website

2006-10-31 Thread Tansu Alpcan

Hello,

I have been having problems with the turbogears website recently. It is
as of now not accessible again. I am starting a new project based
on/using turbogears in our company and very excited about it. But we
need the website in order the team members can learn more about it and
read the documentation.

BTW, I thank all the contributors of the project. It is exactly the
solution I was looking for.
Tansu


--~--~-~--~~~---~--~~
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] Simple Blog with TurboEntity: good result

2006-10-31 Thread gasolin

I'd like to share that I just use TurboEntity to follow the simpleblog
tutorial
http://www.splee.co.uk/2006/10/14/simpleblog-part-1/

The result looks so great. Take a look at the code:

# Model.py:

from turboentity import *
from docutils.core import publish_parts

class Post(Entity):
 title = Column(Unicode(50))
content = Column(Unicode)
post_date = Column(DateTime, default=datetime.now())
is_published = Column(Boolean, default=False)

@property
def html_content(self):
return
publish_parts(self.content,writer_name=html)[html_body]

# and other parts are the same in the tutorial


--
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] PyCon 2007 tutorials

2006-10-31 Thread Max Ischenko

Hi,

I wonder if anyone planning to give any TurboGears-related tutorials on
upcoming PyCon 2007 conference? I'm thinking about sending a proposal
for some TurboGears topic; may be widgets or using SO/SA/Kid/JSON or
Unicode or something else.

http://us.pycon.org/TX2007/CallForTutorials


--~--~-~--~~~---~--~~
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.org not working?

2006-10-31 Thread Ben Sizer

I haven't been able to get to the site for a day or two now, which is
making accessing docs quite difficult! Seems like the site is up but
actually getting any data from it is not happening. Is anybody else
seeing this problem or is it just me?

-- 
Ben Sizer


--~--~-~--~~~---~--~~
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] Exception when dropping database

2006-10-31 Thread Ben Sizer

If I use tg-admin sql drop after having modified the model.py, I get
this message:

  Using database URI
sqlite:///E|\code\Python\projects\bandmatch/devdata.sqlite
  Exception exceptions.AttributeError: 'pysqlite2.dbapi2.Connection'
object has no attribute 'autocommit' in bound method
Transaction.__del__ of sqlobject.dbconnection.Transaction object at
0x0152D530 ignored

Surely that can't be a good thing? I should be able to modify a
model.py without it impacting on my ability to later drop tables from
the database. I don't even know if that exception actually means
anything or not.

-- 
Ben Sizer


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Ian Wilson

Yeah I was kind of looking to stay with mysql because I use it
everywhere else and I am more familiar with it than PostGre and
sqllite.  There has to be something I can do to fix it.


On 10/31/06, Ed Singleton [EMAIL PROTECTED] wrote:

 I had the same thing and fixed it by using sqlite instead of MySQL.
 PostGre doesn't seem to have the problem either.

 Ed

 On 31/10/06, Ian Wilson [EMAIL PROTECTED] wrote:
 
  Thanks but I changed sqlobject_encoding=utf-8 to
  sqlobject_encoding=utf8 and I still get the same error.  What else
  could I try?
 
  -Ian
 
  On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:
  
  
   Try to append sqlobject_encoding=utf8 to your sqlobject.dburi in
   dev.cfg.
  
   Max.
  
  
   
  
 
  
 

 


--~--~-~--~~~---~--~~
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: Startup/restart time

2006-10-31 Thread Kevin Dangoor

On Oct 31, 2006, at 9:08 AM, Steve Holden wrote:

 fumanchu wrote:
 Steve Holden wrote:

 Is it just me, or does CherryPy take a *really* long time to  
 start up
 and restart?


 How long is *really* long? Longer than 1.5 seconds?

 Way longer. Longer by an order of magnitude. But Kevin has already
 pointed out this is more likely to be TG itself than CP.

And if that profiling was telling the whole story, this may be a more  
tractable problem than I thought!


--~--~-~--~~~---~--~~
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.org is so sloooooowwww

2006-10-31 Thread Kevin Dangoor

On Oct 31, 2006, at 11:17 AM, percious wrote:


 Anyone else experiencing this?
 Anyone know why?

It seems fine to me now (about 6 hours after this message)

Kevin

--~--~-~--~~~---~--~~
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 website

2006-10-31 Thread Kevin Dangoor

Hi,

Things seem fine now. Something that would help in the future: if you  
happen to notice the site is down, please try

traceroute www.turbogears.org

(it may be tracert on Windows)

and send the result of that to the mailing list. There are people  
connecting from all over the world and from many different networks  
in the US. There can be network outages between networks and problems  
at many points along the way. The server uptime is 11 days, so there  
wasn't a hardware problem.

Kevin

On Oct 31, 2006, at 11:23 AM, Tansu Alpcan wrote:


 Hello,

 I have been having problems with the turbogears website recently.  
 It is
 as of now not accessible again. I am starting a new project based
 on/using turbogears in our company and very excited about it. But we
 need the website in order the team members can learn more about it and
 read the documentation.

 BTW, I thank all the contributors of the project. It is exactly the
 solution I was looking for.
 Tansu


 


--
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: PyCon 2007 tutorials

2006-10-31 Thread Kevin Dangoor

Hi Max,

I know that Mark was planning to pitch a tutorial session of some  
sort. I pitched a widgets talk (but not a tutorial, though that may  
have made for a good tutorial topic). SQLAlchemy would be a good  
tutorial topic as well.

Kevin

On Oct 31, 2006, at 7:16 AM, Max Ischenko wrote:


 Hi,

 I wonder if anyone planning to give any TurboGears-related  
 tutorials on
 upcoming PyCon 2007 conference? I'm thinking about sending a proposal
 for some TurboGears topic; may be widgets or using SO/SA/Kid/JSON or
 Unicode or something else.

 http://us.pycon.org/TX2007/CallForTutorials


 


--
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Kevin Dangoor

I didn't follow the beginning of this thread, but a quick note that  
you should be able to use unicode when you use UnicodeCol objects.  
The UTF-8 encoding/decoding is handled in Python then.

Kevin

On Oct 31, 2006, at 4:58 PM, Ian Wilson wrote:


 Yeah I was kind of looking to stay with mysql because I use it
 everywhere else and I am more familiar with it than PostGre and
 sqllite.  There has to be something I can do to fix it.


 On 10/31/06, Ed Singleton [EMAIL PROTECTED] wrote:

 I had the same thing and fixed it by using sqlite instead of MySQL.
 PostGre doesn't seem to have the problem either.

 Ed

 On 31/10/06, Ian Wilson [EMAIL PROTECTED] wrote:

 Thanks but I changed sqlobject_encoding=utf-8 to
 sqlobject_encoding=utf8 and I still get the same error.  What else
 could I try?

 -Ian

 On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:


 Try to append sqlobject_encoding=utf8 to your sqlobject.dburi in
 dev.cfg.

 Max.











 


--
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: PyCon 2007 tutorials

2006-10-31 Thread Jonathan LaCour

Kevin Dangoor wrote:

 I know that Mark was planning to pitch a tutorial session of some
 sort. I pitched a widgets talk (but not a tutorial, though that may
 have made for a good tutorial topic). SQLAlchemy would be a good
 tutorial topic as well.

I have submitted a proposal to present about WhatWhat Status, and how
TurboGears made the development *very* easy.  Not sure if it will be
accepted or not... we'll see :)

I would also be happy to help with any TurboGears-related talks or
tutorials that anyone might need help with.

--
Jonathan LaCour
http://cleverdevil.org

--~--~-~--~~~---~--~~
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: tg_users tg_groups relationship with SQLAlchemy

2006-10-31 Thread Patrick Lewis

With an a real group object, you can do:

user.groups.remove(my_group)

so I guess with just a groupid it would be:

user.groups.remove(Group.get_by(group_id=groupid))


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Ian Wilson

Hmm... do you think mixing StringCol and UnicodeCol could cause this?
I never thought about it but maybe I need to upgrade all the columns
to be Unicode instead of having mixed Unicode/String Cols.  I'll see
what that does later today.

-Ian

On 10/31/06, Kevin Dangoor [EMAIL PROTECTED] wrote:

 I didn't follow the beginning of this thread, but a quick note that
 you should be able to use unicode when you use UnicodeCol objects.
 The UTF-8 encoding/decoding is handled in Python then.

 Kevin

 On Oct 31, 2006, at 4:58 PM, Ian Wilson wrote:

 
  Yeah I was kind of looking to stay with mysql because I use it
  everywhere else and I am more familiar with it than PostGre and
  sqllite.  There has to be something I can do to fix it.
 
 
  On 10/31/06, Ed Singleton [EMAIL PROTECTED] wrote:
 
  I had the same thing and fixed it by using sqlite instead of MySQL.
  PostGre doesn't seem to have the problem either.
 
  Ed
 
  On 31/10/06, Ian Wilson [EMAIL PROTECTED] wrote:
 
  Thanks but I changed sqlobject_encoding=utf-8 to
  sqlobject_encoding=utf8 and I still get the same error.  What else
  could I try?
 
  -Ian
 
  On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:
 
 
  Try to append sqlobject_encoding=utf8 to your sqlobject.dburi in
  dev.cfg.
 
  Max.
 
 
 
 
 
 
 
 
 
 
 
  


 --
 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: PyCon 2007 tutorials

2006-10-31 Thread Mark Ramm

I'm planing to propose two half day tutorials:

1) getting started with Web Development in TurboGears
2) Advanced web development with TurboGears.

The first would cover the basics of creating a TurboGears application
from database to template.  The second would introduce SQLalchemy,
Genshi, JSON, Ajax and help people aready familiar with the basics of
web development with TurboGears take it to the next level.

Both of those would take place on the tutorial day before the official
conference.

As for in-conference talks, I proposed a talk on SQLAlchemy, and
another one on the state of TurboGears 2.0 -- or whatever we decide to
call the next version.

I think internationalization and Unicode would be a great topic for a
tutorial -- or a talk at the conference.  If you do a Tutorial
proposal, I would guess that you should cast a broader net than just
TurboGears development and talk about internationalization more
generally.

--Mark

On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:

 Hi,

 I wonder if anyone planning to give any TurboGears-related tutorials on
 upcoming PyCon 2007 conference? I'm thinking about sending a proposal
 for some TurboGears topic; may be widgets or using SO/SA/Kid/JSON or
 Unicode or something else.

 http://us.pycon.org/TX2007/CallForTutorials


 



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

--~--~-~--~~~---~--~~
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: TurboEntity

2006-10-31 Thread Kevin Horn
Do you have an example using the polymorphic inheritance features?Kevin HOn 10/31/06, Daniel Haus [EMAIL PROTECTED]
 wrote: Though to use 'turboentity' class to specify the 'tablename' doesn't
 make sense to me,I'm not fully happy with that choice, either. I chose it because Idon't think that it will cause any naming conflicts (as eg.settings possibly could).
--~--~-~--~~~---~--~~
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: PyCon 2007 tutorials

2006-10-31 Thread Jorge Vargas

I remenber reading something about a framework discussion

and they had you listed as a ? you may want to check it out
http://ivory.idyll.org/blog/oct-06/pycon-web-panel

On 10/31/06, Kevin Dangoor [EMAIL PROTECTED] wrote:

 Hi Max,

 I know that Mark was planning to pitch a tutorial session of some
 sort. I pitched a widgets talk (but not a tutorial, though that may
 have made for a good tutorial topic). SQLAlchemy would be a good
 tutorial topic as well.

 Kevin

 On Oct 31, 2006, at 7:16 AM, Max Ischenko wrote:

 
  Hi,
 
  I wonder if anyone planning to give any TurboGears-related
  tutorials on
  upcoming PyCon 2007 conference? I'm thinking about sending a proposal
  for some TurboGears topic; may be widgets or using SO/SA/Kid/JSON or
  Unicode or something else.
 
  http://us.pycon.org/TX2007/CallForTutorials
 
 
  


 --
 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: PyCon 2007 tutorials

2006-10-31 Thread anders pearson
On 2006-10-31 12:16:50 -, Max Ischenko wrote:
 I wonder if anyone planning to give any TurboGears-related tutorials on
 upcoming PyCon 2007 conference? 

I put in a proposal for a talk about building RESTful applications in
Python. The focus won't be TurboGears, but it will definitely be part
of it. 

-- 
anders pearson : http://www.columbia.edu/~anders/
   C C N M T L : http://www.ccnmtl.columbia.edu/
weblog : http://thraxil.org/


pgpVSAf6tE5Pp.pgp
Description: PGP signature


[TurboGears] Re: installing my TG app, including my own .py sources

2006-10-31 Thread Jorge Vargas

On 11/1/06, venkatbo [EMAIL PROTECTED] wrote:


 Adam Jones wrote:
  If the extra .py files are in your application they should be included
  by default.
 

 So, if they are included in the same directory as, say, start-myapp.py,
 they will get compiled and pkgd as part of myapp-egg ?

no that's not how setuptools works. the base dir of any setuptools
package should contain a setup.py file and a dir which is a python
package (read it has a __init__.py) everything inside that package
(and it's subpackages) will be discovered by setuptools

 If not, should they be placed elsewhere ?

you may want to take a quick read over
http://peak.telecommunity.com/DevCenter/setuptools
so you will undestand what setuptools does for you and what it doesn't
 Thanks,
 /venkat


 


--~--~-~--~~~---~--~~
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: trying to meet python/turbogears users in my area

2006-10-31 Thread Steve Holden

Mark Ramm wrote:
 It's a few hours from here, but I'd drive over to Chicago to meet some
 TurboGears folks, especially if we could get reasonable sized group
 together.
 
FYI I'm teching in Schaumberg next week. I could rent a car to ride in 
to the city if there were a few Pythonistas and Turbodomes to talk to 
and share a meal with one evening.

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd  http://www.holdenweb.com
Skype: holdenweb   http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Claudio Martínez

Try adding use_unicode=1 to your connection string. If it doesn't help
create a file my.cnf with:
[client]
default-character-set = utf8

And add read_default_file=/path/to/my.cnf to your connection string.

Of course, try using UnicodeCol columns.


--~--~-~--~~~---~--~~
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: Another spammer on the list?

2006-10-31 Thread Jorge Vargas

someone send me an email saying it was him, he forwarded his email to
the phone and cancel the contract but forgot to take out the forward,
anyway he told me it's fix and i'm not getting those anymore so this
is fix, sorry :)

On 10/31/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 not here


 


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Claudio Martínez

I hate replying myself, I meant trying those parameters only.

charset= and sqlobject_encoding= only gave me problems.

Also, including the file my.cnf fails silently when the path is wrong
and can be a major pain when debugging (try it relative and abosolute
paths).


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread [EMAIL PROTECTED]

Last I heard the guy who maintains the mysqldb at cheeseshop of pypi is
having a bit of difficulty with
knowing about this problem drop him an email his address if there.  If
we bug him enough he will either wither or fix it.  Be nice though
because he does seem a little worn.


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Dianne Marsh

I had this problem too and ended up switching to all UnicodeCols and
then I still have times when I need to call str() on the DB result from
my controller to eliminate the error.  I'm using MySQL as well.
 
Dianne


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Ian Wilson

Yeah none of that seemed to work.   Any more ideas?

-Ian

On 10/31/06, Claudio Martínez [EMAIL PROTECTED] wrote:

 I hate replying myself, I meant trying those parameters only.

 charset= and sqlobject_encoding= only gave me problems.

 Also, including the file my.cnf fails silently when the path is wrong
 and can be a major pain when debugging (try it relative and abosolute
 paths).


 


--~--~-~--~~~---~--~~
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: TurboEntity

2006-10-31 Thread gasolin

Daniel:

I tried to learn TurboEntity by porting simpleblog-part-2 to
TurboEntity
(porting simpleblog-part-1 is a pretty nice experience)
http://www.splee.co.uk/2006/10/20/simpleblog-part-2/

I've meet some problems:

1. How to use OneToMany map for Post-Comments relationship?

2. how to make backref work?

Without document It seems not that obvious.


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Max Ischenko


Ian Wilson wrote:
 Yeah none of that seemed to work.   Any more ideas?

I'm afraid we ran out of the decent ideas. Personally, I use the
following dburi and the patch included below to make it all work. IIRC
SQLObject developers even merged this patch into codebase but only in a
dev branch, not the stable version TG uses (and requires)

sqlobject.dburi=mysql://...?client_encoding=utf8

Index: sqlobject/mysql/mysqlconnection.py
===
--- sqlobject/mysql/mysqlconnection.py  (revision 1744)
+++ sqlobject/mysql/mysqlconnection.py  (working copy)
@@ -19,6 +19,10 @@
 self.user = user
 self.password = passwd
 self.kw = {}
+if kw.has_key('client_encoding'):
+self.client_encoding = col.popKey(kw, 'client_encoding')
+else:
+self.client_encoding = None
 for key in (unix_socket, init_command,
 read_default_file, read_default_group):
 if key in kw:
@@ -47,6 +51,8 @@

 if hasattr(conn, 'autocommit'):
 conn.autocommit(bool(self.autoCommit))
+if self.client_encoding:
+conn.query('SET NAMES ' + self.client_encoding)

 return conn


--~--~-~--~~~---~--~~
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: TurboEntity

2006-10-31 Thread Steve Holden

gasolin wrote:
 Daniel:
[...]
 
 Without document It seems not that obvious.
 
Unfortunately a position that I find myself in concerning many aspects 
of this fine system.

Can we have a documentation sprint at PyCon - I know that much will have 
improved by then, but I can bring a unique ignorance to the party to 
help try and focus improvement where they will do most good.

Documentation is never finished ...

regards
  Steve
-- 
Steve Holden   +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd  http://www.holdenweb.com
Skype: holdenweb   http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Ian Wilson

I am sorry.  Also I should actually start reading exception traces for
once.  I think the problem is more of the data going IN than the data
coming OUT.  I was doing a query like this:
Plant.select(Plant.q.genus==searchWord) and it turns out searchWord
was unicode.  And I don't know why it is unicode because I  stopped
using a Unicode validator and starting using a regular String
validator.

So I think my problem is happening because of this:
 unicode(unicode('', 'utf-8'),'utf-8')
Traceback (most recent call last):
  File stdin, line 1, in ?
TypeError: decoding Unicode is not supported

AND because changing:
myquery = unicode(query, self.encoding)
To this:
if type(query) != unicode:
myquery = unicode(query, self.encoding)
else:
myquery = query
in the file sqlobject/mysql/mysqlconnection.py fixes the problem.

I really don't know if this is a fix or avoidance of the problem
because my knowledge is minimal.Thank you everyone for your
responses sorry if my previuos posts were misleading and I am really
confused but its working now.

-Ian

On 10/31/06, Max Ischenko [EMAIL PROTECTED] wrote:


 Ian Wilson wrote:
  Yeah none of that seemed to work.   Any more ideas?

 I'm afraid we ran out of the decent ideas. Personally, I use the
 following dburi and the patch included below to make it all work. IIRC
 SQLObject developers even merged this patch into codebase but only in a
 dev branch, not the stable version TG uses (and requires)

 sqlobject.dburi=mysql://...?client_encoding=utf8

 Index: sqlobject/mysql/mysqlconnection.py
 ===
 --- sqlobject/mysql/mysqlconnection.py  (revision 1744)
 +++ sqlobject/mysql/mysqlconnection.py  (working copy)
 @@ -19,6 +19,10 @@
  self.user = user
  self.password = passwd
  self.kw = {}
 +if kw.has_key('client_encoding'):
 +self.client_encoding = col.popKey(kw, 'client_encoding')
 +else:
 +self.client_encoding = None
  for key in (unix_socket, init_command,
  read_default_file, read_default_group):
  if key in kw:
 @@ -47,6 +51,8 @@

  if hasattr(conn, 'autocommit'):
  conn.autocommit(bool(self.autoCommit))
 +if self.client_encoding:
 +conn.query('SET NAMES ' + self.client_encoding)

  return conn


 


--~--~-~--~~~---~--~~
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: TypeError: decoding Unicode is not supported

2006-10-31 Thread Max Ischenko
Ian,On 11/1/06, Ian Wilson [EMAIL PROTECTED] wrote:
So I think my problem is happening because of this: unicode(unicode('', 'utf-8'),'utf-8')Traceback (most recent call last):File stdin, line 1, in ?TypeError: decoding Unicode is not supported
AND because changing:myquery = unicode(query, self.encoding)To this:if type(query) != unicode:myquery = unicode(query, self.encoding
)else:myquery = queryin the file sqlobject/mysql/mysqlconnection.py fixes the problem.Indeed. I was writing about this problem some time ago(*), just got confused about the strack trace you've been showing.
* - http://maxischenko.in.ua/blog/entries/89/sqlobject-unicode-and-ascii-error/
I really don't know if this is a fix or avoidance of the problembecause my knowledge is minimal.Thank you everyone for yourresponses sorry if my previuos posts were misleading and I am reallyconfused but its working now.
Glad to hear it finally works for you.

--~--~-~--~~~---~--~~
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  -~--~~~~--~~--~--~---