Sublime Text 2 Package for Zenoss Development
- Total 2K
- Win 2K
- Mac 332
- Linux 159
|Oct 23||Oct 22||Oct 21||Oct 20||Oct 19||Oct 18||Oct 17||Oct 16||Oct 15||Oct 14||Oct 13||Oct 12||Oct 11||Oct 10||Oct 9||Oct 8||Oct 7||Oct 6||Oct 5||Oct 4||Oct 3||Oct 2||Oct 1||Sep 30||Sep 29||Sep 28||Sep 27||Sep 26||Sep 25||Sep 24||Sep 23||Sep 22||Sep 21||Sep 20||Sep 19||Sep 18||Sep 17||Sep 16||Sep 15||Sep 14||Sep 13||Sep 12||Sep 11||Sep 10||Sep 9|
This package contains the following tab triggered snippets:
XML (or ZCML) files:
Generates a full boilerplate configure.zcml for your ZenPack. The following fields can then be set:
- shortname: Usually a lowercase representation of the ZenPack's name.
- ShortClassName: A Python class-friendly capitalization of shortname.
- DeviceClassName: The Python class name of any custom Device subclass contributed by the ZenPack.
Adds the standard XML copyright header. By default it copyrights to Zenoss, Inc. So as you might imagine, it's more useful for Zenoss employees.
Generates a full boilerplate for a Device subclass contributed by the ZenPack including the model class and the API interfaces and wiring.
The following fields can be set:
- ClassName: Name of the Device subclass.
- attribute: Name of the first attribute for the class.
- string: Type for the attribute.
- Attribute: Friendly capitalized title for the attribute. Used in the user interface.
- TextLine: Zope schema type for the attribute.
Generates a full boilerplate for a DeviceComponent subclass contributed by the ZenPack including the model class and the API interfaces and wiring.
The fields are the same as for zdevice above.
Adds the standard Python copyright header. By default it copyrights to Zenoss, Inc. So as you might imagine, it's more useful for Zenoss employees.
Generates a simple anonymous function to prevent your ZenPack from interfering with the global scope. Also defines a ZC variable for easy access to the Zenoss.component namespace.
Generates boilerplate required to create a custom user interface for a DeviceComponent subclass. This includes the human-friendly name registration and custom component grid panel.
The following fields can be set:
- MetaType: The meta_type for the related DeviceComponent subclass. This is the same as ClassName from the Python zcomponent snippet.
- Singular Name: A human-friendly name for the component type in a singular context.
- Plural Name: A human-friendly name for the component type in a plural context.
- attribute: Name of the first attribute for the component. This is the same as attribute from the Python zcomponent snippet.
- Attribute: Friendly capitalized title for the attribute. This is used as the column header for the attribute.
With Package Control
The easiest way to install SublimeZenoss is through Package Control.
Once you install Package Control, restart ST2 and bring up the Command Palette (Command+Shift+P on OS X, Control+Shift+P on Linux/Windows). Select "Package Control: Install Package", wait while Package Control fetches the latest package list, then select Zenoss when the list appears. The advantage of using this method is that Package Control will automatically keep SublimeZenoss up to date with the latest version.
Clone the repository in your Sublime Text 2 Packages directory, located somewhere in user's "Home" directory:
git clone git://github.com/cluther/SublimeZenoss.git
Download the latest source from GitHub and copy the whole directory into the Packages directory.
The "Packages" packages directory is located at:
~/Library/Application Support/Sublime Text 2/Packages/
~/.Sublime Text 2/Packages/
%APPDATA%/Sublime Text 2/Packages/