Thank you, Scott. One of the first things I tried was:
"submit = None Stuart On Friday, January 4, 2013 8:25:12 AM UTC-6, Scott Williams wrote: > > Stuart, > > Not sure if Sprox changes things, but according to the TW2 source, setting > submit to None on a form class should disable the submit button. From > tw2.forms.widgets.py: > > class Form ( twc . DisplayOnlyWidget ): > """ > A form, with a submit button. It's common to pass a > TableLayout or ListLayout widget as the child. > """ > template = "tw2.forms.templates.form" > help_msg = twc . Param ( > 'This message displays as a div inside the form' , > default = None ) > action = twc . Param ( > 'URL to submit form data to. If this is None, the form ' + > 'submits to the same URL it was displayed on.' , > default = None , attribute = True ) > method = twc . Param ( 'HTTP method used for form submission.' , > default = 'post' , attribute = True ) > submit = twc . Param ( 'Submit button widget. If this is None, no > submit ' + > 'button is generated.' , > default = SubmitButton ( value = 'Save' )) > buttons = twc . Param ( 'List of additional buttons to be placed at > the ' + > 'bottom of the form' , > default = []) > > Scott > > ------------------------------ > From: "Stuart Zurcher" <[email protected] <javascript:>> > To: [email protected] <javascript:> > Sent: Thursday, January 3, 2013 2:10:32 PM > Subject: [TurboGears] How to remove sprox submit button > > I have tried many different ways to remove the button on a form while > using sprox on TG2 with tw2: > > Class userInfo(diabledForm): > > __model__ = User > # following methods tried > > button = None > > class __sprox__(object): > > button = None > > __base_widget_args__ ={'button':None} > > I have also varied the name of button to submitButton, submit, Button, etc > > Any ideas? > > -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To view this discussion on the web visit https://groups.google.com/d/msg/turbogears/-/LW_Nm-iDLIYJ. 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.

