skeinforge_application.skeinforge_utilities.skeinforge_profile ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_utilities/skeinforge_profile.py

Profile is a script to set the craft types setting for the skeinforge chain.

Profile presents the user with a choice of the craft types in the profile_plugins folder. The chosen craft type is used to determine the craft type profile for the skeinforge chain. The default craft type is extrusion.

The setting is the selection. If you hit 'Save and Close' the selection will be saved, if you hit 'Cancel' the selection will not be saved.

To change the profile setting, in a shell in the profile folder type:
> python profile.py

 
Modules
       
__init__
fabmetheus_utilities.archive
fabmetheus_utilities.euclidean
fabmetheus_utilities.gcodec
os
fabmetheus_utilities.settings
shutil

 
Classes
       
fabmetheus_utilities.settings.StringSetting
ProfileListboxSetting
AddProfile
DeleteProfile
DeleteProfileDialog
ProfileList
ProfilePluginRadioButtonsSaveListener
ProfileRepository
ProfileSelectionMenuRadio
ProfileTypeMenuRadio

 
class AddProfile
    A class to add a profile.
 
  Methods defined here:
addSelection(self)
Add the selection of a listbox setting.
addSelectionWithEvent(self, event)
Add the selection of a listbox setting, given an event.
addToDialog(self, gridPosition)
Add this to the dialog.
getFromProfileListboxSettingRepository(self, profileListboxSetting, repository)
Initialize.

 
class DeleteProfile(AddProfile)
    A class to delete the selection of a listbox profile.
 
  Methods defined here:
addToDialog(self, gridPosition)
Add this to the dialog.
deleteSelection(self)
Delete the selection of a listbox setting.

Methods inherited from AddProfile:
addSelection(self)
Add the selection of a listbox setting.
addSelectionWithEvent(self, event)
Add the selection of a listbox setting, given an event.
getFromProfileListboxSettingRepository(self, profileListboxSetting, repository)
Initialize.

 
class DeleteProfileDialog
    A dialog to delete a profile.
 
  Methods defined here:
__init__(self, profileListboxSetting, root)
Display a delete dialog.
delete(self)
Delete the selection of a listbox setting.
no(self)
The dialog was closed.

 
class ProfileList
    A class to list the profiles.
 
  Methods defined here:
getFromName(self, name, repository)
Initialize.
setValueToFolders(self)
Set the value to the folders in the profiles directories.

 
class ProfileListboxSetting(fabmetheus_utilities.settings.StringSetting)
    A class to handle the profile listbox.
 
  Methods defined here:
addToDialog(self, gridPosition)
Add this to the dialog.
buttonReleaseOne(self, event)
Button one released.
focusIn(self, event)
The root has gained focus.
getFromListSetting(self, listSetting, name, repository, value)
Initialize.
getSelectedFolder(self)
Get the selected folder.
setStateToValue(self)
Set the listbox items to the list setting.
setToDisplay(self)
Set the selection value to the listbox selection.
setValueToIndex(self, index)
Set the selection value to the index.
setValueToString(self, valueString)
Set the value to the value string.

Methods inherited from fabmetheus_utilities.settings.StringSetting:
__init__(self)
Set the update function to none.
__repr__(self)
Get the string representation of this StringSetting.
addToMenu(self, repositoryMenu)
Do nothing because this should only be added to a frameable repository menu.
addToMenuFrameable(self, repositoryMenu)
Add this to the frameable repository menu.
addToWindow(self)
Add this to the repository frame list.
bindEntry(self)
Bind the entry to the update function.
createEntry(self, root)
Create the entry.
getFromValue(self, name, repository, value)
Initialize.
getFromValueOnly(self, name, repository, value)
Initialize.
getFromValueOnlyAddToRepository(self, name, repository, value)
Initialize.
removeFromWindow(self)
Remove this from the repository frame list.
setUpdateFunction(self, updateFunction)
Set the update function.
setValueToSplitLine(self, lineIndex, lines, splitLine)
Set the value to the second word of a split line.
updateSaveListeners(self)
Update save listeners if any.
writeToRepositoryWriter(self, repositoryWriter)
Write tab separated name and value to the repository writer.

 
class ProfilePluginRadioButtonsSaveListener
    A class to update the profile radio buttons.
 
  Methods defined here:
addToDialog(self, gridPosition)
Add this to the dialog.
getFromRadioPlugins(self, radioPlugins, repository)
Initialize.
save(self)
Profile has been saved and profile radio plugins should be updated.

 
class ProfileRepository
    A class to handle the profile entities.
 
  Methods defined here:
__init__(self)
Set the default entities, execute title & repository fileName.
updateRelay(self)
Update the plugin frame then the ProfileSaveListeners.

 
class ProfileSelectionMenuRadio
    A class to display a profile selection menu radio button.
 
  Methods defined here:
addToDialog(self, gridPosition)
Add this to the dialog.
clickRadio(self)
Workaround for Tkinter bug, invoke and set the value when clicked.
getFromMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.
setToMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.

 
class ProfileTypeMenuRadio(ProfileSelectionMenuRadio)
    A class to display a profile type menu radio button.
 
  Methods defined here:
clickRadio(self)
Workaround for Tkinter bug, invoke and set the value when clicked.
getFromMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.

Methods inherited from ProfileSelectionMenuRadio:
addToDialog(self, gridPosition)
Add this to the dialog.
setToMenuButtonDisplay(self, menuButtonDisplay, name, repository, value)
Initialize.

 
Functions
       
addListsSetCraftProfile(craftSequence, defaultProfile, repository, fileNameHelp)
Set the craft profile repository.
addListsToCraftTypeRepository(fileNameHelp, repository)
Add the value to the lists.
cancelAll()
Cancel all the dialogs.
getCraftTypeName(subName='')
Get the craft type from the profile.
getCraftTypePluginModule(craftTypeName='')
Get the craft type plugin module.
getNewRepository()
Get new repository.
getPluginFileNames()
Get analyze plugin fileNames.
getPluginsDirectoryPath()
Get the plugins directory path.
getProfileDirectory()
Get the profile directory.
getProfileName(craftTypeName)
Get the profile name from the craft type name.
getReadProfileRepository()
Get the read profile repository.
updateProfileSaveListeners()
Call the save function of all the update profile save listeners.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

 
Author
        Enrique Perez (perez_enrique@yahoo.com)