Merge branch 'hotfix/v0.12.3' into hotfix_0.12.3_merge
Conflicts: apps/acls/locale/de_DE/LC_MESSAGES/django.mo apps/acls/locale/en/LC_MESSAGES/django.po apps/acls/locale/es/LC_MESSAGES/django.mo apps/acls/locale/es/LC_MESSAGES/django.po apps/acls/locale/it/LC_MESSAGES/django.mo apps/acls/locale/pl/LC_MESSAGES/django.mo apps/acls/locale/pt/LC_MESSAGES/django.mo apps/acls/locale/pt/LC_MESSAGES/django.po apps/acls/locale/pt_BR/LC_MESSAGES/django.mo apps/acls/locale/pt_BR/LC_MESSAGES/django.po apps/acls/locale/ru/LC_MESSAGES/django.mo apps/common/locale/de_DE/LC_MESSAGES/django.mo apps/common/locale/de_DE/LC_MESSAGES/django.po apps/common/locale/en/LC_MESSAGES/django.po apps/common/locale/es/LC_MESSAGES/django.mo apps/common/locale/es/LC_MESSAGES/django.po apps/common/locale/it/LC_MESSAGES/django.mo apps/common/locale/it/LC_MESSAGES/django.po apps/common/locale/pl/LC_MESSAGES/django.mo apps/common/locale/pl/LC_MESSAGES/django.po apps/common/locale/pt/LC_MESSAGES/django.mo apps/common/locale/pt/LC_MESSAGES/django.po apps/common/locale/pt_BR/LC_MESSAGES/django.mo apps/common/locale/pt_BR/LC_MESSAGES/django.po apps/common/locale/ru/LC_MESSAGES/django.mo apps/common/locale/ru/LC_MESSAGES/django.po apps/converter/conf/settings.py apps/converter/locale/de_DE/LC_MESSAGES/django.mo apps/converter/locale/de_DE/LC_MESSAGES/django.po apps/converter/locale/en/LC_MESSAGES/django.po apps/converter/locale/es/LC_MESSAGES/django.mo apps/converter/locale/es/LC_MESSAGES/django.po apps/converter/locale/it/LC_MESSAGES/django.mo apps/converter/locale/it/LC_MESSAGES/django.po apps/converter/locale/pl/LC_MESSAGES/django.mo apps/converter/locale/pl/LC_MESSAGES/django.po apps/converter/locale/pt/LC_MESSAGES/django.mo apps/converter/locale/pt/LC_MESSAGES/django.po apps/converter/locale/pt_BR/LC_MESSAGES/django.mo apps/converter/locale/pt_BR/LC_MESSAGES/django.po apps/converter/locale/ru/LC_MESSAGES/django.mo apps/converter/locale/ru/LC_MESSAGES/django.po apps/django_gpg/locale/de_DE/LC_MESSAGES/django.mo apps/django_gpg/locale/en/LC_MESSAGES/django.po apps/django_gpg/locale/es/LC_MESSAGES/django.mo apps/django_gpg/locale/es/LC_MESSAGES/django.po apps/django_gpg/locale/it/LC_MESSAGES/django.mo apps/django_gpg/locale/pl/LC_MESSAGES/django.mo apps/django_gpg/locale/pt/LC_MESSAGES/django.mo apps/django_gpg/locale/pt/LC_MESSAGES/django.po apps/django_gpg/locale/pt_BR/LC_MESSAGES/django.mo apps/django_gpg/locale/pt_BR/LC_MESSAGES/django.po apps/django_gpg/locale/ru/LC_MESSAGES/django.mo apps/document_comments/locale/de_DE/LC_MESSAGES/django.mo apps/document_comments/locale/en/LC_MESSAGES/django.po apps/document_comments/locale/es/LC_MESSAGES/django.mo apps/document_comments/locale/es/LC_MESSAGES/django.po apps/document_comments/locale/it/LC_MESSAGES/django.mo apps/document_comments/locale/pl/LC_MESSAGES/django.mo apps/document_comments/locale/pt/LC_MESSAGES/django.mo apps/document_comments/locale/pt/LC_MESSAGES/django.po apps/document_comments/locale/pt_BR/LC_MESSAGES/django.mo apps/document_comments/locale/pt_BR/LC_MESSAGES/django.po apps/document_comments/locale/ru/LC_MESSAGES/django.mo apps/document_indexing/__init__.py apps/document_indexing/locale/de_DE/LC_MESSAGES/django.mo apps/document_indexing/locale/de_DE/LC_MESSAGES/django.po apps/document_indexing/locale/en/LC_MESSAGES/django.po apps/document_indexing/locale/es/LC_MESSAGES/django.mo apps/document_indexing/locale/es/LC_MESSAGES/django.po apps/document_indexing/locale/it/LC_MESSAGES/django.mo apps/document_indexing/locale/it/LC_MESSAGES/django.po apps/document_indexing/locale/pl/LC_MESSAGES/django.mo apps/document_indexing/locale/pl/LC_MESSAGES/django.po apps/document_indexing/locale/pt/LC_MESSAGES/django.mo apps/document_indexing/locale/pt/LC_MESSAGES/django.po apps/document_indexing/locale/pt_BR/LC_MESSAGES/django.mo apps/document_indexing/locale/pt_BR/LC_MESSAGES/django.po apps/document_indexing/locale/ru/LC_MESSAGES/django.mo apps/document_indexing/locale/ru/LC_MESSAGES/django.po apps/document_signatures/locale/de_DE/LC_MESSAGES/django.mo apps/document_signatures/locale/en/LC_MESSAGES/django.po apps/document_signatures/locale/es/LC_MESSAGES/django.mo apps/document_signatures/locale/es/LC_MESSAGES/django.po apps/document_signatures/locale/it/LC_MESSAGES/django.mo apps/document_signatures/locale/pl/LC_MESSAGES/django.mo apps/document_signatures/locale/pt/LC_MESSAGES/django.mo apps/document_signatures/locale/pt/LC_MESSAGES/django.po apps/document_signatures/locale/pt_BR/LC_MESSAGES/django.mo apps/document_signatures/locale/pt_BR/LC_MESSAGES/django.po apps/document_signatures/locale/ru/LC_MESSAGES/django.mo apps/documents/__init__.py apps/documents/forms.py apps/documents/locale/de_DE/LC_MESSAGES/django.mo apps/documents/locale/de_DE/LC_MESSAGES/django.po apps/documents/locale/es/LC_MESSAGES/django.mo apps/documents/locale/es/LC_MESSAGES/django.po apps/documents/locale/it/LC_MESSAGES/django.mo apps/documents/locale/it/LC_MESSAGES/django.po apps/documents/locale/pl/LC_MESSAGES/django.mo apps/documents/locale/pl/LC_MESSAGES/django.po apps/documents/locale/pt/LC_MESSAGES/django.mo apps/documents/locale/pt/LC_MESSAGES/django.po apps/documents/locale/pt_BR/LC_MESSAGES/django.mo apps/documents/locale/pt_BR/LC_MESSAGES/django.po apps/documents/locale/ru/LC_MESSAGES/django.mo apps/documents/locale/ru/LC_MESSAGES/django.po apps/documents/views.py apps/dynamic_search/locale/de_DE/LC_MESSAGES/django.mo apps/dynamic_search/locale/en/LC_MESSAGES/django.po apps/dynamic_search/locale/es/LC_MESSAGES/django.mo apps/dynamic_search/locale/es/LC_MESSAGES/django.po apps/dynamic_search/locale/it/LC_MESSAGES/django.mo apps/dynamic_search/locale/pl/LC_MESSAGES/django.mo apps/dynamic_search/locale/pt/LC_MESSAGES/django.mo apps/dynamic_search/locale/pt/LC_MESSAGES/django.po apps/dynamic_search/locale/pt_BR/LC_MESSAGES/django.mo apps/dynamic_search/locale/pt_BR/LC_MESSAGES/django.po apps/dynamic_search/locale/ru/LC_MESSAGES/django.mo apps/dynamic_search/models.py apps/folders/locale/de_DE/LC_MESSAGES/django.mo apps/folders/locale/de_DE/LC_MESSAGES/django.po apps/folders/locale/en/LC_MESSAGES/django.po apps/folders/locale/es/LC_MESSAGES/django.mo apps/folders/locale/es/LC_MESSAGES/django.po apps/folders/locale/it/LC_MESSAGES/django.mo apps/folders/locale/pl/LC_MESSAGES/django.mo apps/folders/locale/pt/LC_MESSAGES/django.mo apps/folders/locale/pt/LC_MESSAGES/django.po apps/folders/locale/pt_BR/LC_MESSAGES/django.mo apps/folders/locale/pt_BR/LC_MESSAGES/django.po apps/folders/locale/ru/LC_MESSAGES/django.mo apps/history/locale/de_DE/LC_MESSAGES/django.mo apps/history/locale/en/LC_MESSAGES/django.po apps/history/locale/es/LC_MESSAGES/django.mo apps/history/locale/es/LC_MESSAGES/django.po apps/history/locale/it/LC_MESSAGES/django.mo apps/history/locale/pl/LC_MESSAGES/django.mo apps/history/locale/pt/LC_MESSAGES/django.mo apps/history/locale/pt/LC_MESSAGES/django.po apps/history/locale/pt_BR/LC_MESSAGES/django.mo apps/history/locale/pt_BR/LC_MESSAGES/django.po apps/history/locale/ru/LC_MESSAGES/django.mo apps/installation/locale/de_DE/LC_MESSAGES/django.mo apps/installation/locale/en/LC_MESSAGES/django.po apps/installation/locale/es/LC_MESSAGES/django.mo apps/installation/locale/es/LC_MESSAGES/django.po apps/installation/locale/it/LC_MESSAGES/django.mo apps/installation/locale/pl/LC_MESSAGES/django.mo apps/installation/locale/pt/LC_MESSAGES/django.mo apps/installation/locale/pt_BR/LC_MESSAGES/django.mo apps/installation/locale/pt_BR/LC_MESSAGES/django.po apps/installation/locale/ru/LC_MESSAGES/django.mo apps/linking/locale/de_DE/LC_MESSAGES/django.mo apps/linking/locale/en/LC_MESSAGES/django.po apps/linking/locale/es/LC_MESSAGES/django.mo apps/linking/locale/es/LC_MESSAGES/django.po apps/linking/locale/it/LC_MESSAGES/django.mo apps/linking/locale/pl/LC_MESSAGES/django.mo apps/linking/locale/pt/LC_MESSAGES/django.mo apps/linking/locale/pt/LC_MESSAGES/django.po apps/linking/locale/pt_BR/LC_MESSAGES/django.mo apps/linking/locale/pt_BR/LC_MESSAGES/django.po apps/linking/locale/ru/LC_MESSAGES/django.mo apps/main/locale/de_DE/LC_MESSAGES/django.mo apps/main/locale/de_DE/LC_MESSAGES/django.po apps/main/locale/en/LC_MESSAGES/django.po apps/main/locale/es/LC_MESSAGES/django.mo apps/main/locale/es/LC_MESSAGES/django.po apps/main/locale/it/LC_MESSAGES/django.mo apps/main/locale/it/LC_MESSAGES/django.po apps/main/locale/pl/LC_MESSAGES/django.mo apps/main/locale/pl/LC_MESSAGES/django.po apps/main/locale/pt/LC_MESSAGES/django.mo apps/main/locale/pt_BR/LC_MESSAGES/django.mo apps/main/locale/pt_BR/LC_MESSAGES/django.po apps/main/locale/ru/LC_MESSAGES/django.mo apps/main/locale/ru/LC_MESSAGES/django.po apps/metadata/__init__.py apps/metadata/locale/de_DE/LC_MESSAGES/django.mo apps/metadata/locale/en/LC_MESSAGES/django.po apps/metadata/locale/es/LC_MESSAGES/django.mo apps/metadata/locale/es/LC_MESSAGES/django.po apps/metadata/locale/it/LC_MESSAGES/django.mo apps/metadata/locale/pl/LC_MESSAGES/django.mo apps/metadata/locale/pt/LC_MESSAGES/django.mo apps/metadata/locale/pt/LC_MESSAGES/django.po apps/metadata/locale/pt_BR/LC_MESSAGES/django.mo apps/metadata/locale/pt_BR/LC_MESSAGES/django.po apps/metadata/locale/ru/LC_MESSAGES/django.mo apps/navigation/locale/de_DE/LC_MESSAGES/django.mo apps/navigation/locale/en/LC_MESSAGES/django.po apps/navigation/locale/es/LC_MESSAGES/django.mo apps/navigation/locale/es/LC_MESSAGES/django.po apps/navigation/locale/it/LC_MESSAGES/django.mo apps/navigation/locale/pl/LC_MESSAGES/django.mo apps/navigation/locale/pt/LC_MESSAGES/django.mo apps/navigation/locale/pt/LC_MESSAGES/django.po apps/navigation/locale/pt_BR/LC_MESSAGES/django.mo apps/navigation/locale/pt_BR/LC_MESSAGES/django.po apps/navigation/locale/ru/LC_MESSAGES/django.mo apps/navigation/templatetags/navigation_tags.py apps/ocr/locale/de_DE/LC_MESSAGES/django.mo apps/ocr/locale/en/LC_MESSAGES/django.po apps/ocr/locale/es/LC_MESSAGES/django.mo apps/ocr/locale/es/LC_MESSAGES/django.po apps/ocr/locale/it/LC_MESSAGES/django.mo apps/ocr/locale/pl/LC_MESSAGES/django.mo apps/ocr/locale/pt/LC_MESSAGES/django.mo apps/ocr/locale/pt/LC_MESSAGES/django.po apps/ocr/locale/pt_BR/LC_MESSAGES/django.mo apps/ocr/locale/pt_BR/LC_MESSAGES/django.po apps/ocr/locale/ru/LC_MESSAGES/django.mo apps/permissions/locale/de_DE/LC_MESSAGES/django.mo apps/permissions/locale/de_DE/LC_MESSAGES/django.po apps/permissions/locale/en/LC_MESSAGES/django.po apps/permissions/locale/es/LC_MESSAGES/django.mo apps/permissions/locale/es/LC_MESSAGES/django.po apps/permissions/locale/it/LC_MESSAGES/django.mo apps/permissions/locale/it/LC_MESSAGES/django.po apps/permissions/locale/pl/LC_MESSAGES/django.mo apps/permissions/locale/pl/LC_MESSAGES/django.po apps/permissions/locale/pt/LC_MESSAGES/django.mo apps/permissions/locale/pt/LC_MESSAGES/django.po apps/permissions/locale/pt_BR/LC_MESSAGES/django.mo apps/permissions/locale/pt_BR/LC_MESSAGES/django.po apps/permissions/locale/ru/LC_MESSAGES/django.mo apps/permissions/locale/ru/LC_MESSAGES/django.po apps/project_setup/locale/de_DE/LC_MESSAGES/django.mo apps/project_setup/locale/en/LC_MESSAGES/django.po apps/project_setup/locale/es/LC_MESSAGES/django.mo apps/project_setup/locale/es/LC_MESSAGES/django.po apps/project_setup/locale/it/LC_MESSAGES/django.mo apps/project_setup/locale/pl/LC_MESSAGES/django.mo apps/project_setup/locale/pt/LC_MESSAGES/django.mo apps/project_setup/locale/pt/LC_MESSAGES/django.po apps/project_setup/locale/pt_BR/LC_MESSAGES/django.mo apps/project_setup/locale/pt_BR/LC_MESSAGES/django.po apps/project_setup/locale/ru/LC_MESSAGES/django.mo apps/project_tools/locale/de_DE/LC_MESSAGES/django.mo apps/project_tools/locale/en/LC_MESSAGES/django.po apps/project_tools/locale/es/LC_MESSAGES/django.mo apps/project_tools/locale/es/LC_MESSAGES/django.po apps/project_tools/locale/it/LC_MESSAGES/django.mo apps/project_tools/locale/pl/LC_MESSAGES/django.mo apps/project_tools/locale/pt/LC_MESSAGES/django.mo apps/project_tools/locale/pt_BR/LC_MESSAGES/django.mo apps/project_tools/locale/pt_BR/LC_MESSAGES/django.po apps/project_tools/locale/ru/LC_MESSAGES/django.mo apps/scheduler/locale/de_DE/LC_MESSAGES/django.mo apps/scheduler/locale/en/LC_MESSAGES/django.po apps/scheduler/locale/es/LC_MESSAGES/django.mo apps/scheduler/locale/es/LC_MESSAGES/django.po apps/scheduler/locale/it/LC_MESSAGES/django.mo apps/scheduler/locale/pl/LC_MESSAGES/django.mo apps/scheduler/locale/pt/LC_MESSAGES/django.mo apps/scheduler/locale/pt/LC_MESSAGES/django.po apps/scheduler/locale/pt_BR/LC_MESSAGES/django.mo apps/scheduler/locale/pt_BR/LC_MESSAGES/django.po apps/scheduler/locale/ru/LC_MESSAGES/django.mo apps/smart_settings/locale/de_DE/LC_MESSAGES/django.mo apps/smart_settings/locale/en/LC_MESSAGES/django.po apps/smart_settings/locale/es/LC_MESSAGES/django.mo apps/smart_settings/locale/es/LC_MESSAGES/django.po apps/smart_settings/locale/it/LC_MESSAGES/django.mo apps/smart_settings/locale/pl/LC_MESSAGES/django.mo apps/smart_settings/locale/pt/LC_MESSAGES/django.mo apps/smart_settings/locale/pt/LC_MESSAGES/django.po apps/smart_settings/locale/pt_BR/LC_MESSAGES/django.mo apps/smart_settings/locale/pt_BR/LC_MESSAGES/django.po apps/smart_settings/locale/ru/LC_MESSAGES/django.mo apps/sources/__init__.py apps/sources/locale/de_DE/LC_MESSAGES/django.mo apps/sources/locale/de_DE/LC_MESSAGES/django.po apps/sources/locale/es/LC_MESSAGES/django.mo apps/sources/locale/es/LC_MESSAGES/django.po apps/sources/locale/it/LC_MESSAGES/django.mo apps/sources/locale/it/LC_MESSAGES/django.po apps/sources/locale/pl/LC_MESSAGES/django.mo apps/sources/locale/pl/LC_MESSAGES/django.po apps/sources/locale/pt/LC_MESSAGES/django.mo apps/sources/locale/pt/LC_MESSAGES/django.po apps/sources/locale/pt_BR/LC_MESSAGES/django.mo apps/sources/locale/pt_BR/LC_MESSAGES/django.po apps/sources/locale/ru/LC_MESSAGES/django.mo apps/sources/locale/ru/LC_MESSAGES/django.po apps/sources/views.py apps/tags/locale/de_DE/LC_MESSAGES/django.mo apps/tags/locale/en/LC_MESSAGES/django.po apps/tags/locale/es/LC_MESSAGES/django.mo apps/tags/locale/es/LC_MESSAGES/django.po apps/tags/locale/it/LC_MESSAGES/django.mo apps/tags/locale/pl/LC_MESSAGES/django.mo apps/tags/locale/pt/LC_MESSAGES/django.mo apps/tags/locale/pt/LC_MESSAGES/django.po apps/tags/locale/pt_BR/LC_MESSAGES/django.mo apps/tags/locale/pt_BR/LC_MESSAGES/django.po apps/tags/locale/ru/LC_MESSAGES/django.mo apps/user_management/locale/de_DE/LC_MESSAGES/django.mo apps/user_management/locale/en/LC_MESSAGES/django.po apps/user_management/locale/es/LC_MESSAGES/django.mo apps/user_management/locale/es/LC_MESSAGES/django.po apps/user_management/locale/it/LC_MESSAGES/django.mo apps/user_management/locale/pl/LC_MESSAGES/django.mo apps/user_management/locale/pt/LC_MESSAGES/django.mo apps/user_management/locale/pt/LC_MESSAGES/django.po apps/user_management/locale/pt_BR/LC_MESSAGES/django.mo apps/user_management/locale/pt_BR/LC_MESSAGES/django.po apps/user_management/locale/ru/LC_MESSAGES/django.mo apps/web_theme/locale/de_DE/LC_MESSAGES/django.mo apps/web_theme/locale/de_DE/LC_MESSAGES/django.po apps/web_theme/locale/en/LC_MESSAGES/django.po apps/web_theme/locale/es/LC_MESSAGES/django.mo apps/web_theme/locale/es/LC_MESSAGES/django.po apps/web_theme/locale/it/LC_MESSAGES/django.mo apps/web_theme/locale/it/LC_MESSAGES/django.po apps/web_theme/locale/pl/LC_MESSAGES/django.mo apps/web_theme/locale/pl/LC_MESSAGES/django.po apps/web_theme/locale/pt/LC_MESSAGES/django.mo apps/web_theme/locale/pt/LC_MESSAGES/django.po apps/web_theme/locale/pt_BR/LC_MESSAGES/django.mo apps/web_theme/locale/pt_BR/LC_MESSAGES/django.po apps/web_theme/locale/ru/LC_MESSAGES/django.mo apps/web_theme/locale/ru/LC_MESSAGES/django.po misc/compilemessages_all.sh misc/makemessages_all.sh requirements/production.txt settings.py
This commit is contained in:
12
apps/bootstrap/__init__.py
Normal file
12
apps/bootstrap/__init__.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from project_setup.api import register_setup
|
||||
from navigation.api import bind_links#, register_sidebar_template
|
||||
|
||||
from .links import database_bootstrap, bootstrap_execute, erase_database_link
|
||||
from .api import BootstrapSimple, BootstrapPermit
|
||||
|
||||
register_setup(database_bootstrap)
|
||||
register_setup(erase_database_link)
|
||||
bind_links(BootstrapSimple, [bootstrap_execute])
|
||||
bind_links(BootstrapPermit, [bootstrap_execute])
|
||||
176
apps/bootstrap/api.py
Normal file
176
apps/bootstrap/api.py
Normal file
@@ -0,0 +1,176 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils.translation import ugettext
|
||||
from django.contrib.auth.models import User, Group
|
||||
|
||||
from permissions.models import Role
|
||||
from documents.models import DocumentType, DocumentTypeFilename, Document
|
||||
from metadata.models import MetadataType, MetadataSet
|
||||
from metadata.api import save_metadata_list
|
||||
from document_indexing.models import Index, IndexTemplateNode
|
||||
from sources.models import WebForm, StagingFolder
|
||||
from ocr.models import QueueDocument, QueueTransformation, DocumentQueue
|
||||
from history.models import History
|
||||
from taggit.models import Tag
|
||||
from tags.models import TagProperties
|
||||
from folders.models import Folder
|
||||
from dynamic_search.models import RecentSearch
|
||||
from django_gpg.runtime import gpg
|
||||
|
||||
bootstrap_options = {}
|
||||
|
||||
|
||||
def nuke_database():
|
||||
# Delete all document types
|
||||
for obj in DocumentType.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all documents one by one to trigger the document file delete method
|
||||
# Should also get rid of document metadata
|
||||
for obj in Document.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all metadata types
|
||||
for obj in MetadataType.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all metadata sets
|
||||
for obj in MetadataSet.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all indexes types, should also delete index nodes
|
||||
for obj in Index.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all webforms sources
|
||||
for obj in WebForm.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all staging folder sources
|
||||
for obj in StagingFolder.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all user groups
|
||||
for obj in Group.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all users except superadmins and staff
|
||||
for obj in User.objects.all():
|
||||
if not obj.is_superuser and not obj.is_staff:
|
||||
obj.delete()
|
||||
|
||||
# Delete all user roles
|
||||
for obj in Role.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all document in the ocr queue
|
||||
for obj in QueueDocument.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all the transformations for a queue
|
||||
for obj in QueueTransformation.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all the ocr document queues
|
||||
for obj in DocumentQueue.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all the remaining history events
|
||||
for obj in History.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all tags
|
||||
for obj in Tag.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete any remaining tag property
|
||||
for obj in TagProperties.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all foders
|
||||
for obj in Folder.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Delete all recent searches
|
||||
for obj in RecentSearch.objects.all():
|
||||
obj.delete()
|
||||
|
||||
# Clear the entire key ring (public and private keys)
|
||||
gpg.delete_all_keys()
|
||||
|
||||
|
||||
class BootstrapBase(object):
|
||||
name = None
|
||||
label = ''
|
||||
description = ''
|
||||
|
||||
def __unicode__(self):
|
||||
return unicode(self.label)
|
||||
|
||||
|
||||
class BootstrapSimple(BootstrapBase):
|
||||
name = 'simple'
|
||||
label = _(u'Simple')
|
||||
description = _(u'A simple setup providing an uploaded date metadata and index plus an alphabetic index based on document filenames.')
|
||||
|
||||
def execute(self):
|
||||
# Create metadata types
|
||||
upload_date = MetadataType.objects.create(name='upload_date', title=ugettext(u'Upload date'), default='current_date()')
|
||||
|
||||
# Create a segmented date index
|
||||
index = Index.objects.create(name='date_tree', title=ugettext(u'Segmented date index'), enabled=True)
|
||||
template_root = index.template_root
|
||||
|
||||
# Create index template
|
||||
node1 = IndexTemplateNode.objects.create(parent=template_root, index=index, expression='metadata.upload_date[0:4]', enabled=True, link_documents=False)
|
||||
node2 = IndexTemplateNode.objects.create(parent=node1, index=index, expression='metadata.upload_date[5:7]', enabled=True, link_documents=False)
|
||||
node3 = IndexTemplateNode.objects.create(parent=node2, index=index, expression='metadata.upload_date[8:10]', enabled=True, link_documents=True)
|
||||
|
||||
|
||||
class BootstrapPermit(BootstrapBase):
|
||||
name = 'permits'
|
||||
label = _(u'Permits')
|
||||
description = _(u'A setup for handling permits and related documents.')
|
||||
|
||||
def execute(self):
|
||||
# Create document types
|
||||
form = DocumentType.objects.create(name=ugettext(u'Form'))
|
||||
DocumentTypeFilename.objects.create(document_type=form, filename=ugettext(u'Building construction form'))
|
||||
DocumentTypeFilename.objects.create(document_type=form, filename=ugettext(u'Building usage form'))
|
||||
|
||||
blueprint = DocumentType.objects.create(name=ugettext(u'Blueprint'))
|
||||
DocumentTypeFilename.objects.create(document_type=blueprint, filename=ugettext(u'Floorplan'))
|
||||
DocumentTypeFilename.objects.create(document_type=blueprint, filename=ugettext(u'Plot plan'))
|
||||
|
||||
# Create metadata types
|
||||
date = MetadataType.objects.create(name='date', title=ugettext(u'Date'), default='current_date()')
|
||||
client = MetadataType.objects.create(name='client', title=ugettext(u'Client'))
|
||||
permit = MetadataType.objects.create(name='permit', title=ugettext(u'Permit number'))
|
||||
project = MetadataType.objects.create(name='project', title=ugettext(u'Project'))
|
||||
user = MetadataType.objects.create(name='user', title=ugettext(u'User'), lookup='sorted([user.get_full_name() or user for user in User.objects.all() if user.is_active])')
|
||||
|
||||
# Create a segmented date index
|
||||
index = Index.objects.create(name='main_index', title=ugettext(u'Permit index'), enabled=True)
|
||||
|
||||
# Create index template
|
||||
per_permit = IndexTemplateNode.objects.create(parent=index.template_root, index=index, expression='\'%s\'' % ugettext(u'Per permit'), enabled=True, link_documents=False)
|
||||
per_permit_child = IndexTemplateNode.objects.create(parent=per_permit, index=index, expression='metadata.permit', enabled=True, link_documents=True)
|
||||
|
||||
per_project = IndexTemplateNode.objects.create(parent=index.template_root, index=index, expression='\'%s\'' % ugettext(u'Per project'), enabled=True, link_documents=False)
|
||||
per_project_child = IndexTemplateNode.objects.create(parent=per_project, index=index, expression='metadata.project', enabled=True, link_documents=False)
|
||||
per_permit = IndexTemplateNode.objects.create(parent=per_project_child, index=index, expression='\'%s\'' % ugettext(u'Per permit'), enabled=True, link_documents=False)
|
||||
per_permit_child = IndexTemplateNode.objects.create(parent=per_permit, index=index, expression='metadata.permit', enabled=True, link_documents=True)
|
||||
|
||||
per_date = IndexTemplateNode.objects.create(parent=index.template_root, index=index, expression='\'%s\'' % ugettext(u'Per date'), enabled=True, link_documents=False)
|
||||
per_date_child = IndexTemplateNode.objects.create(parent=per_date, index=index, expression='metadata.date', enabled=True, link_documents=True)
|
||||
|
||||
per_user = IndexTemplateNode.objects.create(parent=index.template_root, index=index, expression='\'%s\'' % ugettext(u'Per user'), enabled=True, link_documents=False)
|
||||
per_user_child = IndexTemplateNode.objects.create(parent=per_user, index=index, expression='metadata.user', enabled=True, link_documents=True)
|
||||
|
||||
per_client = IndexTemplateNode.objects.create(parent=index.template_root, index=index, expression='\'%s\'' % ugettext(u'Per client'), enabled=True, link_documents=False)
|
||||
per_client_child = IndexTemplateNode.objects.create(parent=per_client, index=index, expression='metadata.client', enabled=True, link_documents=True)
|
||||
|
||||
|
||||
for bootstrap in [BootstrapSimple(), BootstrapPermit()]:
|
||||
bootstrap_options[bootstrap.name] = bootstrap
|
||||
9
apps/bootstrap/links.py
Normal file
9
apps/bootstrap/links.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .permissions import PERMISSION_BOOTSTRAP_EXECUTE, PERMISSION_NUKE_DATABASE
|
||||
|
||||
database_bootstrap = {'text': _(u'bootstrap database'), 'view': 'bootstrap_type_list', 'icon': 'database_lightning.png', 'permissions': [PERMISSION_BOOTSTRAP_EXECUTE]}
|
||||
bootstrap_execute = {'text': _(u'execute'), 'view': 'bootstrap_execute', 'args': 'object.name', 'sprite': 'database_lightning.png', 'permissions': [PERMISSION_BOOTSTRAP_EXECUTE]}
|
||||
erase_database_link = {'text': _(u'erase database'), 'view': 'erase_database_view', 'icon': 'radioactivity.png', 'permissions': [PERMISSION_NUKE_DATABASE]}
|
||||
BIN
apps/bootstrap/locale/bg/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/bg/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/bg/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/bg/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Bulgarian (http://www.transifex.com/projects/p/mayan-edms/language/bg/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: bg\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/de_DE/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/de_DE/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/de_DE/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/de_DE/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: German (Germany) (http://www.transifex.com/projects/p/mayan-edms/language/de_DE/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: de_DE\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/en/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/en/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/en/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/en/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/es/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/es/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/es/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/es/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Spanish (http://www.transifex.com/projects/p/mayan-edms/language/es/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/fr/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/fr/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
148
apps/bootstrap/locale/fr/LC_MESSAGES/django.po
Normal file
148
apps/bootstrap/locale/fr/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,148 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
# Pierre Lhoste <peter.cathbad.host@gmail.com>, 2012.
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 22:49+0000\n"
|
||||
"Last-Translator: Pierre Lhoste <peter.cathbad.host@gmail.com>\n"
|
||||
"Language-Team: French (http://www.transifex.com/projects/p/mayan-edms/language/fr/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: fr\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr "Simple"
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr "Une configuration simple fournissant "
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/it/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/it/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/it/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/it/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Italian (http://www.transifex.com/projects/p/mayan-edms/language/it/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: it\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/nl_NL/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/nl_NL/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/nl_NL/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/nl_NL/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Dutch (Netherlands) (http://www.transifex.com/projects/p/mayan-edms/language/nl_NL/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: nl_NL\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/pl/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/pl/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/pl/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/pl/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Polish (http://www.transifex.com/projects/p/mayan-edms/language/pl/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pl\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/pt/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/pt/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/pt/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/pt/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Portuguese (http://www.transifex.com/projects/p/mayan-edms/language/pt/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/pt_BR/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/pt_BR/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/pt_BR/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/pt_BR/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/mayan-edms/language/pt_BR/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: pt_BR\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
BIN
apps/bootstrap/locale/ru/LC_MESSAGES/django.mo
Normal file
BIN
apps/bootstrap/locale/ru/LC_MESSAGES/django.mo
Normal file
Binary file not shown.
147
apps/bootstrap/locale/ru/LC_MESSAGES/django.po
Normal file
147
apps/bootstrap/locale/ru/LC_MESSAGES/django.po
Normal file
@@ -0,0 +1,147 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
#
|
||||
# Translators:
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Mayan EDMS\n"
|
||||
"Report-Msgid-Bugs-To: http://github.com/rosarior/mayan/issues\n"
|
||||
"POT-Creation-Date: 2012-07-23 15:37-0400\n"
|
||||
"PO-Revision-Date: 2012-07-23 19:40+0000\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: Russian (http://www.transifex.com/projects/p/mayan-edms/language/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: ru\n"
|
||||
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
|
||||
|
||||
#: api.py:24
|
||||
msgid "Simple"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:25
|
||||
msgid ""
|
||||
"A simple setup providing an uploaded date metadata and index plus an "
|
||||
"alphabetic index based on document filenames."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:29
|
||||
msgid "Upload date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:32
|
||||
msgid "Segmented date index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:43
|
||||
msgid "Permits"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:44
|
||||
msgid "A setup for handling permits and related documents."
|
||||
msgstr ""
|
||||
|
||||
#: api.py:48
|
||||
msgid "Form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:49
|
||||
msgid "Building construction form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:50
|
||||
msgid "Building usage form"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:52
|
||||
msgid "Blueprint"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:53
|
||||
msgid "Floorplan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:54
|
||||
msgid "Plot plan"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:57
|
||||
msgid "Date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:58
|
||||
msgid "Client"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:59
|
||||
msgid "Permit number"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:60
|
||||
msgid "Project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:61
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:64
|
||||
msgid "Permit index"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:67 api.py:72
|
||||
msgid "Per permit"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:70
|
||||
msgid "Per project"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:75
|
||||
msgid "Per date"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:78
|
||||
msgid "Per user"
|
||||
msgstr ""
|
||||
|
||||
#: api.py:81
|
||||
msgid "Per client"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:8
|
||||
msgid "bootstrap database"
|
||||
msgstr ""
|
||||
|
||||
#: links.py:9
|
||||
msgid "execute"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:18
|
||||
msgid "database bootstrap setups"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:21
|
||||
msgid "description"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:42
|
||||
#, python-format
|
||||
msgid "Error executing bootstrap setup; %s"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:44
|
||||
#, python-format
|
||||
msgid "Bootstrap setup \"%s\" executed successfully."
|
||||
msgstr ""
|
||||
|
||||
#: views.py:48
|
||||
msgid "bootstrap setup"
|
||||
msgstr ""
|
||||
|
||||
#: views.py:56
|
||||
#, python-format
|
||||
msgid "Are you sure you wish to execute the database bootstrap named: %s?"
|
||||
msgstr ""
|
||||
1
apps/bootstrap/models.py
Normal file
1
apps/bootstrap/models.py
Normal file
@@ -0,0 +1 @@
|
||||
from django.db import models
|
||||
11
apps/bootstrap/permissions.py
Normal file
11
apps/bootstrap/permissions.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from permissions.models import PermissionNamespace, Permission
|
||||
|
||||
namespace = PermissionNamespace('bootstrap', _(u'Database bootstrap'))
|
||||
|
||||
PERMISSION_BOOTSTRAP_EXECUTE = Permission.objects.register(namespace, 'bootstrap_execute', _(u'Execute document bootstraps'))
|
||||
PERMISSION_NUKE_DATABASE = Permission.objects.register(namespace, 'nuke_database', _(u'Erase the entire database and document storage'))
|
||||
|
||||
BIN
apps/bootstrap/static/images/icons/database_lightning.png
Executable file
BIN
apps/bootstrap/static/images/icons/database_lightning.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
BIN
apps/bootstrap/static/images/icons/radioactivity.png
Executable file
BIN
apps/bootstrap/static/images/icons/radioactivity.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
7
apps/bootstrap/urls.py
Normal file
7
apps/bootstrap/urls.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.conf.urls.defaults import patterns, url
|
||||
|
||||
urlpatterns = patterns('bootstrap.views',
|
||||
url(r'^type/list/$', 'bootstrap_type_list', (), 'bootstrap_type_list'),
|
||||
url(r'^(?P<bootstrap_name>\w+)/execute/$', 'bootstrap_execute', (), 'bootstrap_execute'),
|
||||
url(r'^nuke/$', 'erase_database_view', (), 'erase_database_view'),
|
||||
)
|
||||
93
apps/bootstrap/views.py
Normal file
93
apps/bootstrap/views.py
Normal file
@@ -0,0 +1,93 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.shortcuts import render_to_response, get_object_or_404
|
||||
from django.template import RequestContext
|
||||
from django.contrib import messages
|
||||
from django.core.urlresolvers import reverse
|
||||
|
||||
from permissions.models import Permission
|
||||
|
||||
from .api import bootstrap_options, nuke_database
|
||||
from .permissions import PERMISSION_BOOTSTRAP_EXECUTE, PERMISSION_NUKE_DATABASE
|
||||
|
||||
|
||||
def bootstrap_type_list(request):
|
||||
Permission.objects.check_permissions(request.user, [PERMISSION_BOOTSTRAP_EXECUTE])
|
||||
|
||||
context = {
|
||||
'object_list': bootstrap_options.values(),
|
||||
'title': _(u'database bootstrap setups'),
|
||||
'hide_link': True,
|
||||
'extra_columns': [
|
||||
{'name': _(u'description'), 'attribute': 'description'},
|
||||
],
|
||||
}
|
||||
|
||||
return render_to_response('generic_list.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
def bootstrap_execute(request, bootstrap_name):
|
||||
Permission.objects.check_permissions(request.user, [PERMISSION_BOOTSTRAP_EXECUTE])
|
||||
bootstrap = bootstrap_options[bootstrap_name]
|
||||
|
||||
post_action_redirect = reverse('bootstrap_type_list')
|
||||
|
||||
previous = request.POST.get('previous', request.GET.get('previous', request.META.get('HTTP_REFERER', '/')))
|
||||
next = request.POST.get('next', request.GET.get('next', post_action_redirect if post_action_redirect else request.META.get('HTTP_REFERER', '/')))
|
||||
|
||||
if request.method == 'POST':
|
||||
try:
|
||||
bootstrap.execute()
|
||||
except Exception, exc:
|
||||
messages.error(request, _(u'Error executing bootstrap setup; %s') % exc)
|
||||
else:
|
||||
messages.success(request, _(u'Bootstrap setup "%s" executed successfully.') % bootstrap)
|
||||
return HttpResponseRedirect(next)
|
||||
|
||||
context = {
|
||||
'object_name': _(u'bootstrap setup'),
|
||||
'delete_view': False,
|
||||
'previous': previous,
|
||||
'next': next,
|
||||
'form_icon': u'database_lightning.png',
|
||||
'object': bootstrap,
|
||||
}
|
||||
|
||||
context['title'] = _(u'Are you sure you wish to execute the database bootstrap named: %s?') % bootstrap.label
|
||||
|
||||
return render_to_response('generic_confirm.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
|
||||
|
||||
def erase_database_view(request):
|
||||
Permission.objects.check_permissions(request.user, [PERMISSION_NUKE_DATABASE])
|
||||
|
||||
post_action_redirect = None
|
||||
|
||||
previous = request.POST.get('previous', request.GET.get('previous', request.META.get('HTTP_REFERER', '/')))
|
||||
next = request.POST.get('next', request.GET.get('next', post_action_redirect if post_action_redirect else request.META.get('HTTP_REFERER', '/')))
|
||||
|
||||
if request.method == 'POST':
|
||||
try:
|
||||
nuke_database()
|
||||
except Exception, exc:
|
||||
messages.error(request, _(u'Error erasing database; %s') % exc)
|
||||
else:
|
||||
messages.success(request, _(u'Database erased successfully.'))
|
||||
return HttpResponseRedirect(next)
|
||||
|
||||
context = {
|
||||
'delete_view': False,
|
||||
'previous': previous,
|
||||
'next': next,
|
||||
'form_icon': u'radioactivity.png',
|
||||
}
|
||||
|
||||
context['title'] = _(u'Are you sure you wish to erase the entire database and document storage?')
|
||||
context['message'] = _(u'All documents, sources, metadata, metadata types, set, tags, indexes and logs will be lost irreversibly!')
|
||||
|
||||
return render_to_response('generic_confirm.html', context,
|
||||
context_instance=RequestContext(request))
|
||||
Reference in New Issue
Block a user