Saravanan666/pypi-org huggingface dataset:
Package: collective.youtube_rst
IntroductionThis is a tiny addon for Plone that enables embedding of Youtube videos
in ReStructuredText.InstallationInclude the egg in your buildout:| [buildout]
|    eggs += collective.youtube_rstManual setupYou will need to allow IFRAME tags in your site.In your browser, goto /@@filter-controlpanelUnderCustom tagshit the button ‘Add Custom tags’in the new input field, enter: iframeHit ‘Save’ or your changes will not take effectUsageYou can now embed a youtube video in rst using the ‘youtube’ directive:.. youtube:: foobarOptionally you can override the default with (560px) and height (349px) settings:.. youtube:: foobar
    width=640
    height=390GotchasReStructuredText to HTML conversion is (apparently) done save-time, not render-time.
If you’re fiddling with the rst config, you may need to re-save any rst documents
for changes to show up.CreditsBased onhttp://countergram.com/youtube-in-rstChangelog0.1dev (unreleased)Initial release
Package: collective.z3cform.addablechoice
IntroductionThis product adds a z3c.form widget (called an Addable Choice Widget) that provides a
text input in which the user can enter a new value, but also a dropdown in
which previously added values are shown.The user therefore has the choice to use a value previously given, or to give a
new value.When this widget is used for the first time, the dropdown will of course be
empty, as there won’t be any previously added values.How to use:from plone.directives import form
from collective.z3cform.addablechoice.widget import AddableChoiceFieldWidget


class IMyType(form.Schema):
    """ """
    product_name = schema.TextLine(
        title=_(u'label_product_name', default=u'Product Name'),
    )
    form.widget(product_name=AddableChoiceFieldWidget)Changelog0.6 (2013-03-18)Fixed RST rendering errors. [jcbrand]0.5 (2013-03-18)Fail gracefully when there is no index or now values to choose from.
[jcbrand]0.4 (2012-08-02)Explicitly check if request value is list/tuple. [jcbrand]0.3 (2012-03-22)Edit MANIFEST.in to include profiles dir. [jcbrand]0.2 (2012-03-21)Add MANIFEST.in to explicitly add docs dir. [jcbrand]0.1 (2012-03-21)Created [jbeyers]Initial release [jcbrand]
Package: collective.z3cform.colorpicker
ContentsIntroductionRequirementsInstallationUsageContributorsChangelog3.0.1 (2023-10-26)3.0.0 (2023-07-24)2.1.0 (2021-09-17)2.0 (2017-12-21)1.4 (2015-11-11)1.3 (2015-10-05)1.2 (2015-05-02)1.1 (2013-06-02)1.0 (2013-06-02)0.2 (2010-10-31)0.1 (2009-06-19)Introductioncollective.z3cform.colorpicker provides a color picker widget, which uses the Browser native color input.RequirementsPlone >= 5.0plone.app.z3cformFor previous Plone versions use a version collective.z3cform.colorpicker
less than 2.xInstallationInstall collective.z3cform.colorpicker by adding it to your buildout:[buildout]

...

eggs =
    collective.z3cform.colorpickerand then runningbin/buildoutor installing it viapip install collective.z3cform.colorpickerUsageYou can use this widget setting the “widgetFactory” property of a form field:from z3c.form import form, field
from collective.z3cform.colorpicker import Color

class IColorForm(interface.Interface):
    color = Color(
        title=u"Color",
        description=u"",
        required=False,
        default="#ff0000"
    )


class ColorForm(form.Form):
    fields = field.Fields(IColorForm)
    ...for more information see demo directory in the package sources.ContributorsGiorgio Borelli - gborelli, Original AuthorSilvio Tomatis - silviotRamon Navarro Bosch - bloodbareMaurits van Rees - mauritsLeonardo J. Caballero G. - macaguaChangelog3.0.1 (2023-10-26)fix GS breaking because of empty registry.xml file
