Thanks Anthony ... yes - authorization topic... how easy ..
Best regards
Beat
Am Samstag, 6. Juni 2015 05:27:17 UTC+2 schrieb Massimo Di Pierro:
>
> and the latter option is very unsafe.
>
> On Friday, 5 June 2015 09:32:13 UTC-5, Anthony wrote:
>>
>> You either have to be logged in or set user_signature=False.
>>
>> Anthony
>>
>> On Friday, June 5, 2015 at 12:26:00 AM UTC-4, Beat Kohler wrote:
>>>
>>> Hey guys!
>>> on a SMARTGRID I added a "linked_table" argument. ... no I have only the
>>> view button left. No way to modify neither the parent nor the child.
>>> What goes wrong.. sorry, what I made wrong?
>>>
>>> Coding:
>>> grid = SQLFORM.smartgrid(db.CUSTOMER, linked_tables=['CUST_PEOPLE'],
>>> editable=True)
>>> (the editable argument I added later ... no effect)
>>> Table definitions:
>>> db.define_table("CUSTOMER",
>>> Field("CUSTNAME", "string", length=30, label=T("Customer Name"),
>>> notnull=True, default=None),
>>> Field("DESCRIPTION", "text", label=T("Customer Description"),
>>> notnull=True, default=None),
>>> Field("COMMUNICATION", "text", label=T("Access Description"),
>>> notnull=True, default=None),
>>> Field("LOGINNET", "text", label=T("Login Network"), notnull=True,
>>> default=None),
>>> Field("DOCU", "upload", label=T("Documentation Access")),
>>> Field("DOCU2", "upload", label=T("Documentation Access 2")),
>>> Field("DOCU3", "upload", label=T("Documentation Access 3")),
>>> migrate=True, format='%(CUSTNAME)s')
>>> """
>>> db.define_table("CUST_PEOPLE",
>>> Field("id_CUSTOMER", db.CUSTOMER),
>>> Field("NAME", "string", label=T("Name of Contact"), length=80,
>>> notnull=True, default=None),
>>> Field("JOB_POSITION", "string", label=T("Job Position"),
>>> length=80, notnull=True, default=None),
>>> Field("EMAIL", "string", length=30, label=T("Email"),
>>> notnull=True, default=None, requires=IS_EMAIL()),
>>> Field("TEL", "string", length=80, label=T("Telephone"),
>>> notnull=True, default=None), migrate=True)
>>>
>>> Thanks for your help
>>> Beat
>>>
>>>
>>>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.