elfinder connector for pyramid framework
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 41 commits ahead, 1 commit behind aleksandr-rakov:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
pyramid_elfinder
.gitignore
.travis.yml
MANIFEST.in
Makefile
README.rst
requirements-test.txt
requirements.txt
setup.py

README.rst

Build Status Coveralls Stories in Ready

Forked from elfinder-pyramid writed by Aleksandr Rakov

connector.py

This is conector for elfinder file manager, written for pyramid framework. Based on original https://github.com/Studio-42/elfinder-python/blob/master/connector.py and https://github.com/Studio-42/elfinder-python/blob/master/elFinder.py

Now you can find connector there http://github.com/ITCase/elfinder

How to try it:

In your virtualenv run:

$ git clone https://github.com/ITCase/pyramid_elfinder.git
$ cd pyramid_elfinder/example
$ python pyramid_elfinder_example.py

And open http://127.0.0.1:6543/ in your browser. Done!

Install to app:

add to config:

config.include('pyramid_elfinder')

goto http://localhost:6543/elfinder/

TinyMCE:

<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
{% include 'elfinder/tinymce.jinja2' %}
<script>
  tinymce.init({
    selector:'textarea.tinymce',
    browser_spellcheck : true,
    content_css: ["/static_extra/css/tu.css", "/static_extra/css/mytiny.css"],
    plugins: "image link code contextmenu fullpage fullscreen "+
            "hr insertdatetime lists media paste preview "+
            "print table textcolor "+
            "visualchars wordcount",
    toolbar1: "fullpage preview print forecolor backcolor inserttable",
    toolbar2: "styleselect formatselect fontselect fontsizeselect cut copy paste  removeformat subscript superscript",
    toolbar3: "undo redo | bold italic underline strikethrough | bullist numlist outdent indent blockquote | alignleft aligncenter alignright alignjustify |",
    file_browser_callback: elFinderBrowser,
  });
</script>
<textarea class="tinymce"></textarea>

Notes:

  • This connector support only v.1 protocol
  • requires PIL for thumbnail generator