ppetrid / yawd-elfinder Goto Github PK
View Code? Open in Web Editor NEWAn elfinder-based file management solution for Django
License: Other
An elfinder-based file management solution for Django
License: Other
Try to zip and unzip a directory (not empty).
I will create a zipped without the file in the directory. [1st problem]
When trying to unzip this smaller zip file, an error is produced too [2nd problem- cant unzip zip with no file]
The user may choose to encrypt filepaths for security reasons. This must be switched on and off through optionsets
Not sure if you've been made aware, but PIL has become deprecated in favour of Pillow (a PIL fork/replacement).
The module should be compatible with PIL, so only the requirements.txt would need an update.
'acceptedName' : r'.odt dont work for me
after setting this i am able to select even picture
A separate package should include all yawd-elfinder tests
Hi, elfinder is dead, it is not posible live agains?? or exits other branch is updated?
thank!!
mimetype filters should be taken into consideration when extracting an archive file
Hello,
I've checked it and it looks perfect. I will definitely try to use it. I have a few more tips for improvements:
If you want, I can adapt my current TinyMCE-connector code to be used in your new project.
Martin
I try to use elfinder in inline. In my inline model I have only elfinder field. inline extra=0
When I am clicking "Set" it only redirects me at model list page and I see saved model.
Also if inline extra=0 set to 1 all will work fine but on only at first inline. At next dynamically added on page inlines it wouldn't work(
Also there is no label of elfinder field in tabular inline
for example, I need a file elfinder.ru.js
settings.py
...
ELFINDER_LANGUAGES = ["ru"]
widget.py
...
self.current_locale = to_locale(get_language())
...
if not self.current_locale.startswith('en') and self.current_locale in ls.ELFINDER_LANGUAGES:
To take advantage of the new caching setting, calls to _scandir() must be replaced with _get_cached_dir() in ElfinderVolumeLocalFileSystem driver
@method_decorator(staff_member_required) doesn't allow dispatch queries for non staff-members
Thumbnails are affected by the modification datetime of an image. Therefore, when a file is touched, the admin widget will not display the correct image until the user clicks the 'update' button to open an image.
This is why when checking out a fresh copy of yawd-elfinder the demo project will not show the image thumbnails
Being able to enable/disable/lock/hide files using signals is more django-ey than the current method.
Now settings contain variables, that needed import.
# from os.path import join
# from elfinder.utils.accesscontrol import fs_standard_access
# from elfinder.volumes.filesystem import ElfinderVolumeLocalFileSystem
And if i`m want change them in settings.py you need import them.
And im get error if use import:
ImproperlyConfigured: The SECRET_KEY setting must not be empty.`
this setting should not only allow integers. '128m' should mean 128 megabytes, just like the 'uploadMaxSize' option. Additionally, this setting should be renamed to 'archiveMaxSize' for naming
consistency.
Move a file into an other folder and then back into the first without restarting the django server:
The movement fails.
Solution: Clear cached stat not only of the source-folder, but also of the source file:
add
self._clear_cached_stat(src)
into
elfinder/volumes/base.py after line 1407
Hello!
sorl thumbnail doesn't work with yawd-elfinder. Is there any way to get around the issue?
Is there any hope of using yawd-elfinder with a flask backend instead of django backend? Any pointers on how to get started with this?
Downloading/unpacking Django>=1.4,<1.5 (from yawd-elfinder)
Downloading Django-1.4.5.tar.gz (7.7MB): 7.7MB downloaded
Running setup.py egg_info for package Django
Found existing installation: Django 1.5.1
Uninstalling Django:
Hi, is posible install and configure elfinder with django 1.6.3? when a try install with pip this uninstall version 1.6.3 and install version 1.4.11 django? is posible install and used
Cheers
rm.wav url must point to the appropriate file under STATIC_FILES url
You get a very obscure error message "MagicException: no magic files loaded" when running the example project out of the box under OSX Mavericks. According to the posted issue, it happens in Linux distros also:
ahupp/python-magic#44
Recommend you change python-magic to use 0.4.6.
Internal Server Error: /elfinder/yawd-connector/default/default/
Traceback (most recent call last):
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/contrib/admin/views/decorators.py", line 17, in _checklogin
return view_func(request, *args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/decorators/csrf.py", line 57, in wrapped_view
return view_func(*args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/utils/decorators.py", line 25, in bound_func
return func(self, *args2, **kwargs2)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 101, in dispatch
return super(ElfinderConnectorView, self).dispatch(*args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/Django-1.6.2-py2.7.egg/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 108, in get
return self.output(self.get_command(request.GET), request.GET)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/views.py", line 79, in output
return self.render_to_response(self.elfinder.execute(cmd, **args))
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/connector.py", line 153, in execute
result = getattr(self, '_%s' % cmd)(**kwargs)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/connector.py", line 239, in _open
files += self._volumes[id_].tree(exclude=target)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 511, in tree
return dirs + self._get_tree(path, (deep - 1) if deep > 0 else (self._options['treeDeep'] - 1), excluded)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1312, in _get_tree
stat = self.stat(p)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1149, in stat
stat = self._stat(path)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/filesystem.py", line 144, in _stat
stat['mime'] = 'directory' if dir_ else self.mimetype(path)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/base.py", line 1211, in mimetype
mime = self._mimetype(path)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/yawd_elfinder-0.91.00_rc1-py2.7.egg/elfinder/volumes/filesystem.py", line 179, in _mimetype
return magic.Magic(mime=True).from_file(path.encode('utf-8')) #unicode filename support
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/python_magic-0.4.3-py2.7.egg/magic.py", line 51, in __init__
magic_load(self.cookie, magic_file)
File "/Users/bschott/.virtualenvs/yawd-elfinder/lib/python2.7/site-packages/python_magic-0.4.3-py2.7.egg/magic.py", line 138, in errorcheck
raise MagicException(err)
MagicException: no magic files loaded
custom optionsets are defined using an 'ELFINDER_CONNECTOR_OPTS' setting instead of the intended and documented 'ELFINDER_CONNECTOR_OPTION_SETS'
Elfinder client options (https://github.com/Studio-42/elFinder/wiki/Client-configuration-options) should be able to be overriden through the ElfinderField model field.
This should allow setting a django storage for retrieving and storing yawd-elfinder files.
This is the only command not yet supported
ON view, exception in json.parse https://github.com/yawd/yawd-elfinder/blob/master/elfinder/views.py#L50
Exception Type: UnicodeDecodeError at /elfinder/yawd-connector/default/default/
Exception Value: 'utf8' codec can't decode byte 0xcf in position 0: invalid continuation byte
On upload, error at volume https://github.com/yawd/yawd-elfinder/blob/master/elfinder/volumes/base.py#L797 , and except on this https://github.com/yawd/yawd-elfinder/blob/master/elfinder/connector.py#L544
UnicodeDecodeError 'ascii' codec can't encode characters in position 4-13: ordinal not in range(128)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.