Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.323.677 Times

django-attachments 0.3.1

Company: Martin Mahner
Date Added: October 06, 2013  |  Visits: 426

django-attachments

Report Broken Link
Printer Friendly Version


Product Homepage
Download (41 downloads)



django-attachments is a generic set of template tags for the Django framework to attach any kind of files to models.<br /><br />Installattion:<br /><br />Put attachments to your INSTALLED_APPS in your settings.py within your django project. This app provides a additional permission delete_foreign_attachments which enables that users with it can delete foreign attachments. Normally only users who uploaded the attachment, can delete it.<br /><br />Usage:<br /><br />In contrib.admin:<br /><br />django-attachments provides a inline object to add a list of attachments to any kind of model in your admin app.<br /><br />Simply add AttachmentInlines to the admin options of your model. Example:<br /><br />from django.contrib import admin<br />from attachments.admin import AttachmentInlines<br /><br />class MyEntryOptions(admin.ModelAdmin)<br /> inlines = [AttachmentInlines]<br /><br />In your frontend templates:<br /><br />django-attachments comes with some templatetags to add or delete attachments for your model objects in your frontend.<br /><br />1. ``get_attachments_for [object]``: Fetches the attachments for the given model instance. You can optionally define a variable name in which the attachment list is stored in the template context. The default context variable name is attachments Example:<br /><br /> {% get_attachments_for entry as "attachments_list" %}<br /><br />2. ``attachment_form``: Renders a upload form to add attachments for the given model instance. Example:<br /><br /> {% attachment_form [object] %}<br /><br /> It returns an empty string if the current user is not logged in.<br /><br />3. ``attachment_delete_link``: Renders a link to the delete view for the given attachment. Example:<br /><br /> {% for att in attachment_list %}<br /> {{ att }} {% attachment_delete_link att %}<br /> {% endfor %}<br /><br />This tag automatically checks for permission. It returns only a html link if the give n attachment's creator is the current logged in user or the user has the delete_foreign_attachments permission.<br /><br />md5=fe9397ac913c3c5f20de368fee7dcb32

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Admin Attachment Attachment Delete Link Attachment Form Attachments Context Delete Delete Foreign Attachments Django Attachments 0 3 1 Import Instance Model Object Permission Renders Users Variable
Users rating: 0/10

License: Freeware Size: 61.44 KB
USER REVIEWS
More Reviews or Write Review


DJANGO-ATTACHMENTS RELATED
Modules  -  Admin Bar Removal (completely disable) 3.1+ only 2011.0223.2011
Admin Bar Removal Completely Disable new Admin Bar Frontend and Backend that now appears on the Public Side and Admin Panel of WordPress 3.1+ based blogs, plus Remove Code for minimal memory load. WARNING! Disable admin bar on user profile turn...
10 KB  
Network & Internet  -  OpenAttachmentByExtension 0.3.4
OPENATTACHMENTBYEXTENSION: an extension that allows you to open directly an attachment with a program associated to the file extension, not considering the mimetype indicated in the message. Moreover you can also set a custom directory for...
10.24 KB  
Modules  -  Protect Critical Users 6.x-1.1
This module protects critical users from being deleted in the following ways:- Catches user/*/delete requests to protect users 0 (anonymous), 1 (admin) and current user.- Protects user 1 and current user from being deleted from user...
10 KB  
Modules  -  Admin Bar Removal (completely disable) 2011.0223.2011
Admin Bar Removal Completely Disable and Remove New WordPress 3.1 Admin Bar Frontend and Backend Code that now appears on the Public Side of new WordPress 3.1 based blogs for minimal memory load. WARNING! Native control panel on/off preferences...
10 KB  
Modules  -  Admin Bar ID Menu 0.3
There are times that you need to know the ID number of a page or post in WordPress and it can be more painful than it should be to find that number. This plugin does one simple thing: it displays the ID number of the page, post, category, or tag...
20.48 KB  
Network & Internet  -  HTTPClient 0.3-3
This package provides a complete http client library. It currently implements most of the relevant parts of the HTTP/1.0 and HTTP/1.1 protocols, including the request methods HEAD, GET, POST and PUT, and automatic handling of authorization,...
532.48 KB  
Modules  -  WP Favicons plug-in 0.5.5
This plugin puts a recognizable icon before each link; it makes your website lively and recognizable: Compare listings of dull links to listings with an icon before it: users will instantly recognize the familiar icons to your benefit. Compare...
235.52 KB  
Web Browsers  -  Gmail S/MIME 0.5.1
A Firefox add-on that allows you to send and receive signed and encrypted messages in Gmail Send and receive secure e-mail directly in your browser with the Gmail S/MIME extension for Firefox! Gmail S/MIME provides Firefox...
122.88 KB  
Network & Internet  -  KalaPy 0.3.1
KalaPy is a web application framework for Python based on Werkzeug and Jinja2. It provides it's own unique Database Abstraction Layer (DAL), localisation via babel and pytz and more... This is just a preview release. The...
92.16 KB  
Programming  -  django-geoportail 0.4.5
django-geoportail is a Django app that adds maps and photos from the French National Geographic Institute to GeoDjango. Geodjango with the maps and photos from the French National Geographic Institute. * Installation: see...
30.72 KB  
NEW DOWNLOADS IN PROGRAMMING, SPECIALIZED TOOLS
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Specialized Tools  -  SIMRI 2.0
SIMRI: a versatile and interactive Magnetic Resonance Imaging (MRI) simulator.Such a simulator is a command line software written in C that reproduces the physical phenomenas encountered during an MRI acquisition to produce a realistic MRI image.
6.39 MB  
Specialized Tools  -  Java Web Start Plugin for Eclipse 1.2.1
Java Web Start Plugin for Eclipse (WS4E) helps you to deploy your Java application through Java Web Start. With WS4E, Developers with very little knowledge can deploy their applications with just a few clicks. For advanced developers, WS4E is...
204.8 KB  
Specialized Tools  -  TUGGO for Linux 1.0.0
TUGGO is a website management system allowing anyone to easily create their own website without any code knowledge.
942.08 KB  
Specialized Tools  -  Parcels for Linux 1.0
Web documents that look similar often use different HTML tags to achieve their layout effect. These tags often make it difficult for a machine to find text or images of interest. PARCELS is a backend system [Java] designed to...
1.14 MB  
Specialized Tools  -  django-test-extensions 0.10
PyUnit provides a basic set of assertions which can get you started with unit testing python, but it???*a*?s always useful to have more. Django also has a few specific requirements and common patterns when it comes to testing. This set of classes...
20.48 KB