Exemple #1
0
  def exe(self):
    CommandLogger('Motes site is opening ..', True)

    pbs.open('http://0.0.0.0:3000', _fg=True)

    from web.motes import motes_web_start
    
    motes_web_start(self.motes_path)
Exemple #2
0
  def exe(self):
    CommandLogger('Sharing `' + self.filename + '`.\n', True)    
   
    c = ContentCommand(self.motes_path, self.filename)
     
    file_content = c.contents if len(c.contents) > 0 else ' '

    #file_unescaped_encoded = urllib.quote(self.encodeURIComponent(file_content))
    file_unescaped_encoded = file_content
    file_base64_encoded = base64.b64encode(file_unescaped_encoded)
    
    share_url = 'http://hashify.me/' + file_base64_encoded

    CommandLogger(share_url)

    pbs.open(share_url)
Exemple #3
0
  def exe(self):
    pbs.open(self.motes.home)

    CommandLogger('All your motes are belong to Finder.', True)