def handle_edit_action(self, action, data): CheckAuthenticator(self.request) if form.applyChanges(self.context, self.form_fields, data, self.adapters): self.status = _("Changes saved.") notify(ConfigurationChangedEvent(self, data)) self._on_save(data) else: self.status = _("No changes made.")
from zope.interface import Interface from zope import schema from vs.socialfooter import _ COLORS = [_(u'black'), _(u'white')] TYPES = [_(u'transparent'), _(u'circle'), _(u'rounded')] PROVIDERS = [ 'quora', 'pinterest', 'imessage', 'foodspotting', 'etsy', 'about_me', '500px', 'w3', 'stackoverflow', 'spotify', 'sound_cloud', 'smugmug', 'grooveshark', 'gowalla', 'gdgt', 'blip', 'wikipedia', 'scribd', 'photobucket', 'itune', 'github', 'forrst', 'dribbble', 'daytum', 'app_store_alt', 'star', 'podcast', 'identica', 'icondock', 'hyves', 'foursquare', 'ember_app', 'coroflot', 'yelp', 'xing', 'paypal', 'metacafe', 'icq', 'heart', 'gowalla_pin', 'drupal', 'add_this', 'share_this', 'rss', 'picasa', 'meetup', 'google_buzz', 'feed_burner', 'email', 'ebay', 'bing', 'squidoo', 'posterous', 'friendstar', 'deviant_art', 'designfloat', 'design_bump', 'behance', 'bebo', 'wordpress', 'virb', 'vimeo', 'viddler', 'tumblr', 'qik', 'mr_wong', 'blogger', 'windows', 'msn', 'mobileme', 'last.fm', 'apple', 'app_store', 'aol', 'amazon', 'youtube', 'yahoo', 'yahoo_buzz', 'technorati', 'slideshare', 'reddit', 'newsvine', 'google_talk', 'friendsfeed', 'stumbleupon', 'slashdot', 'skype', 'myspace', 'mixx', 'linkedin', 'digg', 'digg_alt', 'twitter', 'twitter_bird', 'retweet', 'flickr', 'facebook', 'delicious', ] class ISocialFooterPanelSchema(Interface): type = schema.Choice( title=_(u'Choose icon type'),