On Oct 7, 4:14 pm, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > On Sep 23, 4:26 pm, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > > > > > On Sep 23, 4:18 pm, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > > > > On Sep 20, 11:14 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > > > > > On Sep 19, 3:43 pm, percious <[EMAIL PROTECTED]> wrote: > > > > > > I thought there was someone who already did this, but I cannot find > > > > > the link. Try searchinggoogleTurbogears widgets and see the links > > > > > you get!!! ha! > > > > > > Anyway. If you are going to go down this path, please please please > > > > > use Toscawidgets so we can all take advantage of your shared code. > > > > > > cheers. > > > > > -chris > > > > > > On Sep 18, 9:28 am, "exhuma.twn" <[EMAIL PROTECTED]> wrote: > > > > > > > Yesterday I started with a new FormField widget using GoogleMaps. > > > > > > > Purpose: > > > > > > > I have a field in the database containing the latitude/longitude of > > > > > > a > > > > > > location. I want this to be easily editable using a smallgoogle-maps > > > > > > <div>. > > > > > > > The widget will most likely return the value as "(lat,long)" tuple. > > > > > > Or > > > > > > something similar. > > > > > > > To my knowledge there is not yet such a widget. If there is, please > > > > > > tell me, I don't want to reinvent the wheel. If not, don't fret... I > > > > > > will share my code. ;) > > > > > ToscaWidgets is new to me. I will have a look at it and I will try to > > > > create the GM Widget with ToscaWidgets in mind. > > > > Humm... I tried to wrap my head around ToscaWidgets. But I find the > > > doumentation lacking. First, the link to the subversion folder > > > (http://www.turbogears.org/svn/turbogears/projects/ToscaWidgets/trunk/...) > > > is broken. So I started to rummage > > > throughhttp://svn.turbogears.org/projects/ToscaWidgets. > > > > The example application imports > > > "toscawidgets.widgets.forms.samples.AddUserForm". But I cannot find > > > this in the SVN folder. Also a "grep" in my site-packages/ToscaWidgets > > > did not come up with something helpful. > > > > So for now I will start off with a "normal" TurboGears-Style widget > > > until I figured out how to write a "ToscaWidget". Any pointers > > > appreciated. :( > > > What makes things worse, the TG app fails to start when ToscaWidgets > > is installed. So I uninstalled it again :( > > I did not even make a change in my TG-app. I just installed TW and > > made *no* change in my code. But the application failed to start-up > > nevertheless: > > > Traceback (most recent call last): > > File "./start-travelguide26.py", line 5, in ? > > from turbogears import config, update_config, start_server > > File "/usr/lib/python2.4/site-packages/TurboGears-1.0.3.2-py2.4.egg/ > > turbogears/__init__.py", line 21, in ? > > ext = entrypoint.load() > > File "/usr/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/ > > pkg_resources.py", line 1912, in load > > entry = __import__(self.module_name, globals(),globals(), > > ['__name__']) > > File "/usr/lib/python2.4/site-packages/ToscaWidgets-0.1a2dev_r3417- > > py2.4.egg/toscawidgets/mods/tg.py", line 51, in ? > > class Turbogears(HostFramework): > > File "/usr/lib/python2.4/site-packages/ToscaWidgets-0.1a2dev_r3417- > > py2.4.egg/toscawidgets/mods/tg.py", line 62, in Turbogears > > engines.load_all(turbogears.config) > > File "/usr/lib/python2.4/site-packages/ToscaWidgets-0.1a2dev_r3417- > > py2.4.egg/toscawidgets/view.py", line 88, in load_all > > self.load_engine(ep.name, engine_options, stdvars) > > File "/usr/lib/python2.4/site-packages/ToscaWidgets-0.1a2dev_r3417- > > py2.4.egg/toscawidgets/view.py", line 57, in load_engine > > options = options.copy() > > AttributeError: 'module' object has no attribute 'copy' > > I am still seeing this error. As soon as I easy_install ToscaWidgets > and twForms, I get this error and the whole app becomes unusable. > As long as this problem exists I cannot play around with ToscaWidgets : > (
I had the same issue, TG just won`t start. Found this ticket: http://trac.turbogears.org/ticket/1495 , I made the changes to view.py, and my TG app starts without an issue. I did not test the ToscaWidgets themselves yet, so don`t know if it actually works (Python2.5) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

