modifs apres la formation a Nantes
This commit is contained in:
0
python/formation/snippets/cli.py
Executable file → Normal file
0
python/formation/snippets/cli.py
Executable file → Normal file
@ -1,10 +1,13 @@
|
||||
class NotFoundError(Exception):
|
||||
pass
|
||||
|
||||
class MaClasse:
|
||||
pass
|
||||
|
||||
class MaClasseDeux:
|
||||
pass
|
||||
|
||||
binding = dict('un'=MaClasse, 'deux'=MaClasseDeux)
|
||||
binding = dict(un=MaClasse, deux=MaClasseDeux)
|
||||
|
||||
def ma_factory(key):
|
||||
if key in binding:
|
||||
|
@ -1,6 +1,6 @@
|
||||
class Wrap(object):
|
||||
def __init__(self, name, wrap):
|
||||
self.slots = ('_name', '_wrap')
|
||||
self.slots = ('_name', '_w')
|
||||
self._name = name or "wrapped_element"
|
||||
self._w = wrap
|
||||
|
||||
|
Reference in New Issue
Block a user