[MTango]3.0.0 (2023-07-24)Move to native input color field, which is supported by all moderns browsers
[MrTango]Plone compatibility
[MrTango]2.1.0 (2021-09-17)Python 3 support.  [espen]2.0 (2017-12-21)Added Color and ColorAlpha fields for colorpicker widgets
[giorgio]Removed JPicker and farbastic javascripts
[gborelli]Added colorpicker patterns based on bootstrap-colorpicker
[gborelli]Added plone5.0 resource registry support
[gborelli]Added Docker configuration for development
[gborelli]Improved demo page -http://<yourplonesite>/@@colorpicker-demo
[gborelli]1.4 (2015-11-11)Added Dutch translations.
[maurits]Made the close button translatable.
Found withi18ndudefind-untranslated..
[maurits]1.3 (2015-10-05)Remove from jpicker js file the bad chars from the begining
[bloodbare]Renamed txt files to rst, without symlinks.  Symlinks can give
installation problems, due to either the symlink or the original
file missing from the distribution or being empty, because the link
can end up the wrong way around.  Fixes issue #1.
[maurits]1.2 (2015-05-02)Updated classifiers list for package [macagua]Added Spanish translation [macagua]1.1 (2013-06-02)fix MANIFEST.in
[gborelli]1.0 (2013-06-02)add z3cform_colorpicker.js to initialize JPicker widget
[gborelli]add internationalization support
[gborelli]add css and javascript to Plone registry in order to make html valid
[gborelli]add profile to install colorpicker package
[gborelli]change some jpicker styles
[gborelli]update jpicker to v1.1.6
[gborelli]egg layout refactoring
[gborelli]change Browser import from Testing.testbrowser
[gborelli]0.2 (2010-10-31)include jPicker widget for alpha transparency support
[gborelli]0.1 (2009-06-19)Initial release
Package: collective.z3cform.datagridfield-demo
Introduction============This package provides the demo views for`collective.z3cform.datagridfield <https://github.com/collective/collective.z3cform.datagridfield>`_. See thatpackage for more information.Installation------------Add collective.z3cform.datagridfield_demo to your buildout eggs.::eggs=\...collective.z3cform.datagridfieldcollective.z3cform.datagridfield_demoExamples of configurations are in the demo folder.Install ``collective.z3cform.datagridfield`` in *Site setup* > *Add ons*.Once you install this package (no add-on installer installation required),the demo views will be visible on your site.* http://localhost:8080/Plone/@@demo-collective.z3cform.datagridThis page has links of several examples of different DGF use cases.Sample output---------------Run Plone on foreground mode to see debug prints what kind of data the demo forms submit.Source code and issue tracker-------------------------------* https://github.com/collective/collective.z3cform.datagridfield_demoReferences----------* http://pypi.python.org/pypi/collective.z3cform.datagridfieldChangelog=========0.6 (2013-10-28)----------------* Added blocks edit example [miohtama]* README polish [miohtama]* Correct typos in readme[davidjb]* Added additional dependencies as this package depends on five.grokand plone.directives.form.[davidjb]* Move row up / down0.5 (2011-02-08)----------------* First release, moved demo pages out of the main package, as recommended byLaurence Rowe
Package: collective.z3cform.datepicker
==========================================Datepicker (collective.z3cform.datepicker)==========================================jqueryui datepicker integration for z3cform's and plone. Enjoy ...source: http://github.com/garbas/collective.z3cform.datepickerTODO====* auto languages (loading right language js file)* custom date(time) format* No posting value if the user doesn't make a selection (otherwise alloptional fields are populated with 1/1/1980)* Initial value for datewidget support (no datetimewidget.pt only doesthis)01:56 < davisagli_> garbas_: in general I like it and would like to use itfor the date fields in dexterity, but there are a few ways in whichit's not quite as good as the existing Archetypes date widget01:56 < davisagli_> garbas_: it needs to have the ability to select *no*date (e.g., if the field is not required)01:57 < davisagli_> garbas_: it needs to be usable when the backend storageyields a date with timezone info (this can be supported by usingzope.datetime.parseDatetimetz to parse the string from the widget)01:58 < davisagli_> garbas_: the typical case with content is theeffective and expiration dates, which are DateTimes but not required01:59 < davisagli_> garbas_: it would be nice if it used full monthnames instead of numbers in the UI, to make it more clear which fieldis which (since this is different in USA from other parts of the world)01:59 <davisagli_> garbas_: and it would be nice if the time selection couldbe configured to either 12 hour or 24 hour clock, depending on the localeChangelog=========0.1rc7 - 03/11/2008-------------------* FIX: locales problem with 'de'0.1rc6 - 02/27/2008-------------------* FIX: prevent HTML validation errors because of missing JS encoding,added CDATA blocks to the JS [garbas]* widgets tested in IE7, FF3, Opera9.6, Chrome (few css issues in operaand ie7) [garbas]* support all (almost) jqueryui datpicker options [garbas]* clear date button for DatePickerWidget [garbas]0.1rc5 - 02/12/2008-------------------* FIX: min/max year for datepicker popup was not set [garbas]0.1rc4 - 02/12/2008-------------------* FIX: selecting date was not working for month with on number [garbas]0.1rc3 - 02/12/2008-------------------* default theme was missed in widget [garbas]0.1rc2 - 02/12/2008-------------------* rc1 broken missing manifest file [garbas]0.1rc1 - 02/12/2008-------------------* language support for widget [garbas]* works with no javascript [miohtama]* load value from context [miohtama]* added collective.jqueryui as dependency [garbas]* test buildout added [garbas]0.1b1 - 10/05/2008------------------* initial release [garbas]
Package: collective.z3cform.filewidget
collective.z3cform.filewidgetThis package provides a simple widget for file upload and edit. It is registered for zope.schema.interfaces.IBytes. The original file widget allows only upload and thus it is usable only with z3c.form.AddForm.It can be used together with archetypes’ FileField, however the z3c.form’s applyChanges cannot handle filename and content_type properly, so please note that you have to tweak it yourself.The aim was to override the default behavior without creating a new field as plone.namedfile does.UsageAdd the package into you buildout’s egg section or your package’s setup.py and rerun buildout.In your form reassign the widget:from collective.z3cform.filewidget import FileFieldWidget

