On 7/30/07, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>
> Lukasz Szybalski schrieb:
> > Is the version in the repository different from the one in the download 
> > section?
> > Does the svn version support TurboGears 1.0.x ? and python 2.5?
>
  > Yes and yes.
>
> But even the SVN version does not fully support all SQLObject column
> types. Support for DataTimeCols is currently broken. Support for
> RelatedJoins and MultipleJoins rather experimental.
>

I am having problems with implementing fastdata into my template:

How do i set the widget?
How do I pass this widget to my template?


controler.py
class Root(controllers.RootController):
    @expose(template="myapp.templates.mybrowse")
     def mybrowse(self):
        from model import myClass
        from tgfastdata import DataController
        from tgfastdata.datawidgets import FastDataGrid
        #creates a form generic widget?Do I need to pass a myClass to it?
        database_form=FastDataGrid()
        #initiates widget?
        x=DataController(sql_class=myClass,list_widget=database_form)
        return dict(datagrid=x)

template.mybrowse.kid
 <a py:content="datagrid">data grid</a>

I get in localhost:8080/mybrowse:
<tgfastdata.datacontroller.DataController object at 0x0155E7F0>

1. How do i properly initiate the widget?
2.What should be passed to template? Datacontroller or FastdataGrid?
3. How do i properly display it? if in template i do datagrid.display() I get
AttributeError: 'DataController' object has no attribute 'display'

Lucas

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

Reply via email to