Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian García <cristian99garcia@gmail.com>2013-04-20 16:36:51 (GMT)
committer Cristian García <cristian99garcia@gmail.com>2013-04-20 16:36:51 (GMT)
commitc06455f7c5ce05f970d9ec92893517ee2c415139 (patch)
tree96bbdd7eff06cc2bbfe7fbec4941816b67a3f6a8
parentb585ea6aa2ff41550385172c2ea3d3ed8cfb8bc3 (diff)
Corrigiendo error en la linea 155 del archivo Widgets.py
-rw-r--r--Archivos.py20
-rw-r--r--Archivos.pycbin17339 -> 16972 bytes
-rw-r--r--Widgets.py4
-rw-r--r--Widgets.pycbin13576 -> 14078 bytes
4 files changed, 6 insertions, 18 deletions
diff --git a/Archivos.py b/Archivos.py
index 14af21a..7253315 100644
--- a/Archivos.py
+++ b/Archivos.py
@@ -19,13 +19,12 @@ PENDRIVE = os.path.join(DIRECCION, 'pendrive.svg')
DIR_SIN_PER = os.path.join(DIRECCION, 'directory_dennied.svg')
FILE_SIN_PER = os.path.join(DIRECCION, 'file_dennied.svg')
+
images = ('svg', 'png', 'gif', 'jpg', 'jpeg', 'xmp', 'ico')
videos = ('flv', '.mp4', '.mpa', '.mpe', '.mpeg', '.mpg')
-local = os.path.expanduser('~/.local')
-share = os.path.join(local, 'share')
-trash = os.path.join(share, 'Trash')
-PAPELERA = os.path.join(trash, 'files')
+
+PAPELERA = os.path.expanduser('~/.local/share/Trash/files')
def intentar_abrir(direccion):
@@ -42,18 +41,7 @@ def intentar_abrir(direccion):
def crear_papelera():
"""Crea los directorios de la papelera"""
- def crear(direccion):
- if not os.path.exists(direccion):
- os.mkdir(direccion)
-
- try:
- crear(local)
- crear(share)
- crear(trash)
- crear(PAPELERA)
-
- except:
- pass
+ os.makedirs(PAPELERA)
def get_tamanio(direccion):
diff --git a/Archivos.pyc b/Archivos.pyc
index e109f52..df31c2a 100644
--- a/Archivos.pyc
+++ b/Archivos.pyc
Binary files differ
diff --git a/Widgets.py b/Widgets.py
index 9b93e11..5c705ce 100644
--- a/Widgets.py
+++ b/Widgets.py
@@ -151,9 +151,9 @@ class Area(Gtk.IconView):
'cambio-de-direccion': (GObject.SIGNAL_RUN_FIRST,
GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
'cambio-de-mensaje': (GObject.SIGNAL_RUN_FIRST,
- GObject.TYPE_NONE, (GObject.TYPE_STRING,))
+ GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
'copiar': (GObject.SIGNAL_RUN_FIRST,
- GObject.TYPE_NONE, (GObject.TYPE_STRING,))
+ GObject.TYPE_NONE, (GObject.TYPE_STRING,)),
'propiedades': (GObject.SIGNAL_RUN_FIRST,
GObject.TYPE_NONE, (GObject.TYPE_STRING,))}
diff --git a/Widgets.pyc b/Widgets.pyc
index 905bba1..fe649c6 100644
--- a/Widgets.pyc
+++ b/Widgets.pyc
Binary files differ