class YourForm(form.EditForm):
    fields = field.Fields(IYourForm)
    fields['file'].widgetFactory[INPUT_MODE] = FileFieldWidgetThe value returned from the widget (convertor) is either raw data of the uploaded file or a collective.z3cform.filewidget.NOCHANGE indicating that the file has not been changed.The filename and headers are stored within the widget instance itself:filename = self.widgets['file'].filename
headers = self.widgets['file'].headersChangelog0.1 (unreleased)Initial release
Package: collective.z3cform.jsonwidget
z3c.form widget to manage a json field.FeaturesCustomizable schemaUsageYou need to set the widget to needed fields into your form instance:from collective.z3cform.jsonwidget.browser.widget import JSONFieldWidget
from zope.interface import Interface
from zope import schema


class IMyJsonSchema(Interface):
    first = schema.TextLine(
        title='first field',
        required=True,
    )
    second = schema.List(
        title="second field",
        required=False,
        value_type=schema.TextLine(),
    )

class IFormSchema(Interface):
    my_json_field = schema.SourceText(
        title="The field with some stored json values"
    )

class MyForm(Form):

    ...
    schema = IFormSchema
    fields = field.Fields(IFormSchema)
    fields["my_json_field"].widgetFactory = JSONFieldWidget

    def updateWidgets(self):
        """
        """
        super(MyForm, self).updateWidgets()
        self.widgets["my_json_field"].schema = IMyJsonSchemaWith this configuration, we are settingJSONFieldWidgetwidget tomy_json_fieldfield and
setting the fields schema defined inIMyJsonSchemainterface.In the field are stored a list of json objects where each object has a set of fields defined in the schema.For example for the given configuration, we are going to store into the field something like:[
    {
        "first": "a string",
        "second": [1,2,3,4]
    },
    {
        "first": "another string",
        "second": ["a", "b", "c"]
    },
]TranslationsThis product has been translated intoItalianInstallationInstall collective.z3cform.jsonwidget by adding it to your buildout:[buildout]

...

eggs =
    collective.z3cform.jsonwidgetand then runningbin/buildoutContributeIssue Tracker:https://github.com/collective/collective.z3cform.jsonwidget/issuesSource Code:https://github.com/collective/collective.z3cform.jsonwidgetCreditsDeveloped with the support ofRegione Emilia Romagna;Regione Emilia Romagna supports thePloneGov initiative.AuthorsThis product was developed by RedTurtle Technology team.ContributorsAndrea Cecchi,andrea.cecchi85@gmail.comChangelog1.1.2 (2023-04-26)Fix release.
