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

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

Serving Software Downloads in 976 Categories, Downloaded 29.895.820 Times

django-attachments 0.3.1

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

django-attachments

Report Broken Link
Printer Friendly Version


Product Homepage
Download (17 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  -  Attachment Expiration 6.x-1.0
Attachment expiration module provides a method to remove attachments while leaving the nodes housing the attachments in place. This module is helpful in situations where space is a concern, or the actual content is archived elsewhere.The module...
10 KB  
Mail Clients  -  Attachment Finder for Outlook Express 2.29
Attachment Finder for Outlook Express helps you to find and save files from attachments. If Outlook Express has many e-mail messages then Arises problem - how to find file in messages. Utility save all attachments to files by several seconds....
1.07 MB  
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  
Business  -  EQMS 2010 Lite (Enquiry Management System) 2.1
Salient Features * Organize leads and streamline follow-ups * Know your strong selling points * Know your weak points, why you lost the order * Complete trailing of follow ups and deals with enquiries * Contact management and history * Incentive...
1.91 MB  
Business  -  EQMS Lite (Enquiry Management System) 2.1
Salient Features * Organize leads and streamline follow-ups * Know your strong selling points * Know your weak points, why you lost the order * Complete trailing of follow ups and deals with enquiries * Contact management and history * Incentive...
1.91 MB  
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  
Hard Drive Cleaners  -  Easy Exif Delete 1.0
Detect and delete JPEG exif data with Easy Exif Delete, a freeware application from ConsumerSoft. Exif data is a form of hidden metadata attached to jpeg (.jpg) images. This data can contain camera type, lens type, shutter speed and exposure,...
884.95 KB  
Form Processors  -  php formgenerator 1.0
Generates PHP form for insert/update/delete for some MySQL table.
 
Modules  -  Admin block 1.0
Each item gets their own edit link and delete link for quick administration.The block will only show for users with "administer nodes" privileges. If there are no comments to approve and no nodes to moderate the block will not show.Installation -...
 
Communication  -  editable FIR response 1.0
Add, move and delete points to form a desired spectral curve.The result can be saved to workspace as linear or minimum phase FIR.
10 KB  
NEW DOWNLOADS IN PROGRAMMING, SPECIALIZED TOOLS
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
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  -  Jigs Persistent Objects (JPO) 0.2
Welcome to the Java Persistent Objects (JPO) project site. This site is dedicated to Java developers attempting to find a simple solution to object persistence in a relational database (or object-relational mapping). Get the latest...
1.4 MB  
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