ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Zenoss

by cluther ALL

Sublime Text 2 Package for Zenoss Development

Details

  • 2014.05.02.14.42.57
  • github.​com
  • github.​com
  • 10 years ago
  • 8 minutes ago
  • 12 years ago

Installs

  • Total 2K
  • Win 2K
  • Mac 337
  • Linux 160
May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

SublimeZenoss

This is a Sublime Text 2 package that intends to make Zenoss ZenPack development easier.

This package contains the following tab triggered snippets:

  • XML (or ZCML) files:

    • zconfigure

      Generates a full boilerplate configure.zcml for your ZenPack. The following fields can then be set:

      1. shortname: Usually a lowercase representation of the ZenPack's name.
      2. ShortClassName: A Python class-friendly capitalization of shortname.
      3. DeviceClassName: The Python class name of any custom Device subclass contributed by the ZenPack.
    • zcopyright

      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.

  • Python files:

    • zdevice

      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:

      1. ClassName: Name of the Device subclass.
      2. attribute: Name of the first attribute for the class.
      3. string: Type for the attribute.
      4. Attribute: Friendly capitalized title for the attribute. Used in the user interface.
      5. TextLine: Zope schema type for the attribute.
    • zcomponent

      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.

    • zcopyright

      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.

  • JavaScript files:

    • zjs

      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.

    • zcomponent

      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:

      1. MetaType: The meta_type for the related DeviceComponent subclass. This is the same as ClassName from the Python zcomponent snippet.
      2. Singular Name: A human-friendly name for the component type in a singular context.
      3. Plural Name: A human-friendly name for the component type in a plural context.
      4. attribute: Name of the first attribute for the component. This is the same as attribute from the Python zcomponent snippet.
      5. Attribute: Friendly capitalized title for the attribute. This is used as the column header for the attribute.
    • zcopyright

      Adds the standard JavaScript copyright header. By default it copyrights to Zenoss, Inc. So as you might imagine, it's more useful for Zenoss employees.

Installing

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.

With Git

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

Without Git

Download the latest source from GitHub and copy the whole directory into the Packages directory.

The "Packages" packages directory is located at:

  • OS X:

    ~/Library/Application Support/Sublime Text 2/Packages/
    
  • Linux:

    ~/.Sublime Text 2/Packages/
    
  • Windows:

    %APPDATA%/Sublime Text 2/Packages/