Il 10/09/12 15:49, rif ha scritto:
> I started the development of a new django-like admin interface.
>
> You can find it here:
https://github.com/rif/web2admin
>
> It is very basic but still usable because it uses SQLFORM.smartgrid.
>
> I am announcing it early because I need your feedback and feature
> requests so that I can find out if grid will be able to support all
> the desired features.
>
> For quick start you can create a w2a_root group and add your user to
> that group.
>
> -rif
> --
>
>
>
Dear rif,
many compliments for the project!
I found a problem with virtual fields... but I don't know if it's
related to your plugin or directly to web2py.
I added a very simple virtual field like this one:
db.testtable.testfield = Field.Virtual(lambda row: 'foo')
and I obtain this error:
Traceback (most recent call last):
File "/home/manuele/portali/web2py.git/gluon/restricted.py", line 217,
in restricted
exec ccode in environment
File
"/home/manuele/portali/web2py.git/applications/paytorviewer/controllers/plugin_web2admin.py",
line 116, in <module>
File "/home/manuele/portali/web2py.git/gluon/globals.py", line 372, in
<lambda>
self._caller = lambda f: f()
File "/home/manuele/portali/web2py.git/gluon/tools.py", line 3239, in f
return action(*a, **b)
File
"/home/manuele/portali/web2py.git/applications/paytorviewer/controllers/plugin_web2admin.py",
line 34, in view_table
showbuttontext = plugins.web2admin.showbuttontext,
File "/home/manuele/portali/web2py.git/gluon/sqlhtml.py", line 2770,
in smartgrid
user_signature=user_signature, **kwargs)
File "/home/manuele/portali/web2py.git/gluon/sqlhtml.py", line 2452,
in grid
value = row[str(field)]
File "/home/manuele/portali/web2py.git/gluon/dal.py", line 7362, in
__getitem__
raise ae
AttributeError: 'Row' object has no attribute 'unknown'
any idea?
Thank you
Manuele