Plugin_Project_Pylons.PluginProjectPylons

Module implementing the Pylons project plugin.

Global Attributes

author
autoactivate
className
deactivateable
error
longDescription
name
needsRestart
packageName
pylonsPluginObject
shortDescription
version

Classes

ProjectPylonsPlugin Class implementing the Pylons project plugin.

Functions

apiFiles Module function to return the API files made available by this plugin.
createPylonsPage Module function to create the Pylons configuration page.
getConfigData Module function returning data as required by the configuration dialog.
prepareUninstall Module function to prepare for an uninstallation.


ProjectPylonsPlugin

Class implementing the Pylons project plugin.

Derived from

QObject

Class Attributes

lexerAssociations

Methods

ProjectPylonsPlugin Constructor
__checkVersions Private function to check that the eric4 version is ok.
__initialize Private slot to (re)initialize the plugin.
__loadTranslator Private method to load the translation file.
__projectClosed Private slot to handle the projectClosed signal.
__projectOpened Private slot to handle the projectOpened signal.
activate Public method to activate this plugin.
binaryTranslationsCallback Public method to determine the filename of a compiled translation file given the translation source file.
deactivate Public method to deactivate this plugin.
fileTypesCallback Public method get the filetype associations of the TurboGears project type.
getPreferences Public method to retrieve the various refactoring settings.
lexerAssociationCallback Public method to get the lexer association of the Pylons project type for a file.
prepareUninstall Public method to prepare for an uninstallation.
setPreferences Public method to store the various refactoring settings.

ProjectPylonsPlugin (Constructor)

ProjectPylonsPlugin(ui)

Constructor

ui
reference to the user interface object (UI.UserInterface)

ProjectPylonsPlugin.__checkVersions

__checkVersions()

Private function to check that the eric4 version is ok.

Returns:
flag indicating version is ok (boolean)

ProjectPylonsPlugin.__initialize

__initialize()

Private slot to (re)initialize the plugin.

ProjectPylonsPlugin.__loadTranslator

__loadTranslator()

Private method to load the translation file.

ProjectPylonsPlugin.__projectClosed

__projectClosed()

Private slot to handle the projectClosed signal.

ProjectPylonsPlugin.__projectOpened

__projectOpened()

Private slot to handle the projectOpened signal.

ProjectPylonsPlugin.activate

activate()

Public method to activate this plugin.

Returns:
tuple of None and activation status (boolean)

ProjectPylonsPlugin.binaryTranslationsCallback

binaryTranslationsCallback(filename)

Public method to determine the filename of a compiled translation file given the translation source file.

filename
name of the translation source file (string or QString)
Returns:
name of the binary translation file (string)

ProjectPylonsPlugin.deactivate

deactivate()

Public method to deactivate this plugin.

ProjectPylonsPlugin.fileTypesCallback

fileTypesCallback()

Public method get the filetype associations of the TurboGears project type.

Returns:
dictionary with file type associations

ProjectPylonsPlugin.getPreferences

getPreferences(key)

Public method to retrieve the various refactoring settings.

key
the key of the value to get
prefClass
preferences class used as the storage area
Returns:
the requested refactoring setting

ProjectPylonsPlugin.lexerAssociationCallback

lexerAssociationCallback(filename)

Public method to get the lexer association of the Pylons project type for a file.

filename
name of the file (string or QString)
Returns:
name of the lexer (string) (Pygments lexers are prefixed with 'Pygments|')

ProjectPylonsPlugin.prepareUninstall

prepareUninstall()

Public method to prepare for an uninstallation.

ProjectPylonsPlugin.setPreferences

setPreferences(key, value)

Public method to store the various refactoring settings.

key
the key of the setting to be set (string)
value
the value to be set
prefClass
preferences class used as the storage area
Up


apiFiles

apiFiles(language)

Module function to return the API files made available by this plugin.

Returns:
list of API filenames (list of string)
Up


createPylonsPage

createPylonsPage(configDlg)

Module function to create the Pylons configuration page.

Returns:
reference to the configuration page
Up


getConfigData

getConfigData()

Module function returning data as required by the configuration dialog.

Returns:
dictionary containing the relevant data
Up


prepareUninstall

prepareUninstall()

Module function to prepare for an uninstallation.

Up