Changeset 11

Show
Ignore:
Timestamp:
10/17/08 16:13:45 (3 years ago)
Author:
lasarux
Message:
  • artwork/mainwindow.png:
  • artwork/simplepanels.svg:
  • config.py:
  • main.py:
  • misc/pexpect/pxssh.py:
  • plugins/info/info/init.py:
  • plugins/info/info/info.py: New screenshots. Hack in pxssh to boost it (DANGER). Username from login window.
Location:
trunk
Files:
1 removed
7 modified

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r10 r11  
     12008-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 
    1142008-10-17  Pedro Gracia  <pedro@flumotion.com> 
    215 
  • trunk/artwork/simplepanels.svg

    r10 r11  
    172172     inkscape:pageopacity="0.0" 
    173173     inkscape:pageshadow="2" 
    174      inkscape:zoom="0.65333333" 
    175      inkscape:cx="418.86197" 
    176      inkscape:cy="150" 
     174     inkscape:zoom="1.8975299" 
     175     inkscape:cx="153.06122" 
     176     inkscape:cy="156.88776" 
    177177     inkscape:document-units="px" 
    178178     inkscape:current-layer="layer1" 
     
    308308    </g> 
    309309    <g 
    310        id="g3509" 
    311        transform="translate(-5.5102019e-8,3.0612244)"> 
     310       id="g3708"> 
    312311      <path 
    313312         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,120.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" 
    315314         id="path12730" 
    316315         sodipodi:nodetypes="cc" /> 
    317316      <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)" 
    319318         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" 
    320319         sodipodi:ry="86.066635" 
     
    328327         sodipodi:nodetypes="cc" 
    329328         id="path8351" 
    330          d="M 106.85681,137.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" 
    331330         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" /> 
    332331      <path 
    333332         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,153.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" 
    335334         id="path9226" 
    336335         sodipodi:nodetypes="cc" /> 
    337336      <path 
    338337         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,121.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" 
    340339         id="path9230" 
    341340         sodipodi:nodetypes="cc" /> 
    342341      <path 
    343          transform="matrix(-5.653888e-3,0.32258,-0.32258,-5.653888e-3,267.75286,-20.52875)" 
     342         transform="matrix(-5.653888e-3,0.32258,-0.32258,-5.653888e-3,275.75286,-17.467526)" 
    344343         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" 
    345344         sodipodi:ry="86.066635" 
     
    359358         sodipodi:ry="86.066635" 
    360359         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)" 
    364363         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" 
    365364         sodipodi:ry="25.07902" 
     
    373372         sodipodi:nodetypes="cc" 
    374373         id="path12728" 
    375          d="M 175.17973,121.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" 
    376375         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" /> 
    377376      <path 
    378          transform="matrix(0.483631,-0.214686,0.195766,0.533318,-126.27414,30.70756)" 
     377         transform="matrix(0.483631,-0.214686,0.195766,0.533318,-126.27414,33.768784)" 
    379378         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" 
    380379         sodipodi:ry="43.51878" 
     
    403402    <g 
    404403       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"> 
    406408      <path 
    407409         sodipodi:nodetypes="cc" 
  • trunk/config.py

    r8 r11  
    88PLUGINS = CONFIG["plugins"] 
    99COMMANDS = CONFIG["commands"] 
    10 USER = "lasarux" #TODO: add login window 
     10#USER = "lasarux" #TODO: add login window 
    1111REMOTE = "TERM=unix LC_ALL=C" 
    1212 
  • trunk/main.py

    r9 r11  
    104104        return self.settings[key] 
    105105 
     106    def set_username(self, username): 
     107        self.username = username 
     108 
     109    def on_quit_activate(self, object): 
     110        gtk.main_quit() 
     111 
    106112    def on_main_wnd_destroy(self, window): 
    107113        gtk.main_quit() 
    108114 
     115 
     116class 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         
    109128# plugins base from http://lucumr.pocoo.org/blogarchive/setuptools-plugins 
    110129def init_plugins(): 
     
    139158 
    140159 
    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  
    151160def main(): 
    152161    """Main loop""" 
  • trunk/misc/pexpect/pxssh.py

    r8 r11  
    132132        # If latency is worse than these values then this will fail. 
    133133 
     134 
     135        return True # TODO: accelerate this test 
     136         
    134137        self.read_nonblocking(size=10000,timeout=1) # GAS: Clear out the cache before getting the prompt 
    135138        time.sleep(0.1) 
     
    147150        ld = self.levenshtein_distance(a,b) 
    148151        len_a = len(a) 
     152 
    149153        if len_a == 0: 
    150154            return False 
     
    241245            self.close() 
    242246            raise ExceptionPxssh ('unexpected login response') 
     247             
    243248        if not self.synch_original_prompt(): 
    244249            self.close() 
    245250            raise ExceptionPxssh ('could not synchronize with original prompt') 
     251 
    246252        # We appear to be in. 
    247253        # set shell prompt to something unique. 
  • trunk/plugins/info/info/__init__.py

    r8 r11  
    3232        rcommand = self.main.config.get_command(command, opsys) 
    3333        s = pxssh.pxssh() 
    34         if s.login(ip, self.main.config.USER): 
     34        if s.login(ip, self.main.username): 
    3535            s.sendline(rcommand) 
    3636            s.prompt()