[cekk]1.1.1 (2023-04-21)Handle integer fields.
[cekk]1.1.0 (2022-07-18)Force vocabularies batch size to 1000 to get all of possible values.
[cekk]1.0.0 (2021-12-20)Improve widget usability.
[cekk]0.2.4 (2021-12-13)Fix defaulValue in select fields. Now we can also reset the values.
[cekk]0.2.3 (2021-08-18)Fix homepage breadcrumb.
[cekk]0.2.2 (2021-08-17)Fix breadcrumbs and pagination in ReferenceField.
[cekk]0.2.1 (2021-05-18)Add alt text on buttonsAdd locales for a11y hints
[nzambello]0.2.0 (2021-05-17)Add link and path to referenced items
[nzambello]Fix TextLine field.
[cekk]0.1.0 (2021-02-09)Initial release.
[cekk]
Package: collective.z3cform.keywordwidget
IntroductionThis product adds a Keyword widget (similar to Archetypes.Widget:KeywordWidget)
for plone.z3cform.How To Use (Doc Tests):>>> from z3c.form import testing
>>> testing.setupFormDefaults()
>>> import zope.interface
>>> import zope.schema
>>> from zope.schema.fieldproperty import FieldPropertyUse the Keywords field your field type:>>> from collective.z3cform.keywordwidget.field import Keywords
>>> class IFoo(zope.interface.Interface):
...
...     keywords = Keywords(title=u'Keywords')>>> class Foo(object):
...     zope.interface.implements(IFoo)
...     keywords = FieldProperty(IFoo['keywords'])
...
...     def __init__(self, keywords):
...             self.keywords = keywords
...
...     def __repr__(self):
...             return '<%s %r>' % (self.__class__.__name__, self.name)We need to make sure that the keywords property is indexed in portal_catalog.First, we write the indexer. The indexer is a special adapter that adapts the type of an object
and provides the value of the attribute to be indexed.>>> from plone.indexer.decorator import indexer
>>> @indexer(IFoo)
... def keywords(obj):
...     return IFoo(obj).keywordsWe need to register our indexer as a named adapter, where the name corresponds to
the index name. In ZCML, that may be:<adapter name="keywords" factory=".indexers.keywords" />For testing purpoese, we will register it directly.>>> from zope.component import provideAdapter
>>> provideAdapter(keywords, name='keywords')Now we add a form in which the widget will be rendered:Specify the KeywordWidget factory (‘KeywordFieldWidget’) as the field’s widgetFactory.>>> from z3c.form.testing import TestRequest
>>> from z3c.form import form, field
>>> from collective.z3cform.keywordwidget.widget import KeywordFieldWidget>>> class FooAddForm(form.AddForm):
...
...     fields = field.Fields(IFoo)
...     fields['keywords'].widgetFactory = KeywordFieldWidget
...
...     def create(self, data):
...             return Foo(**data)
...
...     def add(self, object):
...             self.context[object.id] = object
...
...     def nextURL(self):
...             return 'index.hml'Create, update and render the form:>>> root = app
>>> request = TestRequest()>>> addForm = FooAddForm(root, request)
>>> addForm.update()>>> print addForm.render()Changelog1.3 (2017-01-17)Fixed terms list setup.
[thomasdesvenain]Added a handler so that it can be used in supermodels.
[thomasdesvenain]made it work in Plone 4.3: fixed a problem in vocabulary creation in
combination with non-ascii.
[jensens]modernized test setup
[jensens]1.2 - 2012-03-19added option to specify index_name as field parameter. This is useful
eg. for ‘subjects’ field which should read it’s data from ‘Subject’
index. If not set, field name is used.
[naro]Added InAndOutKeywordWidget which is based on z3c.form OrderedSelectWidget
[naro]1.1.1 - 2012-02-24fixed broken 1.1 release [petschki]1.1 (2012-02-13)fixed unicode errors for non-ascii keyword value support [petschki]ui improved to keep newly entered categories on form errors [petschki]1.0.1 (2009-09-29)updated setup.cfg1.0 (2009-09-29)Initial release
Package: collective.z3cform.mapwidget
IntroductionMap widget forz3c.formbased oncollective.geo.mapwidget.For more information aboutcollective.geo, see theCoactivate home page.InstallationThis addon can be installed in the same manner as other addons; please follow
the officialPlone documentation.UsageIn order to use the widget contained in this package, usecollective.z3cform.mapwidget.widget.MapFieldWidgetand set this as
the widget for a suitable field within your form schema. One such suitable
field type is that ofzope.schema.TextLine.Changelog2.2 (2018-07-12)Added WKT field to adapt MapWidgetField
[giorgio]2.1 (2015-05-02)Add german translations
[msom]2.0 (2013-10-29)Changed package layout and add buildout conf
[gborelli]2.0b1 (2013-06-02)Refactored widget, renamed IMapWidget to IFormMapWidget and added
MapDisplayWidget for IFormMapWidget display mode
[gborelli]Moved shapedisplay layer to c.geo.mapwidgegt
[gborelli]Moved ShapeMapWidget and ShapeEditLayer to c.geo.mapwidget [gborelli]Decode context titles from utf-8 to avoid errors on displaying a map
with content containing such characters.
[davidjb]0.1 (2012-02-17)Added ability to hit enter key within geocoder input and search.
Previously, hitting enter submitted the parent form.
[davidjb]Restructure geocoder JavaScript so it happens on window.load (and wrap
the usage of$).
[davidjb]Execute map construction on window.load rather than when the JavaScript
gets loaded.
[davidjb]Pass map id through to edit shape map JavaScript.
[davidjb]Remove dependency on jq object for edit shape map.
[davidjb]Added ability to display a collective.geo map when outputting this widget
in display mode.  Presents a layer with the field’s value as its features.
[davidjb]Initial release
Package: collective.z3cform.rolefield
ContentsIntroductionHow-toInstallationTestsCreditsContributorsChangelog0.4 (2016-04-15)0.3 (2014-02-14)0.2 (2014-02-07)0.1 (2014-01-16)IntroductionWarningcollective.z3cform.rolefieldis deprecated.
Please, use dexterity.localrolesfield instead.A z3cform field that manage local roles.  This give the ability to assign local roles to selected element (that are by default Plone groups)How-toInstallationAdd collective.z3cform.rolefield to your eggs.Re-run buildout.Done.TestsThis add-on is tested using Travis CI. The current status of the add-on is :CreditsHave an idea? Found a bug? Let us know byopening a ticket.ContributorsGauthier Bastien, IMIOStephan Geulette, IMIOVincent Fretin, EcreallCedric Messiant, EcreallFrederic Peters, Entr’ouvertChangelog0.4 (2016-04-15)Added deprecation warning.
[sgeulette]0.3 (2014-02-14)Some fixes
[sgeulette, mpeeters]Updated tests
[mpeeters]Added field edit handler
[sgeulette]Set more restrictive matching to find principal
[sgeulette]Changed the way to get the object schema
[sgeulette]Use zope.schema FieldEventUpdated event to apply local role changes
[jfroche]Move tests in a test folder
[jfroche]Use zope.schemaevent to subscribe to field update event
[jfroche]Move interfaces to one module
[jfroche]Move LocalRolesToPrincipals field to its own module
[jfroche]Use buildout 2
[jfroche]0.2 (2014-02-07)Fix manifest
[jfroche]0.1 (2014-01-16)Initial release.
[gbastien]
Package: collective.z3cinspector
IntroductionThe zope3 component registry inspector is used for inspecting adapters
and utilities registered in the z3 component registry. It provides a view
registred on the app level for searching and inspecting the registry.FeaturesSearching for utilitiesSearching for adaptersSearching interfaces and names using auto-complete widgetOpen factory source file with your favourite editor (if the Zope is installed on localhost)Customize file opening commandAccess tabs with hotkeys (Ctrl+u, Ctrl+a, Ctrl+c)InstallationInstall it using buildout with Plone > 4.0:[buildout]
...

