Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[RESOLU] Recherche des fans de python !

Featured Replies

Posté(e)

lu les inpactiens!

Je suis pas du (mais alors pas du tout ) fan de python !

Pourtant , là , ca m'aurait bien servit !

Voila , je suis entrain d'installer GMailFS , et lors du montage

j'obtient l'erreur :

Traceback (most recent call last):
 File "/usr/local/bin/gmailfs.py", line 1093, in ?
   server.main()
 File "/usr/lib/python2.4/site-packages/fuse.py", line 99, in main
   apply(main, (), d)
TypeError: 'mountpoint' is an invalid keyword argument for this function

Voila donc le code qui pose probleme :

    #@-node:__init__
   #@+node:main
   def main(self):

       d = {"mountpoint": self.mountpoint}
       d["multithreaded"] = self.multithreaded
       if hasattr( self, "debug"):
               d["lopts"] = "debug";

       d["kopts"] = "allow_other,kernel_cache";

       for a in self._attrs:
               if hasattr(self,a):
                       d[a] = ErrnoWrapper(getattr(self, a))
       apply(main, (), d)
   #@-node:main
   #@-others

J'avoue que c'est INCOMPREHENSIBLE !!!

surtout la ligne d = {"mountpoint": self.mountpoint} qui m'interresse !

Si vous voyez, chapeau !

Precision , GMailFS à été fait pour python 2.3 et j'ai python 2.4!

Modifié par ceric35

Posté(e)

j'ai jamais fait de python de ma vie, mais je dirais d["mountpoint"]=self.mountpoint;

completement par analogie avec ce qui suit... :mdr2: (au fait, ça irait pas plutôt dans programmation, ça? )

:mdr:

Posté(e)
  • Auteur

non , si je fait le remplacement , j'ai

NameError: global name 'd' is not defined

Pour, la partie , ben je frequente que la partie "Linux, Unix, Solaris et Cie"

le probleme principale est en fait , "installation de GmailFS"

C'est a dire , montage d'un dossier distant

correspondant a un compte gmail !

Posté(e)

je m'en suis douté peu après avoir posté, si la variable n'est pas instanciée... :roll:

enfin ça ne coûtait rien d'essayer :D

désolé :craint:

Modifié par lorinc

Posté(e)
  • Auteur

Ce code est bon en fait !

L'appel devait merder !

Quoi qu'il en soit j'ai changer la version de fuse necessaire a GMailFS

et appliquer des patch fait par debian (pas mal pour quelqu'un qui a une mandrake)

Voila ca marche !

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.