Problem with Memento

21 views
Skip to first unread message

Lionel Roubeyrie

unread,
Mar 16, 2013, 5:11:00 AM3/16/13
to project...@googlegroups.com
Hi,
don't want to use the Memento module, then I didn't set "import camelot.model.memento" in the main.py file.
However in the top toolbar of each form there's a memento button, and selecting it result in a exception : "TypeError: 'NoneType' object is not callable".
Do I have to remove this button in each form (and how)?
Thanks

Erik Janssens

unread,
Mar 16, 2013, 6:50:05 AM3/16/13
to project...@googlegroups.com

In your ApplicationAdmin, the method

 

get_form_toolbar_actions

 

decides which buttons are put by default on the form,

so you can change this method to get rid of the memento

button

 

another possibility is to reimplement

 

get_memento

 

to customize the memento system to your own

needs

--
--
You received this message because you are subscribed to the "Project Camelot" group.
Visit www.python-camelot.com for more information
 
To post to this group, send email to project...@googlegroups.com
To unsubscribe from this group, send email to
project-camel...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/project-camelot?hl=en
 
---
You received this message because you are subscribed to the Google Groups "Project Camelot" group.
To unsubscribe from this group and stop receiving emails from it, send an email to project-camel...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



Reply all
Reply to author
Forward
0 new messages