[instance]
...
eggs +=
    collective.z3cinspectorInstall it using buildout with Plone < 4.0:[buildout]
...

[instance]
...
eggs +=
    collective.z3cinspector
zcml +=
    collective.z3cinspectorUsageWhile being logged into the ZMI as a Manager user goto /@@inspect on your Zope
application root via a browser. If your Zope is configured to listen on port
8080 on localhost this is:http://localhost:8080/@@inspectConfigurationThe configuration is stored in the file~/.collective.z3cinspector.config. The
options are configurable through the @@inspect view. This way you only have to set
your preferred configuration once - and it will be configured in every zope instance
on your machine.When clicking on the “open” button in the results listing, your Editor will be
opened with the file containing the factory definition. You may wan’t to configure
how the Editor is opened. There are some pre-configured Editors:Emacs,MacVimandTextMate, the default to open the file is using theopencommand. The path
and the line number (option) is substituted (python).Example command:/path/to/your/editor %(path)s -l %(line)sJSON-APIThere is a JSON api for easy integration in editors.
The view@@inspector-ajaxhas following (traversable) methods:adapter_namesReturns a list of adapter names.adapter_provided_namesReturns a list of adapter provided interface names as string.utility_namesReturns a list of utility names.utility_provided_namesReturns a list of utility provided interface names as string.list_componentsReturns a list of components matching the criterias passed as
GET or POST to the request.Criterias:adapter_nameadapter_provided_nameutility_nameutility_provided_nameThe format can be changed by passingformatin the request.
Possible formats:as_dict(json),as_text.License“THE BEER-WARE LICENSE” (Revision 42):jonewrote this script. As long as you retain this notice you
can do whatever you want with this stuff. If we meet some day, and you think
this stuff is worth it, you can buy me a beer in return.Changelog1.2.1 (2022-05-09)Fix classifiers. [mathias.leimgruber]1.2.0 (2022-05-09)Python 3.9 compatibility [mathias.leimgruber]1.1 (2012-10-15)Add a JSON api.
[jone]Remove duplicate names.
[jone]Fix utility interface lookup bug.
[jone]1.0 (2010-12-31)Initial release