Changeset 11
- Timestamp:
- 10/17/08 16:13:45 (3 years ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 7 modified
-
ChangeLog (modified) (1 diff)
-
artwork/mainwindow.png (modified) (previous)
-
artwork/simplepanels.svg (modified) (6 diffs)
-
config.py (modified) (1 diff)
-
main.py (modified) (2 diffs)
-
misc/pexpect/pxssh.py (modified) (3 diffs)
-
plugins/info/info/__init__.py (modified) (1 diff)
-
plugins/info/info/info.py (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r10 r11 1 2008-10-17 Pedro Gracia <pedro@flumotion.com> 2 3 * artwork/mainwindow.png: 4 * artwork/simplepanels.svg: 5 * config.py: 6 * main.py: 7 * misc/pexpect/pxssh.py: 8 * plugins/info/info/__init__.py: 9 * plugins/info/info/info.py: 10 New screenshots. 11 Hack in pxssh to boost it (DANGER). 12 Username from login window. 13 1 14 2008-10-17 Pedro Gracia <pedro@flumotion.com> 2 15 -
trunk/artwork/simplepanels.svg
r10 r11 172 172 inkscape:pageopacity="0.0" 173 173 inkscape:pageshadow="2" 174 inkscape:zoom=" 0.65333333"175 inkscape:cx=" 418.86197"176 inkscape:cy="15 0"174 inkscape:zoom="1.8975299" 175 inkscape:cx="153.06122" 176 inkscape:cy="156.88776" 177 177 inkscape:document-units="px" 178 178 inkscape:current-layer="layer1" … … 308 308 </g> 309 309 <g 310 id="g3509" 311 transform="translate(-5.5102019e-8,3.0612244)"> 310 id="g3708"> 312 311 <path 313 312 style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:6.95565557;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 314 d="M 168.33546,12 0.99712 C 174.23391,99.61299 200.00199,69.4057 205.58375,88.94948"313 d="M 168.33546,124.05834 C 174.23391,102.67421 200.00199,72.466924 205.58375,92.010704" 315 314 id="path12730" 316 315 sodipodi:nodetypes="cc" /> 317 316 <path 318 transform="matrix(0.486114,-0.132393,0.132393,0.486114,-77.475497, 9.9584)"317 transform="matrix(0.486114,-0.132393,0.132393,0.486114,-77.475497,13.019624)" 319 318 d="M 505.00024,405.4375 A 131.66486,86.066635 0 1 1 241.67053,405.4375 A 131.66486,86.066635 0 1 1 505.00024,405.4375 z" 320 319 sodipodi:ry="86.066635" … … 328 327 sodipodi:nodetypes="cc" 329 328 id="path8351" 330 d="M 106.85681,1 37.8059 C 147.25155,143.35779 156.63232,171.88299 149.35743,202.70552"329 d="M 106.85681,140.86712 C 147.25155,146.41901 156.63232,174.94421 149.35743,205.76674" 331 330 style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:12.09169102;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 332 331 <path 333 332 style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:12.09169102;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 334 d="M 97.093143,15 3.88722 C 124.85257,155.99311 134.80767,174.18032 128.68145,199.25952"333 d="M 97.093143,156.94844 C 124.85257,159.05433 134.80767,177.24154 128.68145,202.32074" 335 334 id="path9226" 336 335 sodipodi:nodetypes="cc" /> 337 336 <path 338 337 style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:12.09169102;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" 339 d="M 132.12746,12 1.15025 C 157.58954,137.04013 178.45697,159.82199 172.33075,198.11085"338 d="M 132.12746,124.21147 C 157.58954,140.10135 178.45697,162.88321 172.33075,201.17207" 340 339 id="path9230" 341 340 sodipodi:nodetypes="cc" /> 342 341 <path 343 transform="matrix(-5.653888e-3,0.32258,-0.32258,-5.653888e-3,2 67.75286,-20.52875)"342 transform="matrix(-5.653888e-3,0.32258,-0.32258,-5.653888e-3,275.75286,-17.467526)" 344 343 d="M 505.00024,405.4375 A 131.66486,86.066635 0 1 1 241.67053,405.4375 A 131.66486,86.066635 0 1 1 505.00024,405.4375 z" 345 344 sodipodi:ry="86.066635" … … 359 358 sodipodi:ry="86.066635" 360 359 d="M 505.00024,405.4375 A 131.66486,86.066635 0 1 1 241.67053,405.4375 A 131.66486,86.066635 0 1 1 505.00024,405.4375 z" 361 transform="matrix(0.251189,0.202468,-0.202468,0.251189,113.97306,- 71.54637)" />362 <path 363 transform="matrix(0.50382,0,0,0.50382,-44.192737,- 50.66764)"360 transform="matrix(0.251189,0.202468,-0.202468,0.251189,113.97306,-68.485146)" /> 361 <path 362 transform="matrix(0.50382,0,0,0.50382,-44.192737,-47.606416)" 364 363 d="M 525.51943,355.84943 A 33.058708,25.07902 0 1 1 459.40202,355.84943 A 33.058708,25.07902 0 1 1 525.51943,355.84943 z" 365 364 sodipodi:ry="25.07902" … … 373 372 sodipodi:nodetypes="cc" 374 373 id="path12728" 375 d="M 175.17973,12 1.93013 C 193.00498,100.546 220.12452,84.33381 236.99275,103.87759"374 d="M 175.17973,124.99135 C 193.00498,103.60722 220.12452,87.395034 236.99275,106.93881" 376 375 style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:8.06112766;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> 377 376 <path 378 transform="matrix(0.483631,-0.214686,0.195766,0.533318,-126.27414,3 0.70756)"377 transform="matrix(0.483631,-0.214686,0.195766,0.533318,-126.27414,33.768784)" 379 378 d="M 524.07724,379.20996 A 109.25992,43.51878 0 1 1 305.5574,379.20996 A 109.25992,43.51878 0 1 1 524.07724,379.20996 z" 380 379 sodipodi:ry="43.51878" … … 403 402 <g 404 403 id="g3682" 405 transform="matrix(0.4474632,0,0,0.4474632,-48.789818,175.00915)"> 404 transform="matrix(0.4474632,0,0,0.4474632,-48.789818,175.00915)" 405 inkscape:export-filename="/home/lasarux/friday/simplepanels/artwork/simplepanels_icon.png.png" 406 inkscape:export-xdpi="20.860001" 407 inkscape:export-ydpi="20.860001"> 406 408 <path 407 409 sodipodi:nodetypes="cc" -
trunk/config.py
r8 r11 8 8 PLUGINS = CONFIG["plugins"] 9 9 COMMANDS = CONFIG["commands"] 10 USER = "lasarux" #TODO: add login window10 #USER = "lasarux" #TODO: add login window 11 11 REMOTE = "TERM=unix LC_ALL=C" 12 12 -
trunk/main.py
r9 r11 104 104 return self.settings[key] 105 105 106 def set_username(self, username): 107 self.username = username 108 109 def on_quit_activate(self, object): 110 gtk.main_quit() 111 106 112 def on_main_wnd_destroy(self, window): 107 113 gtk.main_quit() 108 114 115 116 class LoginWnd(SimpleGladeApp): 117 def on_ok_btn_clicked(self, button): 118 username = self.username_entry.get_text() 119 self.main_widget.destroy() 120 main_wnd = MainWnd("%s/main.glade" % config.GLADEDIR, "main_wnd") 121 main_wnd.set_username(username) 122 main_wnd.run() 123 124 def on_login_wnd_destroy(self, window): 125 gtk.main_quit() 126 127 109 128 # plugins base from http://lucumr.pocoo.org/blogarchive/setuptools-plugins 110 129 def init_plugins(): … … 139 158 140 159 141 class LoginWnd(SimpleGladeApp):142 def on_ok_btn_clicked(self, button):143 self.main_widget.destroy()144 main_wdw = MainWnd("%s/main.glade" % config.GLADEDIR, "main_wnd")145 main_wdw.run()146 147 def on_login_wnd_destroy(self, window):148 gtk.main_quit()149 150 151 160 def main(): 152 161 """Main loop""" -
trunk/misc/pexpect/pxssh.py
r8 r11 132 132 # If latency is worse than these values then this will fail. 133 133 134 135 return True # TODO: accelerate this test 136 134 137 self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt 135 138 time.sleep(0.1) … … 147 150 ld = self.levenshtein_distance(a,b) 148 151 len_a = len(a) 152 149 153 if len_a == 0: 150 154 return False … … 241 245 self.close() 242 246 raise ExceptionPxssh ('unexpected login response') 247 243 248 if not self.synch_original_prompt(): 244 249 self.close() 245 250 raise ExceptionPxssh ('could not synchronize with original prompt') 251 246 252 # We appear to be in. 247 253 # set shell prompt to something unique. -
trunk/plugins/info/info/__init__.py
r8 r11 32 32 rcommand = self.main.config.get_command(command, opsys) 33 33 s = pxssh.pxssh() 34 if s.login(ip, self.main. config.USER):34 if s.login(ip, self.main.username): 35 35 s.sendline(rcommand) 36 36 s.prompt()
