Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

Stuff
Tuesday, September 4th, 2007 at 6:58:15pm UTC 

  1. #/usr/bin/ev python
  2.  
  3. from AppInstall.activation import ActivationStyle
  4. from AppInstall.AppInstall import AppInstall as App
  5.  
  6. class FakeOptions(object):
  7.     def __init__(self):
  8.         self.datadir = "data"
  9.         self.desktopdir = "test/data"
  10.         self.cachedir = "test/data/cache"
  11.         self.transient_for = None
  12.         self.addon_cd = None
  13.         self.mime_type = None
  14.         self.test_mode = True
  15.  
  16. class PkgInstallActivationStyle(ActivationStyle):
  17.     def __init__(self):
  18.         self.selectFilter = None
  19.         self.menuFilter = None
  20.         self.isInstallerOnly = True
  21.     def isSpecific(self): return True
  22.     def modifyUserInterface(self, app):
  23.         app.scrolledwindow_left.hide()
  24.         #app.window_main.hide()
  25.  
  26. class PkgInstallApp(App):
  27.     def menu(self):
  28.         pass
  29.  
  30. if __name__ == '__main__':
  31.     style = PkgInstallActivationStyle()
  32.     #style = ActivationStyle()
  33.     style.preRun()
  34.     options = FakeOptions()
  35.     app = PkgInstallApp(options, style)
  36.     # chiama la funzione giusta
  37.     #app.applyChanges(to_add, to_rm)
  38.     app.run()

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right worth-right