From: hernani Date: Mon, 21 Feb 2011 17:45:19 +0000 (+0000) Subject: Cleaning up a small mess. X-Git-Tag: live~445 X-Git-Url: https://git.openstreetmap.org./osqa.git/commitdiff_plain/b60cf7ea15f0603d26730347c1d598e456c7684a?ds=sidebyside Cleaning up a small mess. git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@771 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- diff --git a/forum/modules/template_loader.py/.project b/forum/modules/template_loader.py/.project deleted file mode 100644 index 5b1b909..0000000 --- a/forum/modules/template_loader.py/.project +++ /dev/null @@ -1,24 +0,0 @@ - - - osqa-pydev - - - - - - org.eclipse.wst.jsdt.core.javascriptValidator - - - - - org.python.pydev.PyDevBuilder - - - - - - org.python.pydev.pythonNature - org.eclipse.wst.jsdt.core.jsNature - org.python.pydev.django.djangoNature - - diff --git a/forum/modules/template_loader.py/INSTALL b/forum/modules/template_loader.py/INSTALL deleted file mode 100644 index 525947b..0000000 --- a/forum/modules/template_loader.py/INSTALL +++ /dev/null @@ -1,5 +0,0 @@ -For installation instruction go to: - -http://wiki.osqa.net/display/docs/Home - -The wiki contains many recipes to help you install on different hosting providers. \ No newline at end of file diff --git a/forum/modules/template_loader.py/LICENSE b/forum/modules/template_loader.py/LICENSE deleted file mode 100644 index de192e0..0000000 --- a/forum/modules/template_loader.py/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -Copyright (c) 2010. OSQA -Some portions Copyright (c) 2009 Chen Gang - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . diff --git a/forum/modules/template_loader.py/__init__.py b/forum/modules/template_loader.py/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/cron/README b/forum/modules/template_loader.py/cron/README deleted file mode 100644 index d557315..0000000 --- a/forum/modules/template_loader.py/cron/README +++ /dev/null @@ -1,5 +0,0 @@ -this directory contains sample commands to be executed -by cron - -files with names ending "virtuanenv" should work under Python virtualenv system -other files - with standard unix setup diff --git a/forum/modules/template_loader.py/cron/send_email_alerts b/forum/modules/template_loader.py/cron/send_email_alerts deleted file mode 100644 index cae0960..0000000 --- a/forum/modules/template_loader.py/cron/send_email_alerts +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -PYTHONPATH=/path/to/dir_above_osqa_site -export PYTHONPATH -PROJECT_ROOT=$PYTHONPATH/osqa_site -/path/to/python $PROJECT_ROOT/manage.py send_email_alerts diff --git a/forum/modules/template_loader.py/cron/send_email_alerts_virtualenv b/forum/modules/template_loader.py/cron/send_email_alerts_virtualenv deleted file mode 100644 index 6c9e154..0000000 --- a/forum/modules/template_loader.py/cron/send_email_alerts_virtualenv +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -WORKON_HOME=~/envs/osqa -PROJECT_ROOT=~/webapps/osqa_server/projects/osqa/ - -# activate virtual environment -. $WORKON_HOME/bin/activate - -cd $PROJECT_ROOT -python manage.py send_email_alerts >> $PROJECT_ROOT/log/cron_mail.log 2>&1 diff --git a/forum/modules/template_loader.py/forum/__init__.py b/forum/modules/template_loader.py/forum/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum/actions/__init__.py b/forum/modules/template_loader.py/forum/actions/__init__.py deleted file mode 100644 index 4c6c678..0000000 --- a/forum/modules/template_loader.py/forum/actions/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from meta import * -from node import * -from user import * -from page import * \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/actions/meta.py b/forum/modules/template_loader.py/forum/actions/meta.py deleted file mode 100644 index f5c12cd..0000000 --- a/forum/modules/template_loader.py/forum/actions/meta.py +++ /dev/null @@ -1,215 +0,0 @@ -from django.utils.translation import ugettext as _ -from django.db.models import F -from forum.models.action import ActionProxy, DummyActionProxy -from forum.models import Vote, Flag -from forum import settings - -class VoteAction(ActionProxy): - def update_node_score(self, inc): - self.node.score = F('score') + inc - self.node.save() - - def process_vote_action(self, value): - self.update_node_score(value) - vote = Vote(node=self.node, user=self.user, action=self, value=value) - vote.save() - - def cancel_action(self): - vote = self.vote - self.update_node_score(-vote.value) - vote.delete() - - @classmethod - def get_for(cls, user, node): - try: - vote = Vote.objects.get(user=user, node=node) - return vote.value - except: - return None - - @classmethod - def get_action_for(cls, user, node): - try: - vote = Vote.objects.get(user=user, node=node) - return vote.action - except: - return None - - def describe_vote(self, vote_desc, viewer=None): - return _("%(user)s %(vote_desc)s %(post_desc)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'vote_desc': vote_desc, 'post_desc': self.describe_node(viewer, self.node) - } - - -class VoteUpAction(VoteAction): - def repute_users(self): - self.repute(self.node.author, int(settings.REP_GAIN_BY_UPVOTED)) - - def process_action(self): - self.process_vote_action(1) - self.user.reset_vote_up_count_cache() - - def cancel_action(self): - super(VoteUpAction, self).cancel_action() - self.user.reset_vote_up_count_cache() - - def describe(self, viewer=None): - return self.describe_vote(_("voted up"), viewer) - -class VoteDownAction(VoteAction): - def repute_users(self): - self.repute(self.node.author, -int(settings.REP_LOST_BY_DOWNVOTED)) - self.repute(self.user, -int(settings.REP_LOST_BY_DOWNVOTING)) - - def process_action(self): - self.process_vote_action(-1) - self.user.reset_vote_down_count_cache() - - def cancel_action(self): - super(VoteDownAction, self).cancel_action() - self.user.reset_vote_down_count_cache() - - def describe(self, viewer=None): - return self.describe_vote(_("voted down"), viewer) - - -class VoteUpCommentAction(VoteUpAction): - def repute_users(self): - pass - - def process_action(self): - self.process_vote_action(1) - - def cancel_action(self): - super(VoteUpAction, self).cancel_action() - - def describe(self, viewer=None): - return self.describe_vote(_("liked"), viewer) - - -class FlagAction(ActionProxy): - def repute_users(self): - self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED)) - - def process_action(self): - flag = Flag(user=self.user, node=self.node, action=self, reason=self.extra) - flag.save() - self.node.reset_flag_count_cache() - - if self.node.flag_count == int(settings.FLAG_COUNT_TO_HIDE_POST): - self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED_3_TIMES)) - - if self.node.flag_count == int(settings.FLAG_COUNT_TO_DELETE_POST): - self.repute(self.node.author, -int(settings.REP_LOST_BY_FLAGGED_5_TIMES)) - if not self.node.nis.deleted: - DeleteAction(node=self.node, user=self.user, extra="BYFLAGGED").save() - - def cancel_action(self): - self.flag.delete() - self.node.reset_flag_count_cache() - - @classmethod - def get_for(cls, user, node): - try: - flag = Flag.objects.get(user=user, node=node) - return flag.reason or _("No reason given") - except: - return None - - def describe(self, viewer=None): - return _("%(user)s flagged %(post_desc)s: %(reason)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node), 'reason': self.extra - } - - -class AcceptAnswerAction(ActionProxy): - def repute_users(self): - if (self.user == self.node.parent.author) and (not self.user == self.node.author): - self.repute(self.user, int(settings.REP_GAIN_BY_ACCEPTING)) - - if self.user != self.node.author: - self.repute(self.node.author, int(settings.REP_GAIN_BY_ACCEPTED)) - - def process_action(self): - self.node.marked = True - self.node.nstate.accepted = self - self.node.save() - self.node.question.reset_accepted_count_cache() - - def cancel_action(self): - self.node.marked = False - self.node.nstate.accepted = None - self.node.save() - self.node.question.reset_accepted_count_cache() - - def describe(self, viewer=None): - answer = self.node - question = answer.parent - - if self.user == question.author: - asker = (self.user == viewer) and _("your") or _("his") - else: - asker = self.hyperlink(question.author.get_profile_url(), question.author.username) - - return _("%(user)s accepted %(answerer)s answer on %(asker)s question %(question)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'answerer': self.hyperlink(answer.author.get_profile_url(), self.friendly_ownername(viewer, answer.author)), - 'asker': asker, - 'question': self.hyperlink(question.get_absolute_url(), question.title) - } - - -class FavoriteAction(ActionProxy): - def process_action(self): - self.node.reset_favorite_count_cache() - - def cancel_action(self): - self.process_action() - - def describe(self, viewer=None): - return _("%(user)s marked %(post_desc)s as favorite") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node), - } - - -class DeleteAction(ActionProxy): - def process_action(self): - self.node.mark_deleted(self) - - if self.node.node_type == "answer": - self.node.question.reset_answer_count_cache() - - def cancel_action(self): - self.node.mark_deleted(None) - - if self.node.node_type == "answer": - self.node.question.reset_answer_count_cache() - - def describe(self, viewer=None): - return _("%(user)s deleted %(post_desc)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node) - } - - def reason(self): - if self.extra != "BYFLAGGED": - return self.extra - else: - return _("flagged by multiple users: ") + "; ".join([f.extra for f in FlagAction.objects.filter(node=self.node)]) - -class UnknownAction(ActionProxy): - pass - - -class QuestionViewAction(DummyActionProxy): - def __init__(self, node, user, ip=None): - self.viewuser = user - self.node = node - super(QuestionViewAction, self).__init__(ip) - - def process_action(self): - self.node.extra_count = F('extra_count') + 1 - self.node.save() diff --git a/forum/modules/template_loader.py/forum/actions/node.py b/forum/modules/template_loader.py/forum/actions/node.py deleted file mode 100644 index cd39924..0000000 --- a/forum/modules/template_loader.py/forum/actions/node.py +++ /dev/null @@ -1,236 +0,0 @@ -from django.utils.html import strip_tags -from django.utils.translation import ugettext as _ -from forum.models.action import ActionProxy -from forum.models import Comment, Question, Answer, NodeRevision - -class NodeEditAction(ActionProxy): - def create_revision_data(self, initial=False, **data): - revision_data = dict(summary=data.get('summary', (initial and _('Initial revision') or '')), body=data['text']) - - if data.get('title', None): - revision_data['title'] = strip_tags(data['title'].strip()) - - if data.get('tags', None): - revision_data['tagnames'] = data['tags'].strip() - - return revision_data - -class AskAction(NodeEditAction): - verb = _("asked") - - def process_data(self, **data): - processed_data = self.create_revision_data(True, **data) - if 'added_at' in data: - processed_data['added_at'] = data['added_at'] - - question = Question(author=self.user, **processed_data) - question.save() - self.node = question - - def describe(self, viewer=None): - return _("%(user)s asked %(question)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'question': self.hyperlink(self.node.get_absolute_url(), self.node.title) - } - -class AnswerAction(NodeEditAction): - verb = _("answered") - - def process_data(self, **data): - answer = Answer(author=self.user, parent=data['question'], **self.create_revision_data(True, **data)) - answer.save() - self.node = answer - - def process_action(self): - self.node.question.reset_answer_count_cache() - - def describe(self, viewer=None): - question = self.node.parent - return _("%(user)s answered %(asker)s on %(question)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'asker': self.hyperlink(question.author.get_profile_url(), self.friendly_username(viewer, question.author)), - 'question': self.hyperlink(self.node.get_absolute_url(), question.title) - } - -class CommentAction(ActionProxy): - verb = _("commented") - - def process_data(self, text='', parent=None): - comment = Comment(author=self.user, parent=parent, body=text) - comment.save() - self.node = comment - - def describe(self, viewer=None): - return _("%(user)s commented on %(post_desc)s") % { - 'user': self.hyperlink(self.node.author.get_profile_url(), self.friendly_username(viewer, self.node.author)), - 'post_desc': self.describe_node(viewer, self.node.parent) - } - -class ReviseAction(NodeEditAction): - verb = _("edited") - - def process_data(self, **data): - revision_data = self.create_revision_data(**data) - revision = self.node.create_revision(self.user, **revision_data) - self.extra = revision.revision - - def process_action(self): - self.node.last_edited = self - self.node.save() - - def describe(self, viewer=None): - return _("%(user)s edited %(post_desc)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node) - } - - def get_absolute_url(self): - return self.node.get_revisions_url() - -class RetagAction(ActionProxy): - verb = _("retagged") - - def process_data(self, tagnames=''): - active = self.node.active_revision - revision_data = dict(summary=_('Retag'), title=active.title, tagnames=strip_tags(tagnames.strip()), body=active.body) - revision = self.node.create_revision(self.user, **revision_data) - self.extra = revision.revision - - def process_action(self): - self.node.last_edited = self - self.node.save() - - def describe(self, viewer=None): - return _("%(user)s retagged %(post_desc)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node) - } - - def get_absolute_url(self): - return self.node.get_revisions_url() - -class RollbackAction(ActionProxy): - verb = _("reverted") - - def process_data(self, activate=None): - previous = self.node.active_revision - self.node.activate_revision(self.user, activate) - self.extra = "%d:%d" % (previous.revision, activate.revision) - - def process_action(self): - self.node.last_edited = self - self.node.save() - - def describe(self, viewer=None): - revisions = [NodeRevision.objects.get(node=self.node, revision=int(n)) for n in self.extra.split(':')] - - return _("%(user)s reverted %(post_desc)s from revision %(initial)d (%(initial_sum)s) to revision %(final)d (%(final_sum)s)") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node), - 'initial': revisions[0].revision, 'initial_sum': revisions[0].summary, - 'final': revisions[1].revision, 'final_sum': revisions[1].summary, - } - - def get_absolute_url(self): - return self.node.get_revisions_url() - -class CloseAction(ActionProxy): - verb = _("closed") - - def process_action(self): - self.node.marked = True - self.node.nstate.closed = self - self.node.last_edited = self - self.node.update_last_activity(self.user, save=True) - - def cancel_action(self): - self.node.marked = False - self.node.nstate.closed = None - self.node.update_last_activity(self.user, save=True) - - def describe(self, viewer=None): - return _("%(user)s closed %(post_desc)s: %(reason)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'post_desc': self.describe_node(viewer, self.node), - 'reason': self.extra - } - -class AnswerToCommentAction(ActionProxy): - verb = _("converted") - - def process_data(self, new_parent=None): - self.node.parent = new_parent - self.node.node_type = "comment" - - for comment in self.node.comments.all(): - comment.parent = new_parent - comment.save() - - self.node.last_edited = self - self.node.update_last_activity(self.user, save=True) - try: - self.node.abs_parent.reset_answer_count_cache() - except AttributeError: - pass - - def describe(self, viewer=None): - return _("%(user)s converted an answer to %(question)s into a comment") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'question': self.describe_node(viewer, self.node.abs_parent), - } - -class CommentToAnswerAction(ActionProxy): - verb = _("converted") - - def process_data(self, question): - self.node.parent = question - self.node.node_type = "answer" - self.node.last_edited = self - self.node.update_last_activity(self.user, save=True) - - - def describe(self, viewer=None): - return _("%(user)s converted comment on %(question)s into an answer") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'question': self.describe_node(viewer, self.node.abs_parent), - } - -class AnswerToQuestionAction(ActionProxy): - verb = _("converted to question") - - def process_data(self, title): - self.node.node_type = "question" - self.node.title = title - self.node.last_edited = self - self.node.update_last_activity(self.user, save=True) - - try: - self.node.abs_parent.reset_answer_count_cache() - except AttributeError: - pass - - - def describe(self, viewer=None): - return _("%(user)s converted an answer to %(question)s into a separate question") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'question': self.describe_node(viewer, self.node.abs_parent), - } - -class WikifyAction(ActionProxy): - verb = _("wikified") - - def process_action(self): - self.node.nstate.wiki = self - self.node.last_edited = self - self.node.update_last_activity(self.user, save=True) - - def cancel_action(self): - self.node.nstate.wiki = None - self.node.update_last_activity(self.user, save=True) - - def describe(self, viewer=None): - return _("%(user)s marked %(node)s as community wiki.") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'node': self.describe_node(viewer, self.node), - } - diff --git a/forum/modules/template_loader.py/forum/actions/page.py b/forum/modules/template_loader.py/forum/actions/page.py deleted file mode 100644 index 508e8c2..0000000 --- a/forum/modules/template_loader.py/forum/actions/page.py +++ /dev/null @@ -1,58 +0,0 @@ -from django.utils.translation import ugettext as _ -from forum.models.action import ActionProxy -from forum.models import Page - -class NewPageAction(ActionProxy): - verb = _("created") - - def process_data(self, **data): - title = data.pop('title') - body = data.pop('content') - - page = Page(author=self.user, title=title, body=body, extra=data) - page.save() - self.node = page - - def describe(self, viewer=None): - return _("%(user)s created a new page titled %(page)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'page': self.hyperlink(self.node.get_absolute_url(), self.node.title) - } - -class EditPageAction(ActionProxy): - verb = _("edited") - - def process_data(self, **data): - title = data.pop('title') - body = data.pop('content') - - if (title != self.node.title) or (body != self.node.body): - self.node.create_revision(self.user, title=title, body=body) - - self.node.extra = data - self.node.save() - - def describe(self, viewer=None): - return _("%(user)s edited the page titled %(page)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'page': self.hyperlink(self.node.get_absolute_url(), self.node.title) - } - -class PublishAction(ActionProxy): - verb = _("published") - - def process_action(self): - self.node.marked = True - self.node.nstate.published = self - self.node.save() - - def cancel_action(self): - self.node.marked = False - self.node.nstate.published = None - self.node.save() - - def describe(self, viewer=None): - return _("%(user)s published a new page titled %(page)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'page': self.hyperlink(self.node.get_absolute_url(), self.node.title) - } diff --git a/forum/modules/template_loader.py/forum/actions/user.py b/forum/modules/template_loader.py/forum/actions/user.py deleted file mode 100644 index 50d1a73..0000000 --- a/forum/modules/template_loader.py/forum/actions/user.py +++ /dev/null @@ -1,161 +0,0 @@ -from django.utils.translation import ugettext as _ -from django.db.models import F -from forum.models.action import ActionProxy -from forum.models import Award, Badge, ValidationHash, User -from forum import settings -from forum.settings import APP_SHORT_NAME -from forum.utils.mail import send_template_email - -class UserJoinsAction(ActionProxy): - verb = _("joined") - - def repute_users(self): - self.repute(self.user, int(settings.INITIAL_REP)) - - def process_action(self): - hash = ValidationHash.objects.create_new(self.user, 'email', [self.user.email]) - send_template_email([self.user], "auth/welcome_email.html", {'validation_code': hash}) - - def describe(self, viewer=None): - return _("%(user)s %(have_has)s joined the %(app_name)s Q&A community") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'have_has': self.viewer_or_user_verb(viewer, self.user, _('have'), _('has')), - 'app_name': APP_SHORT_NAME, - } - -class EditProfileAction(ActionProxy): - verb = _("edited profile") - - def describe(self, viewer=None): - return _("%(user)s edited %(hes_or_your)s %(profile_link)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'hes_or_your': self.viewer_or_user_verb(viewer, self.user, _('your'), _('his')), - 'profile_link': self.hyperlink(self.user.get_profile_url(), _('profile')), - } - -class BonusRepAction(ActionProxy): - verb = _("gave bonus") - - def process_data(self, value, affected): - self._value = value - self._affected = affected - - - def repute_users(self): - self.repute(self._affected, self._value) - - if self._value > 0: - self._affected.message_set.create( - message=_("Congratulations, you have been awarded an extra %s reputation points.") % self._value + - '
%s' % self.extra.get('message', _('Thank you'))) - else: - self._affected.message_set.create( - message=_("You have been penalized in %s reputation points.") % self._value + - '
%s' % self.extra.get('message', '')) - - def describe(self, viewer=None): - value = self.extra.get('value', _('unknown')) - message = self.extra.get('message', '') - - try: - if int(value) > 0: - return _("%(user)s awarded an extra %(value)s reputation points to %(users)s: %(message)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'value': value, 'users':self.affected_links(viewer), 'message': message - } - else: - return _("%(user)s penalised %(users)s in %(value)s reputation points: %(message)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'value': value, 'users':self.affected_links(viewer), 'message': message - } - except Exception, e: - return '' - -class AwardAction(ActionProxy): - verb = _("was awarded") - - def process_data(self, badge, trigger): - self.__dict__['_badge'] = badge - self.__dict__['_trigger'] = trigger - - def process_action(self): - badge = self.__dict__['_badge'] - trigger = self.__dict__['_trigger'] - - award = Award(user=self.user, badge=badge, trigger=trigger, action=self) - if self.node: - award.node = self.node - - award.save() - award.badge.awarded_count = F('awarded_count') + 1 - award.badge.save() - - if award.badge.type == Badge.GOLD: - self.user.gold += 1 - if award.badge.type == Badge.SILVER: - self.user.silver += 1 - if award.badge.type == Badge.BRONZE: - self.user.bronze += 1 - - self.user.save() - - self.user.message_set.create(message=_( - """Congratulations, you have received a badge '%(badge_name)s'. Check out your profile.""" - ) % - dict(badge_name=award.badge.name, profile_url=self.user.get_profile_url())) - - def cancel_action(self): - award = self.award - badge = award.badge - badge.awarded_count = F('awarded_count') - 1 - badge.save() - award.delete() - - @classmethod - def get_for(cls, user, badge, node=False): - try: - if node is False: - return Award.objects.get(user=user, badge=badge).action - else: - return Award.objects.get(user=user, node=node, badge=badge).action - except: - return None - - def describe(self, viewer=None): - return _("%(user)s %(were_was)s awarded the %(badge_name)s badge") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'were_was': self.viewer_or_user_verb(viewer, self.user, _('were'), _('was')), - 'badge_name': self.award.badge.name, - } - -class SuspendAction(ActionProxy): - verb = _("suspended") - - def process_data(self, **kwargs): - self._suspended = kwargs.pop('suspended') - self.extra = kwargs - - def repute_users(self): - self.repute(self._suspended, 0) - - def process_action(self): - self._suspended.is_active = False - self._suspended.save() - - def cancel_action(self): - for u in User.objects.filter(reputes__action=self).distinct(): - u.is_active = True - u._pop_suspension_cache() - u.save() - u.message_set.create(message=_("Your suspension has been removed.")) - - def describe(self, viewer=None): - if self.extra.get('bantype', 'indefinitely') == 'forxdays' and self.extra.get('forxdays', None): - suspension = _("for %s days") % self.extra['forxdays'] - else: - suspension = _("indefinetely") - - return _("%(user)s suspended %(users)s %(suspension)s: %(msg)s") % { - 'user': self.hyperlink(self.user.get_profile_url(), self.friendly_username(viewer, self.user)), - 'users': self.affected_links(viewer), 'suspension': suspension, 'msg': self.extra.get('publicmsg', _('Bad behaviour')) - } \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/admin.py b/forum/modules/template_loader.py/forum/admin.py deleted file mode 100644 index c327ff8..0000000 --- a/forum/modules/template_loader.py/forum/admin.py +++ /dev/null @@ -1,66 +0,0 @@ -# -*- coding: utf-8 -*- - -#from django.contrib import admin -#from models import * -# -#class AnonymousQuestionAdmin(admin.ModelAdmin): -# """AnonymousQuestion admin class""" -# -#class NodeAdmin(admin.ModelAdmin): -# """Question admin class""" -# -#class TagAdmin(admin.ModelAdmin): -# """Tag admin class""" -# -#class Answerdmin(admin.ModelAdmin): -# """Answer admin class""" -# -#class CommentAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class VoteAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class FlaggedItemAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class FavoriteQuestionAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class QuestionRevisionAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class AnswerRevisionAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class AwardAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class BadgeAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class ReputeAdmin(admin.ModelAdmin): -# """ admin class""" -# -#class ActionAdmin(admin.ModelAdmin): -# """ admin class""" - -#class BookAdmin(admin.ModelAdmin): -# """ admin class""" - -#class BookAuthorInfoAdmin(admin.ModelAdmin): -# """ admin class""" - -#class BookAuthorRssAdmin(admin.ModelAdmin): -# """ admin class""" - -#admin.site.register(Node, NodeAdmin) -#admin.site.register(Tag, TagAdmin) -#admin.site.register(QuestionRevision, QuestionRevisionAdmin) -#admin.site.register(AnswerRevision, AnswerRevisionAdmin) -#admin.site.register(Badge, BadgeAdmin) -#admin.site.register(Award, AwardAdmin) -#admin.site.register(Action, ActionAdmin) -#admin.site.register(Book, BookAdmin) -#admin.site.register(BookAuthorInfo, BookAuthorInfoAdmin) -#admin.site.register(BookAuthorRss, BookAuthorRssAdmin) diff --git a/forum/modules/template_loader.py/forum/authentication/__init__.py b/forum/modules/template_loader.py/forum/authentication/__init__.py deleted file mode 100644 index 8dbf825..0000000 --- a/forum/modules/template_loader.py/forum/authentication/__init__.py +++ /dev/null @@ -1,33 +0,0 @@ -import re -import django.dispatch -from forum.modules import get_modules_script_classes -from forum.authentication.base import AuthenticationConsumer, ConsumerTemplateContext - -class ConsumerAndContext: - def __init__(self, id, consumer, context): - self.id = id - self._consumer = consumer - - context.id = id - self.context = context - - @property - def consumer(self): - return self._consumer() - -consumers = dict([ - (re.sub('AuthConsumer$', '', name).lower(), cls) for name, cls - in get_modules_script_classes('authentication', AuthenticationConsumer).items() - if not re.search('AbstractAuthConsumer$', name) - ]) - -contexts = dict([ - (re.sub('AuthContext$', '', name).lower(), cls) for name, cls - in get_modules_script_classes('authentication', ConsumerTemplateContext).items() - ]) - -AUTH_PROVIDERS = dict([ - (name, ConsumerAndContext(name, consumers[name], contexts[name])) for name in consumers.keys() - if name in contexts - ]) - diff --git a/forum/modules/template_loader.py/forum/authentication/base.py b/forum/modules/template_loader.py/forum/authentication/base.py deleted file mode 100644 index 9900586..0000000 --- a/forum/modules/template_loader.py/forum/authentication/base.py +++ /dev/null @@ -1,44 +0,0 @@ - -class AuthenticationConsumer(object): - - def prepare_authentication_request(self, request, redirect_to): - raise NotImplementedError() - - def process_authentication_request(self, response): - raise NotImplementedError() - - def get_user_data(self, key): - raise NotImplementedError() - - -class ConsumerTemplateContext(object): - """ - Class that provides information about a certain authentication provider context in the signin page. - - class attributes: - - mode - one of BIGICON, SMALLICON, FORM - - human_name - the human readable name of the provider - - extra_js - some providers require us to load extra javascript on the signin page for them to work, - this is the place to add those files in the form of a list - - extra_css - same as extra_js but for css files - """ - mode = '' - weight = 500 - human_name = '' - extra_js = [] - extra_css = [] - show_to_logged_in_user = True - - @classmethod - def readable_key(cls, key): - return key.key - -class InvalidAuthentication(Exception): - def __init__(self, message): - self.message = message - - \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/badges/__init__.py b/forum/modules/template_loader.py/forum/badges/__init__.py deleted file mode 100644 index c413e82..0000000 --- a/forum/modules/template_loader.py/forum/badges/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from forum.modules import get_modules_script - -get_modules_script('badges') - -from base import BadgesMeta - diff --git a/forum/modules/template_loader.py/forum/badges/base.py b/forum/modules/template_loader.py/forum/badges/base.py deleted file mode 100644 index 79fcb52..0000000 --- a/forum/modules/template_loader.py/forum/badges/base.py +++ /dev/null @@ -1,77 +0,0 @@ -import re -from string import lower - -from django.core.exceptions import MultipleObjectsReturned -from django.db.models.signals import post_save - -from forum.models import Badge, Node, Action -from forum.actions import AwardAction - -import logging - -installed = dict([(b.cls, b) for b in Badge.objects.all()]) - -class BadgesMeta(type): - by_class = {} - by_id = {} - - def __new__(mcs, name, bases, dic): - badge = type.__new__(mcs, name, bases, dic) - - if not dic.get('abstract', False): - if not name in installed: - badge.ondb = Badge(cls=name, type=dic.get('type', Badge.BRONZE)) - badge.ondb.save() - else: - badge.ondb = installed[name] - - inst = badge() - - def hook(action, new): - user = inst.award_to(action) - - if user: - badge.award(user, action, badge.award_once) - - for action in badge.listen_to: - action.hook(hook) - - BadgesMeta.by_class[name] = badge - badge.ondb.__dict__['_class'] = inst - BadgesMeta.by_id[badge.ondb.id] = badge - - return badge - -class AbstractBadge(object): - __metaclass__ = BadgesMeta - - abstract = True - award_once = False - - @property - def name(self): - raise NotImplementedError - - @property - def description(self): - raise NotImplementedError - - @classmethod - def award(cls, user, action, once=False): - try: - if once: - node = None - awarded = AwardAction.get_for(user, cls.ondb) - else: - node = action.node - awarded = AwardAction.get_for(user, cls.ondb, node) - - trigger = isinstance(action, Action) and action or None - - if not awarded: - AwardAction(user=user, node=node).save(data=dict(badge=cls.ondb, trigger=trigger)) - except MultipleObjectsReturned: - if node: - logging.error('Found multiple %s badges awarded for user %s (%s)' % (self.name, user.username, user.id)) - else: - logging.error('Found multiple %s badges awarded for user %s (%s) and node %s' % (self.name, user.username, user.id, node.id)) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/context.py b/forum/modules/template_loader.py/forum/context.py deleted file mode 100644 index 641af38..0000000 --- a/forum/modules/template_loader.py/forum/context.py +++ /dev/null @@ -1,23 +0,0 @@ -from forum import settings - -def application_settings(context): - return {'settings': settings} - -def auth_processor(request): - if hasattr(request, 'user'): - user = request.user - if user.is_authenticated(): - messages = user.message_set.all() - else: - messages = None - else: - from django.contrib.auth.models import AnonymousUser - user = AnonymousUser() - messages = None - - from django.core.context_processors import PermWrapper - return { - 'user': user, - 'messages': messages, - 'perms': PermWrapper(user), - } diff --git a/forum/modules/template_loader.py/forum/feed.py b/forum/modules/template_loader.py/forum/feed.py deleted file mode 100644 index 02c309d..0000000 --- a/forum/modules/template_loader.py/forum/feed.py +++ /dev/null @@ -1,108 +0,0 @@ -try: - from django.contrib.syndication.views import Feed, FeedDoesNotExist, add_domain - old_version = False -except: - from django.contrib.syndication.feeds import Feed, FeedDoesNotExist, add_domain - old_version = True - -from django.http import HttpResponse -from django.utils.translation import ugettext as _ -from django.utils.safestring import mark_safe -from models import Question -from forum import settings -from forum.modules import decorate -from forum.utils.pagination import generate_uri - -@decorate(add_domain, needs_origin=False) -def add_domain(domain, url, *args, **kwargs): - return "%s%s" % (settings.APP_BASE_URL, url) - -class BaseNodeFeed(Feed): - if old_version: - title_template = "feeds/rss_title.html" - description_template = "feeds/rss_description.html" - - def __init__(self, request, title, description, url): - self._title = title - self._description = mark_safe(unicode(description)) - self._url = url - - if old_version: - super(BaseNodeFeed, self).__init__('', request) - - def title(self): - return self._title - - def link(self): - return self._url - - def description(self): - return self._description - - def item_title(self, item): - return item.title - - def item_description(self, item): - return item.html - - def item_link(self, item): - return item.leaf.get_absolute_url() - - def item_author_name(self, item): - return item.author.username - - def item_author_link(self, item): - return item.author.get_profile_url() - - def item_pubdate(self, item): - return item.added_at - - if old_version: - def __call__(self, request): - feedgen = self.get_feed('') - response = HttpResponse(mimetype=feedgen.mime_type) - feedgen.write(response, 'utf-8') - return response - - -class RssQuestionFeed(BaseNodeFeed): - def __init__(self, request, question_list, title, description): - url = request.path + "&" + generate_uri(request.GET, (_('page'), _('pagesize'), _('sort'))) - super(RssQuestionFeed, self).__init__(request, title, description, url) - - self._question_list = question_list - - def item_categories(self, item): - return item.tagname_list() - - def items(self): - return self._question_list[:30] - -class RssAnswerFeed(BaseNodeFeed): - if old_version: - title_template = "feeds/rss_answer_title.html" - - def __init__(self, request, question, include_comments=False): - super(RssAnswerFeed, self).__init__(request, _("Answers to: %s") % question.title, question.html, question.get_absolute_url()) - self._question = question - self._include_comments = include_comments - - def items(self): - if self._include_comments: - qs = self._question.all_children - else: - qs = self._question.answers - - return qs.filter_state(deleted=False).order_by('-added_at')[:30] - - def item_title(self, item): - if item.node_type == "answer": - return _("Answer by %s") % item.author.username - else: - return _("Comment by %(cauthor)s on %(pauthor)s's %(qora)s") % dict( - cauthor=item.author.username, pauthor=item.parent.author.username, qora=(item.parent.node_type == "answer" and _("answer") or _("question")) - ) - - - - diff --git a/forum/modules/template_loader.py/forum/forms/__init__.py b/forum/modules/template_loader.py/forum/forms/__init__.py deleted file mode 100644 index ea5108c..0000000 --- a/forum/modules/template_loader.py/forum/forms/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from qanda import * -from admin import * -from auth import * -from general import * diff --git a/forum/modules/template_loader.py/forum/forms/admin.py b/forum/modules/template_loader.py/forum/forms/admin.py deleted file mode 100644 index 1ff2e85..0000000 --- a/forum/modules/template_loader.py/forum/forms/admin.py +++ /dev/null @@ -1,107 +0,0 @@ -import socket -from django import forms -from django.utils.translation import ugettext as _ -from django.contrib.admin.widgets import FilteredSelectMultiple, AdminDateWidget -from qanda import TitleField, EditorField -from forum import settings -from forum.models.node import NodeMetaClass -from forum.models import User - -class IPListField(forms.CharField): - def clean(self, value): - ips = [ip.strip() for ip in value.strip().strip(',').split(',')] - iplist = [] - - if len(ips) < 1: - raise forms.ValidationError(_('Please input at least one ip address')) - - for ip in ips: - try: - socket.inet_aton(ip) - except socket.error: - raise forms.ValidationError(_('Invalid ip address: %s' % ip)) - - if not len(ip.split('.')) == 4: - raise forms.ValidationError(_('Please use the dotted quad notation for the ip addresses')) - - iplist.append(ip) - - return iplist - -class MaintenanceModeForm(forms.Form): - ips = IPListField(label=_('Allow ips'), - help_text=_('Comma separated list of ips allowed to access the site while in maintenance'), - required=True, - widget=forms.TextInput(attrs={'class': 'longstring'})) - - message = forms.CharField(label=_('Message'), - help_text=_('A message to display to your site visitors while in maintainance mode'), - widget=forms.Textarea) - - -TEMPLATE_CHOICES = ( -('default', _('Default')), -('sidebar', _('Default with sidebar')), -('none', _('None')), -) - -RENDER_CHOICES = ( -('markdown', _('Markdown')), -('html', _('HTML')), -('escape', _('Escaped')) -) - -class UrlFieldWidget(forms.TextInput): - def render(self, name, value, attrs=None): - if not value: - value = '' - - return """ - - - """ % {'name': name, 'value': value, 'app_url': settings.APP_URL} - - -class PageForm(forms.Form): - def __init__(self, page, *args, **kwargs): - if page: - initial = page.extra - initial.update(dict(title=page.title, content=page.body)) - super(PageForm, self).__init__(initial=initial, *args, **kwargs) - else: - super(PageForm, self).__init__(*args, **kwargs) - - - title = forms.CharField(label=_('Title'), max_length=255, widget=forms.TextInput(attrs={'class': 'longstring'}), - initial='New page') - path = forms.CharField(label=_('Page URL'), widget=UrlFieldWidget, initial='pages/new/') - - content = forms.CharField(label=_('Page Content'), widget=forms.Textarea(attrs={'rows': 30})) - mimetype = forms.CharField(label=_('Mime Type'), initial='text/html') - - render = forms.ChoiceField(widget=forms.RadioSelect, choices=RENDER_CHOICES, initial='markdown', - label=_('Render Mode')) - - template = forms.ChoiceField(widget=forms.RadioSelect, choices=TEMPLATE_CHOICES, initial='default', - label=_('Template')) - sidebar = forms.CharField(label=_('Sidebar Content'), widget=forms.Textarea(attrs={'rows': 20}), required=False) - sidebar_wrap = forms.BooleanField(label=_("Wrap sidebar block"), initial=True, required=False) - sidebar_render = forms.ChoiceField(widget=forms.RadioSelect, choices=RENDER_CHOICES, initial='markdown', - label=_('Sidebar Render Mode')) - - comments = forms.BooleanField(label=_("Allow comments"), initial=False, required=False) - -from forum.forms.auth import SimpleRegistrationForm -from forum.forms.general import SetPasswordForm - - -class CreateUserForm(SimpleRegistrationForm, SetPasswordForm): - validate_email = forms.BooleanField(required=False, label=_('send validation email')) - - def __init__(self, *args, **kwargs): - super(CreateUserForm, self).__init__(*args, **kwargs) - self.fields.keyOrder = ['username', 'email', 'validate_email', 'password1', 'password2'] - self.fields['email'].label = _('email address') - - - diff --git a/forum/modules/template_loader.py/forum/forms/auth.py b/forum/modules/template_loader.py/forum/forms/auth.py deleted file mode 100644 index c1a7c09..0000000 --- a/forum/modules/template_loader.py/forum/forms/auth.py +++ /dev/null @@ -1,65 +0,0 @@ -from general import NextUrlField, UserNameField, UserEmailField, SetPasswordForm -from forum.models import Question, User -from forum.settings import INITIAL_EMAIL_SUBSCRIBE_OPTION -from django.contrib.contenttypes.models import ContentType -from django.utils.translation import ugettext as _ -from django.utils.safestring import mark_safe -from django import forms -import logging - -class SimpleRegistrationForm(forms.Form): - next = NextUrlField() - username = UserNameField() - email = UserEmailField() - -class TemporaryLoginRequestForm(forms.Form): - def __init__(self, data=None): - super(TemporaryLoginRequestForm, self).__init__(data) - self.user_cache = None - - email = forms.EmailField( - required=True, - label=_("Your account email"), - error_messages={ - 'required': _("You cannot leave this field blank"), - 'invalid': _('please enter a valid email address'), - } - ) - - def clean_email(self): - users = list(User.objects.filter(email=self.cleaned_data['email'])) - - if not len(users): - raise forms.ValidationError(_("Sorry, but this email is not on our database.")) - - self.user_cache = users - return self.cleaned_data['email'] - - -class SimpleEmailSubscribeForm(forms.Form): - SIMPLE_SUBSCRIBE_CHOICES = ( - ('y',_('okay, let\'s try!')), - ('n',_('no OSQA community email please, thanks')) - ) - subscribe = forms.ChoiceField(widget=forms.widgets.RadioSelect(), \ - error_messages={'required':_('please choose one of the options above')}, - choices=SIMPLE_SUBSCRIBE_CHOICES, initial=INITIAL_EMAIL_SUBSCRIBE_OPTION) - - -class ChangePasswordForm(SetPasswordForm): - """ change password form """ - oldpw = forms.CharField(widget=forms.PasswordInput(attrs={'class':'required'}), - label=mark_safe(_('Current password'))) - - def __init__(self, data=None, user=None, *args, **kwargs): - if user is None: - raise TypeError("Keyword argument 'user' must be supplied") - super(ChangePasswordForm, self).__init__(data, *args, **kwargs) - self.user = user - - def clean_oldpw(self): - """ test old password """ - if not self.user.check_password(self.cleaned_data['oldpw']): - raise forms.ValidationError(_("Old password is incorrect. \ - Please enter the correct password.")) - return self.cleaned_data['oldpw'] diff --git a/forum/modules/template_loader.py/forum/forms/general.py b/forum/modules/template_loader.py/forum/forms/general.py deleted file mode 100644 index e0348a8..0000000 --- a/forum/modules/template_loader.py/forum/forms/general.py +++ /dev/null @@ -1,173 +0,0 @@ -from django import forms -import re -from django.utils.translation import ugettext as _ -from django.utils.safestring import mark_safe -from forum import settings -from django.http import str_to_unicode -from forum.models import User -from forum.modules import call_all_handlers -import urllib -import logging - -DEFAULT_NEXT = getattr(settings, 'APP_BASE_URL') -def clean_next(next): - if next is None: - return DEFAULT_NEXT - next = str_to_unicode(urllib.unquote(next), 'utf-8') - next = next.strip() - if next.startswith('/'): - return next - return DEFAULT_NEXT - -def get_next_url(request): - return clean_next(request.REQUEST.get('next')) - -class StrippedNonEmptyCharField(forms.CharField): - def clean(self,value): - value = value.strip() - if self.required and value == '': - raise forms.ValidationError(_('this field is required')) - return value - -class NextUrlField(forms.CharField): - def __init__(self): - super(NextUrlField,self).__init__(max_length = 255,widget = forms.HiddenInput(),required = False) - def clean(self,value): - return clean_next(value) - -login_form_widget_attrs = { 'class': 'required login' } -username_re = re.compile(r'^[\w\s ]+$', re.UNICODE) - -class UserNameField(StrippedNonEmptyCharField): - def __init__(self,db_model=User, db_field='username', must_exist=False,skip_clean=False,label=_('choose a username'),**kw): - self.must_exist = must_exist - self.skip_clean = skip_clean - self.db_model = db_model - self.db_field = db_field - error_messages={'required':_('user name is required'), - 'taken':_('sorry, this name is taken, please choose another'), - 'forbidden':_('sorry, this name is not allowed, please choose another'), - 'missing':_('sorry, there is no user with this name'), - 'multiple-taken':_('sorry, we have a serious error - user name is taken by several users'), - 'invalid':_('user name can only consist of letters, empty space and underscore'), - 'toshort':_('user name is to short, please use at least %d characters') % settings.MIN_USERNAME_LENGTH - } - if 'error_messages' in kw: - error_messages.update(kw['error_messages']) - del kw['error_messages'] - super(UserNameField,self).__init__(max_length=30, - widget=forms.TextInput(attrs=login_form_widget_attrs), - label=label, - error_messages=error_messages, - **kw - ) - - def clean(self,username): - """ validate username """ - if self.skip_clean == True: - return username - if hasattr(self, 'user_instance') and isinstance(self.user_instance, User): - if username == self.user_instance.username: - return username - try: - username = super(UserNameField, self).clean(username) - except forms.ValidationError: - raise forms.ValidationError(self.error_messages['required']) - if len(username) < settings.MIN_USERNAME_LENGTH: - raise forms.ValidationError(self.error_messages['toshort']) - if self.required and not username_re.match(username): - raise forms.ValidationError(self.error_messages['invalid']) - if username in settings.RESERVED_USERNAMES: - raise forms.ValidationError(self.error_messages['forbidden']) - try: - user = self.db_model.objects.get( - **{'%s' % self.db_field : username} - ) - if user: - if self.must_exist: - return username - else: - raise forms.ValidationError(self.error_messages['taken']) - except self.db_model.DoesNotExist: - if self.must_exist: - raise forms.ValidationError(self.error_messages['missing']) - else: - return username - except self.db_model.MultipleObjectsReturned: - raise forms.ValidationError(self.error_messages['multiple-taken']) - -class UserEmailField(forms.EmailField): - def __init__(self,skip_clean=False,**kw): - self.skip_clean = skip_clean - super(UserEmailField,self).__init__(widget=forms.TextInput(attrs=dict(login_form_widget_attrs, - maxlength=200)), label=mark_safe(_('your email address')), - error_messages={'required':_('email address is required'), - 'invalid':_('please enter a valid email address'), - 'taken':_('this email is already used by someone else, please choose another'), - }, - **kw - ) - - def clean(self,email): - """ validate if email exist in database - from legacy register - return: raise error if it exist """ - email = super(UserEmailField,self).clean(email.strip()) - if self.skip_clean: - return email - if settings.EMAIL_UNIQUE == True: - try: - user = User.objects.get(email = email) - raise forms.ValidationError(self.error_messages['taken']) - except User.DoesNotExist: - return email - except User.MultipleObjectsReturned: - raise forms.ValidationError(self.error_messages['taken']) - else: - return email - -class SetPasswordForm(forms.Form): - password1 = forms.CharField(widget=forms.PasswordInput(attrs=login_form_widget_attrs), - label=_('choose password'), - error_messages={'required':_('password is required')}, - ) - password2 = forms.CharField(widget=forms.PasswordInput(attrs=login_form_widget_attrs), - label=mark_safe(_('retype password')), - error_messages={'required':_('please, retype your password'), - 'nomatch':_('sorry, entered passwords did not match, please try again')}, - ) - - def __init__(self, data=None, user=None, *args, **kwargs): - super(SetPasswordForm, self).__init__(data, *args, **kwargs) - - def clean_password2(self): - """ - Validates that the two password inputs match. - - """ - if 'password1' in self.cleaned_data: - if self.cleaned_data['password1'] == self.cleaned_data['password2']: - self.password = self.cleaned_data['password2'] - self.cleaned_data['password'] = self.cleaned_data['password2'] - return self.cleaned_data['password2'] - else: - del self.cleaned_data['password2'] - raise forms.ValidationError(self.fields['password2'].error_messages['nomatch']) - else: - return self.cleaned_data['password2'] - -class SimpleCaptchaForm(forms.Form): - fields = {} - - def __init__(self, *args, **kwargs): - super(SimpleCaptchaForm, self).__init__(*args, **kwargs) - - spam_fields = call_all_handlers('create_anti_spam_field') - if spam_fields: - spam_fields = dict(spam_fields) - for name, field in spam_fields.items(): - self.fields[name] = field - - self._anti_spam_fields = spam_fields.keys() - else: - self._anti_spam_fields = [] diff --git a/forum/modules/template_loader.py/forum/forms/qanda.py b/forum/modules/template_loader.py/forum/forms/qanda.py deleted file mode 100644 index 9890640..0000000 --- a/forum/modules/template_loader.py/forum/forms/qanda.py +++ /dev/null @@ -1,341 +0,0 @@ -import re -from datetime import date -from django import forms -from forum.models import * -from django.utils.translation import ugettext as _ -from django.contrib.humanize.templatetags.humanize import apnumber - -from django.utils.safestring import mark_safe -from general import NextUrlField, UserNameField, SetPasswordForm -from forum import settings - -from forum.modules import call_all_handlers - -import logging - -class TitleField(forms.CharField): - def __init__(self, *args, **kwargs): - super(TitleField, self).__init__(*args, **kwargs) - self.required = True - self.widget = forms.TextInput(attrs={'size' : 70, 'autocomplete' : 'off'}) - self.max_length = 255 - self.label = _('title') - self.help_text = _('please enter a descriptive title for your question') - self.initial = '' - - def clean(self, value): - if len(value) < settings.FORM_MIN_QUESTION_TITLE: - raise forms.ValidationError(_('title must be must be at least %s characters') % settings.FORM_MIN_QUESTION_TITLE) - - return value - -class EditorField(forms.CharField): - def __init__(self, *args, **kwargs): - super(EditorField, self).__init__(*args, **kwargs) - self.widget = forms.Textarea(attrs={'id':'editor'}) - self.label = _('content') - self.help_text = u'' - self.initial = '' - - -class QuestionEditorField(EditorField): - def __init__(self, *args, **kwargs): - super(QuestionEditorField, self).__init__(*args, **kwargs) - self.required = not bool(settings.FORM_EMPTY_QUESTION_BODY) - - - def clean(self, value): - if not bool(settings.FORM_EMPTY_QUESTION_BODY) and (len(re.sub('[ ]{2,}', ' ', value)) < settings.FORM_MIN_QUESTION_BODY): - raise forms.ValidationError(_('question content must be at least %s characters') % settings.FORM_MIN_QUESTION_BODY) - - return value - -class AnswerEditorField(EditorField): - def __init__(self, *args, **kwargs): - super(AnswerEditorField, self).__init__(*args, **kwargs) - self.required = True - - def clean(self, value): - if len(re.sub('[ ]{2,}', ' ', value)) < settings.FORM_MIN_QUESTION_BODY: - raise forms.ValidationError(_('answer content must be at least %s characters') % settings.FORM_MIN_QUESTION_BODY) - - return value - - -class TagNamesField(forms.CharField): - def __init__(self, user=None, *args, **kwargs): - super(TagNamesField, self).__init__(*args, **kwargs) - self.required = True - self.widget = forms.TextInput(attrs={'size' : 50, 'autocomplete' : 'off'}) - self.max_length = 255 - self.label = _('tags') - #self.help_text = _('please use space to separate tags (this enables autocomplete feature)') - self.help_text = _('Tags are short keywords, with no spaces within. At least %(min)s and up to %(max)s tags can be used.') % { - 'min': settings.FORM_MIN_NUMBER_OF_TAGS, 'max': settings.FORM_MAX_NUMBER_OF_TAGS - } - self.initial = '' - self.user = user - - def clean(self, value): - value = super(TagNamesField, self).clean(value) - data = value.strip().lower() - - split_re = re.compile(r'[ ,]+') - list = {} - for tag in split_re.split(data): - list[tag] = tag - - if len(list) > settings.FORM_MAX_NUMBER_OF_TAGS or len(list) < settings.FORM_MIN_NUMBER_OF_TAGS: - raise forms.ValidationError(_('please use between %(min)s and %(max)s tags') % { 'min': settings.FORM_MIN_NUMBER_OF_TAGS, 'max': settings.FORM_MAX_NUMBER_OF_TAGS}) - - list_temp = [] - tagname_re = re.compile(r'^[\w+\.-]+$', re.UNICODE) - for key,tag in list.items(): - if len(tag) > settings.FORM_MAX_LENGTH_OF_TAG or len(tag) < settings.FORM_MIN_LENGTH_OF_TAG: - raise forms.ValidationError(_('please use between %(min)s and %(max)s characters in you tags') % { 'min': settings.FORM_MIN_LENGTH_OF_TAG, 'max': settings.FORM_MAX_LENGTH_OF_TAG}) - if not tagname_re.match(tag): - raise forms.ValidationError(_('please use following characters in tags: letters , numbers, and characters \'.-_\'')) - # only keep one same tag - if tag not in list_temp and len(tag.strip()) > 0: - list_temp.append(tag) - - if settings.LIMIT_TAG_CREATION and not self.user.can_create_tags(): - existent = Tag.objects.filter(name__in=list_temp).values_list('name', flat=True) - - if len(existent) < len(list_temp): - unexistent = [n for n in list_temp if not n in existent] - raise forms.ValidationError(_("You don't have enough reputation to create new tags. The following tags do not exist yet: %s") % - ', '.join(unexistent)) - - - return u' '.join(list_temp) - -class WikiField(forms.BooleanField): - def __init__(self, disabled=False, *args, **kwargs): - super(WikiField, self).__init__(*args, **kwargs) - self.required = False - self.label = _('community wiki') - self.help_text = _('if you choose community wiki option, the question and answer do not generate points and name of author will not be shown') - if disabled: - self.widget=forms.CheckboxInput(attrs={'disabled': "disabled"}) - def clean(self,value): - return value - -class EmailNotifyField(forms.BooleanField): - def __init__(self, *args, **kwargs): - super(EmailNotifyField, self).__init__(*args, **kwargs) - self.required = False - self.widget.attrs['class'] = 'nomargin' - -class SummaryField(forms.CharField): - def __init__(self, *args, **kwargs): - super(SummaryField, self).__init__(*args, **kwargs) - self.required = False - self.widget = forms.TextInput(attrs={'size' : 50, 'autocomplete' : 'off'}) - self.max_length = 300 - self.label = _('update summary:') - self.help_text = _('enter a brief summary of your revision (e.g. fixed spelling, grammar, improved style, this field is optional)') - - -class FeedbackForm(forms.Form): - message = forms.CharField(label=_('Your message:'), max_length=800,widget=forms.Textarea(attrs={'cols':60})) - next = NextUrlField() - - def __init__(self, user, *args, **kwargs): - super(FeedbackForm, self).__init__(*args, **kwargs) - if not user.is_authenticated(): - self.fields['name'] = forms.CharField(label=_('Your name:'), required=False) - self.fields['email'] = forms.EmailField(label=_('Email (not shared with anyone):'), required=True) - - - -class AskForm(forms.Form): - title = TitleField() - text = QuestionEditorField() - - def __init__(self, data=None, user=None, *args, **kwargs): - super(AskForm, self).__init__(data, *args, **kwargs) - - self.fields['tags'] = TagNamesField(user) - - if int(user.reputation) < settings.CAPTCHA_IF_REP_LESS_THAN and not (user.is_superuser or user.is_staff): - spam_fields = call_all_handlers('create_anti_spam_field') - if spam_fields: - spam_fields = dict(spam_fields) - for name, field in spam_fields.items(): - self.fields[name] = field - - self._anti_spam_fields = spam_fields.keys() - else: - self._anti_spam_fields = [] - - if settings.WIKI_ON: - self.fields['wiki'] = WikiField() - -class AnswerForm(forms.Form): - text = AnswerEditorField() - wiki = WikiField() - - def __init__(self, data=None, user=None, *args, **kwargs): - super(AnswerForm, self).__init__(data, *args, **kwargs) - - if int(user.reputation) < settings.CAPTCHA_IF_REP_LESS_THAN and not (user.is_superuser or user.is_staff): - spam_fields = call_all_handlers('create_anti_spam_field') - if spam_fields: - spam_fields = dict(spam_fields) - for name, field in spam_fields.items(): - self.fields[name] = field - - self._anti_spam_fields = spam_fields.keys() - else: - self._anti_spam_fields = [] - - if settings.WIKI_ON: - self.fields['wiki'] = WikiField() - -class RetagQuestionForm(forms.Form): - tags = TagNamesField() - # initialize the default values - def __init__(self, question, *args, **kwargs): - super(RetagQuestionForm, self).__init__(*args, **kwargs) - self.fields['tags'].initial = question.tagnames - -class RevisionForm(forms.Form): - """ - Lists revisions of a Question or Answer - """ - revision = forms.ChoiceField(widget=forms.Select(attrs={'style' : 'width:520px'})) - - def __init__(self, post, *args, **kwargs): - super(RevisionForm, self).__init__(*args, **kwargs) - - revisions = post.revisions.all().values_list('revision', 'author__username', 'revised_at', 'summary').order_by('-revised_at') - - date_format = '%c' - self.fields['revision'].choices = [ - (r[0], u'%s - %s (%s) %s' % (r[0], r[1], r[2].strftime(date_format), r[3])) - for r in revisions] - - self.fields['revision'].initial = post.active_revision.revision - -class EditQuestionForm(forms.Form): - title = TitleField() - text = QuestionEditorField() - summary = SummaryField() - - def __init__(self, question, user, revision=None, *args, **kwargs): - super(EditQuestionForm, self).__init__(*args, **kwargs) - - if revision is None: - revision = question.active_revision - - self.fields['title'].initial = revision.title - self.fields['text'].initial = revision.body - - self.fields['tags'] = TagNamesField(user) - self.fields['tags'].initial = revision.tagnames - - if int(user.reputation) < settings.CAPTCHA_IF_REP_LESS_THAN and not (user.is_superuser or user.is_staff): - spam_fields = call_all_handlers('create_anti_spam_field') - if spam_fields: - spam_fields = dict(spam_fields) - for name, field in spam_fields.items(): - self.fields[name] = field - - self._anti_spam_fields = spam_fields.keys() - else: - self._anti_spam_fields = [] - - if settings.WIKI_ON: - self.fields['wiki'] = WikiField(disabled=(question.nis.wiki and not user.can_cancel_wiki(question)), initial=question.nis.wiki) - -class EditAnswerForm(forms.Form): - text = AnswerEditorField() - summary = SummaryField() - - def __init__(self, answer, user, revision=None, *args, **kwargs): - super(EditAnswerForm, self).__init__(*args, **kwargs) - - if revision is None: - revision = answer.active_revision - - self.fields['text'].initial = revision.body - - if int(user.reputation) < settings.CAPTCHA_IF_REP_LESS_THAN and not (user.is_superuser or user.is_staff): - spam_fields = call_all_handlers('create_anti_spam_field') - if spam_fields: - spam_fields = dict(spam_fields) - for name, field in spam_fields.items(): - self.fields[name] = field - - self._anti_spam_fields = spam_fields.keys() - else: - self._anti_spam_fields = [] - - if settings.WIKI_ON: - self.fields['wiki'] = WikiField(disabled=(answer.nis.wiki and not user.can_cancel_wiki(answer)), initial=answer.nis.wiki) - -class EditUserForm(forms.Form): - email = forms.EmailField(label=u'Email', help_text=_('this email does not have to be linked to gravatar'), required=True, max_length=75, widget=forms.TextInput(attrs={'size' : 35})) - realname = forms.CharField(label=_('Real name'), required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35})) - website = forms.URLField(label=_('Website'), required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35})) - city = forms.CharField(label=_('Location'), required=False, max_length=255, widget=forms.TextInput(attrs={'size' : 35})) - birthday = forms.DateField(label=_('Date of birth'), help_text=_('will not be shown, used to calculate age, format: YYYY-MM-DD'), required=False, widget=forms.TextInput(attrs={'size' : 35})) - about = forms.CharField(label=_('Profile'), required=False, widget=forms.Textarea(attrs={'cols' : 60})) - - def __init__(self, user, *args, **kwargs): - super(EditUserForm, self).__init__(*args, **kwargs) - if settings.EDITABLE_SCREEN_NAME: - self.fields['username'] = UserNameField(label=_('Screen name')) - self.fields['username'].initial = user.username - self.fields['username'].user_instance = user - self.fields['email'].initial = user.email - self.fields['realname'].initial = user.real_name - self.fields['website'].initial = user.website - self.fields['city'].initial = user.location - - if user.date_of_birth is not None: - self.fields['birthday'].initial = user.date_of_birth - else: - self.fields['birthday'].initial = '1990-01-01' - self.fields['about'].initial = user.about - self.user = user - - def clean_email(self): - if self.user.email != self.cleaned_data['email']: - if settings.EMAIL_UNIQUE == True: - if 'email' in self.cleaned_data: - from forum.models import User - try: - User.objects.get(email = self.cleaned_data['email']) - except User.DoesNotExist: - return self.cleaned_data['email'] - except User.MultipleObjectsReturned: - logging.error("Found multiple users sharing the same email: %s" % self.cleaned_data['email']) - - raise forms.ValidationError(_('this email has already been registered, please use another one')) - return self.cleaned_data['email'] - - -NOTIFICATION_CHOICES = ( - ('i', _('Instantly')), - #('d', _('Daily')), - #('w', _('Weekly')), - ('n', _('No notifications')), -) - -class SubscriptionSettingsForm(forms.ModelForm): - enable_notifications = forms.BooleanField(widget=forms.HiddenInput, required=False) - member_joins = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES) - new_question = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES) - new_question_watched_tags = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES) - subscribed_questions = forms.ChoiceField(widget=forms.RadioSelect, choices=NOTIFICATION_CHOICES) - - class Meta: - model = SubscriptionSettings - -class UserPreferencesForm(forms.Form): - sticky_sorts = forms.BooleanField(required=False, initial=False) - - - diff --git a/forum/modules/template_loader.py/forum/http_responses.py b/forum/modules/template_loader.py/forum/http_responses.py deleted file mode 100644 index 7fae3b6..0000000 --- a/forum/modules/template_loader.py/forum/http_responses.py +++ /dev/null @@ -1,27 +0,0 @@ -from django.http import HttpResponse -from django.template.loader import render_to_string -from django.template import RequestContext - -from forum import settings - -class HttpResponseServiceUnavailable(HttpResponse): - def __init__(self, message): - super(HttpResponseServiceUnavailable, self).__init__( - content=render_to_string('503.html', { - 'message': message, - 'app_logo': settings.APP_LOGO, - 'app_title': settings.APP_TITLE - }), status=503) - -class HttpResponseUnauthorized(HttpResponse): - def __init__(self, request): - if request.user.is_authenticated(): - super(HttpResponseUnauthorized, self).__init__( - content=render_to_string('403.html', context_instance=RequestContext(request)), - status=403 - ) - else: - super(HttpResponseUnauthorized, self).__init__( - content=render_to_string('401.html', context_instance=RequestContext(request)), - status=401 - ) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/management/__init__.py b/forum/modules/template_loader.py/forum/management/__init__.py deleted file mode 100644 index 629678e..0000000 --- a/forum/modules/template_loader.py/forum/management/__init__.py +++ /dev/null @@ -1,42 +0,0 @@ -from forum.modules import get_modules_script - -get_modules_script('management') - -from django.db.models.signals import post_syncdb -import forum.models - -def post_syncdb_callback(sender, **kwargs): - # Import the needed libraries to use the database and detect the - # DB engine/sever type being currently employed. - from django.db import connection, connections - - verbosity = int(kwargs["verbosity"]) - - # Get the DB engine being used for persistence for this app. - current_db_engine = connections.databases[connection.alias]['ENGINE'] - - # Make sure the updates are only executed for a MySQL DB. - if current_db_engine.find("mysql") > 0: - # Ok, mysql was found in the engine description. Go ahead - # and attempt to execute the alter table statements. - cursor = connection.cursor() - - # Pair the table names with the columns that need to be updated. - updatable_table_columns = { - "forum_tag": "name", - "auth_user": "username" - } - - # Update each column in turn. - for table_name, column_name in updatable_table_columns.iteritems(): - alter_table_statement = "ALTER TABLE %(table_name)s MODIFY %(column_name)s varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL;" % { - "table_name": table_name, "column_name": column_name} - log_status(verbosity,"Updating MySQL column with this statement: " + alter_table_statement) - cursor.execute(alter_table_statement) - -def log_status(verbosity, message): - if verbosity == 2: - print "[DEBUG] " + str(message) - -# Link the callback to the post_syncdb signal. -post_syncdb.connect(post_syncdb_callback, sender=forum.models) diff --git a/forum/modules/template_loader.py/forum/management/commands/__init__.py b/forum/modules/template_loader.py/forum/management/commands/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum/management/commands/base_command.py b/forum/modules/template_loader.py/forum/management/commands/base_command.py deleted file mode 100644 index 4a8a4b6..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/base_command.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -#encoding:utf-8 -#------------------------------------------------------------------------------- -# Name: Award badges command -# Purpose: This is a command file croning in background process regularly to -# query database and award badges for user's special acitivities. -# -# Author: Mike, Sailing -# -# Created: 22/01/2009 -# Copyright: (c) Mike 2009 -# Licence: GPL V2 -#------------------------------------------------------------------------------- - -from datetime import datetime, date -from django.core.management.base import NoArgsCommand -from django.db import connection -from django.shortcuts import get_object_or_404 -from django.contrib.contenttypes.models import ContentType - -from forum.models import * - -class BaseCommand(NoArgsCommand): - def update_activities_auditted(self, cursor, activity_ids): - # update processed rows to auditted - if len(activity_ids): - query = "UPDATE activity SET is_auditted = 1 WHERE id in (%s)"\ - % ','.join('%s' % item for item in activity_ids) - cursor.execute(query) - - - - - diff --git a/forum/modules/template_loader.py/forum/management/commands/checkinstall.py b/forum/modules/template_loader.py/forum/management/commands/checkinstall.py deleted file mode 100644 index 6e37d11..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/checkinstall.py +++ /dev/null @@ -1,85 +0,0 @@ -import re -import sys, traceback -from django.core.management.base import NoArgsCommand - -OK_MESSAGE = " Found %(what)s version %(version)s - OK" - -OLD_VERSION_ERROR = """ ERROR: Found %(what)s version %(version)s - you should upgrade it to at least %(minimum)s. - Package installers like apt-get or yum usually maintain old versions of libraries in the repositories.""" - -NOT_FOUND_ERROR = "ERROR: %(what)s was not found on your system." - -HOW_TO_INSTALL = """ Try easy_install %(what)s or download it from %(where)s""" - -IMPORT_ERROR_MESSAGE = """Importing %(what)s is throwing an exception. Here's the full stack trace:""" - -class Command(NoArgsCommand): - def handle_noargs(self, **options): - print "Checking dependencies:" - - try: - import html5lib - print " Found html5lib - OK" - except ImportError: - print NOT_FOUND_ERROR % dict(what='html5lib') - print HOW_TO_INSTALL % dict(what='html5lib', where='http://code.google.com/p/html5lib/') - except Exception, e: - print IMPORT_ERROR_MESSAGE % dict(what='html5lib') - traceback.print_exc(file=sys.stdout) - - try: - import markdown - version = int(re.findall('^\d+', markdown.version)[0]) - if version < 2: - print OLD_VERSION_ERROR % dict(what='markdown', version=markdown.version, minimum='2.0') - print HOW_TO_INSTALL % dict(what='markdown', where='http://www.freewisdom.org/projects/python-markdown/') - else: - print OK_MESSAGE % dict(what='markdown', version=markdown.version) - except ImportError: - print NOT_FOUND_ERROR % dict(what='markdown') - print HOW_TO_INSTALL % dict(what='markdown', where='http://www.freewisdom.org/projects/python-markdown/') - except Exception, e: - print IMPORT_ERROR_MESSAGE % dict(what='markdown') - traceback.print_exc(file=sys.stdout) - - try: - import south - version = re.findall('\d+', south.__version__) - - if int(version[1]) < 6 and int(version[0]) == 0: - print OLD_VERSION_ERROR % dict(what='south', version=south.__version__, minimum='0.6') - print HOW_TO_INSTALL % dict(what='south', where='http://south.aeracode.org/') - else: - print OK_MESSAGE % dict(what='south', version=south.__version__) - - - except ImportError: - print NOT_FOUND_ERROR % dict(what='south') - print HOW_TO_INSTALL % dict(what='south', where='http://south.aeracode.org/') - except Exception, e: - print IMPORT_ERROR_MESSAGE % dict(what='south') - traceback.print_exc(file=sys.stdout) - - - print "\n\nChecking database connection:" - - try: - from forum.models import User - User.objects.all().count() - print " Connection OK" - except Exception, e: - print "There seems to be a problem with your database: %s" % str(e) - - - - from django.conf import settings - - print "\n\nChecking important settings:" - - if not re.match('^https?:\/\/\w+', settings.APP_URL): - print " Your APP_URL does not seem to be a valid url. Please fill this setting with the URL of your OSQA installation" - else: - print " APP_URL - %s" % settings.APP_URL - print " APP_BASE_URL - %s" % settings.APP_BASE_URL - - diff --git a/forum/modules/template_loader.py/forum/management/commands/create_extended_user.py b/forum/modules/template_loader.py/forum/management/commands/create_extended_user.py deleted file mode 100644 index 4969ad2..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/create_extended_user.py +++ /dev/null @@ -1,285 +0,0 @@ - -PG_MIGRATION_QUERY = """ -SELECT id AS user_ptr_id, is_approved, email_isvalid, email_key, reputation, gravatar, gold, silver, bronze, questions_per_page, last_seen, real_name, website, location, date_of_birth, about, hide_ignored_questions, tag_filter_setting INTO forum_user FROM auth_user; - -ALTER TABLE forum_user - ADD CONSTRAINT forum_user_pkey PRIMARY KEY(user_ptr_id); - -ALTER TABLE forum_user - ADD CONSTRAINT forum_user_user_ptr_id_fkey FOREIGN KEY (user_ptr_id) - REFERENCES auth_user (id) MATCH SIMPLE - ON UPDATE NO ACTION ON DELETE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE forum_user - ADD CONSTRAINT forum_user_reputation_check CHECK (reputation >= 0); - -ALTER TABLE auth_user DROP COLUMN is_approved; -ALTER TABLE auth_user DROP COLUMN email_isvalid; -ALTER TABLE auth_user DROP COLUMN email_key; -ALTER TABLE auth_user DROP COLUMN reputation; -ALTER TABLE auth_user DROP COLUMN gravatar; -ALTER TABLE auth_user DROP COLUMN gold; -ALTER TABLE auth_user DROP COLUMN silver; -ALTER TABLE auth_user DROP COLUMN bronze; -ALTER TABLE auth_user DROP COLUMN questions_per_page; -ALTER TABLE auth_user DROP COLUMN last_seen; -ALTER TABLE auth_user DROP COLUMN real_name; -ALTER TABLE auth_user DROP COLUMN website; -ALTER TABLE auth_user DROP COLUMN "location"; -ALTER TABLE auth_user DROP COLUMN date_of_birth; -ALTER TABLE auth_user DROP COLUMN about; -ALTER TABLE auth_user DROP COLUMN hide_ignored_questions; -ALTER TABLE auth_user DROP COLUMN tag_filter_setting; - -""" - -PG_FKEYS_QUERY = """ - -ALTER TABLE "public"."activity" -DROP CONSTRAINT "activity_user_id_fkey", -ADD CONSTRAINT "activity_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."answer" -DROP CONSTRAINT "answer_author_id_fkey", -ADD CONSTRAINT "answer_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "answer_deleted_by_id_fkey", -ADD CONSTRAINT "answer_deleted_by_id_fkey" FOREIGN KEY ("deleted_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "answer_last_edited_by_id_fkey", -ADD CONSTRAINT "answer_last_edited_by_id_fkey" FOREIGN KEY ("last_edited_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "answer_locked_by_id_fkey", -ADD CONSTRAINT "answer_locked_by_id_fkey" FOREIGN KEY ("locked_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."answer_revision" -DROP CONSTRAINT "answer_revision_author_id_fkey", -ADD CONSTRAINT "answer_revision_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."award" -DROP CONSTRAINT "award_user_id_fkey", -ADD CONSTRAINT "award_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."comment" -DROP CONSTRAINT "comment_user_id_fkey", -ADD CONSTRAINT "comment_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."favorite_question" -DROP CONSTRAINT "favorite_question_user_id_fkey", -ADD CONSTRAINT "favorite_question_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."flagged_item" -DROP CONSTRAINT "flagged_item_user_id_fkey", -ADD CONSTRAINT "flagged_item_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_anonymousanswer" -DROP CONSTRAINT "forum_anonymousanswer_author_id_fkey", -ADD CONSTRAINT "forum_anonymousanswer_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_anonymousquestion" -DROP CONSTRAINT "forum_anonymousquestion_author_id_fkey", -ADD CONSTRAINT "forum_anonymousquestion_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_authkeyuserassociation" -DROP CONSTRAINT "forum_authkeyuserassociation_user_id_fkey", -ADD CONSTRAINT "forum_authkeyuserassociation_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_markedtag" -DROP CONSTRAINT "forum_markedtag_user_id_fkey", -ADD CONSTRAINT "forum_markedtag_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_questionsubscription" -DROP CONSTRAINT "forum_questionsubscription_user_id_fkey", -ADD CONSTRAINT "forum_questionsubscription_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_subscriptionsettings" -DROP CONSTRAINT "forum_subscriptionsettings_user_id_fkey", -ADD CONSTRAINT "forum_subscriptionsettings_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."forum_validationhash" -DROP CONSTRAINT "forum_validationhash_user_id_fkey", -ADD CONSTRAINT "forum_validationhash_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."question" -DROP CONSTRAINT "question_author_id_fkey", -ADD CONSTRAINT "question_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "question_closed_by_id_fkey", -ADD CONSTRAINT "question_closed_by_id_fkey" FOREIGN KEY ("closed_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "question_deleted_by_id_fkey", -ADD CONSTRAINT "question_deleted_by_id_fkey" FOREIGN KEY ("deleted_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "question_last_activity_by_id_fkey", -ADD CONSTRAINT "question_last_activity_by_id_fkey" FOREIGN KEY ("last_activity_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "question_last_edited_by_id_fkey", -ADD CONSTRAINT "question_last_edited_by_id_fkey" FOREIGN KEY ("last_edited_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "question_locked_by_id_fkey", -ADD CONSTRAINT "question_locked_by_id_fkey" FOREIGN KEY ("locked_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."question_followed_by" -DROP CONSTRAINT "question_followed_by_user_id_fkey", -ADD CONSTRAINT "question_followed_by_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."question_revision" -DROP CONSTRAINT "question_revision_author_id_fkey", -ADD CONSTRAINT "question_revision_author_id_fkey" FOREIGN KEY ("author_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."repute" -DROP CONSTRAINT "repute_user_id_fkey", -ADD CONSTRAINT "repute_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."tag" -DROP CONSTRAINT "tag_created_by_id_fkey", -ADD CONSTRAINT "tag_created_by_id_fkey" FOREIGN KEY ("created_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED, -DROP CONSTRAINT "tag_deleted_by_id_fkey", -ADD CONSTRAINT "tag_deleted_by_id_fkey" FOREIGN KEY ("deleted_by_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -ALTER TABLE "public"."vote" -DROP CONSTRAINT "vote_user_id_fkey", -ADD CONSTRAINT "vote_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "public"."forum_user" (user_ptr_id) ON DELETE NO ACTION ON UPDATE NO ACTION DEFERRABLE INITIALLY DEFERRED; - -""" - -MYSQL_MIGRATION_QUERY = """ -CREATE TABLE `forum_user` ( - `user_ptr_id` int(11) NOT NULL, - `is_approved` tinyint(1) NOT NULL, - `email_isvalid` tinyint(1) NOT NULL, - `email_key` varchar(32) DEFAULT NULL, - `reputation` int(10) unsigned NOT NULL, - `gravatar` varchar(32) NOT NULL, - `gold` smallint(6) NOT NULL, - `silver` smallint(6) NOT NULL, - `bronze` smallint(6) NOT NULL, - `questions_per_page` smallint(6) NOT NULL, - `last_seen` datetime NOT NULL, - `real_name` varchar(100) NOT NULL, - `website` varchar(200) NOT NULL, - `location` varchar(100) NOT NULL, - `date_of_birth` date DEFAULT NULL, - `about` longtext NOT NULL, - `hide_ignored_questions` tinyint(1) NOT NULL, - `tag_filter_setting` varchar(16) NOT NULL, - PRIMARY KEY (`user_ptr_id`), - CONSTRAINT `user_ptr_id_refs_id_71071d7` FOREIGN KEY (`user_ptr_id`) REFERENCES `auth_user` (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 -SELECT id AS user_ptr_id, is_approved, email_isvalid, email_key, reputation, gravatar, gold, silver, bronze, questions_per_page, - last_seen, real_name, website, location, date_of_birth, about, hide_ignored_questions, tag_filter_setting FROM auth_user; - -ALTER TABLE `auth_user` -DROP COLUMN `is_approved`, -DROP COLUMN `email_isvalid`, -DROP COLUMN `email_key`, -DROP COLUMN `reputation`, -DROP COLUMN `gravatar`, -DROP COLUMN `gold`, -DROP COLUMN `silver`, -DROP COLUMN `bronze`, -DROP COLUMN `questions_per_page`, -DROP COLUMN `last_seen`, -DROP COLUMN `real_name`, -DROP COLUMN `website`, -DROP COLUMN `location`, -DROP COLUMN `date_of_birth`, -DROP COLUMN `about`, -DROP COLUMN `hide_ignored_questions`, -DROP COLUMN `tag_filter_setting`; - -""" - -MYSQL_FKEYS_QUERY = """ - -ALTER TABLE `activity` DROP FOREIGN KEY `user_id_refs_id_47c8583f`; -ALTER TABLE `activity` ADD CONSTRAINT `user_id_refs_user_ptr_id_62ae9785` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `answer` DROP FOREIGN KEY `author_id_refs_id_192b0170`; -ALTER TABLE `answer` ADD CONSTRAINT `author_id_refs_user_ptr_id_9681994` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `answer` DROP FOREIGN KEY `deleted_by_id_refs_id_192b0170`; -ALTER TABLE `answer` ADD CONSTRAINT `deleted_by_id_refs_user_ptr_id_9681994` FOREIGN KEY (`deleted_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `answer` DROP FOREIGN KEY `last_edited_by_id_refs_id_192b0170`; -ALTER TABLE `answer` ADD CONSTRAINT `last_edited_by_id_refs_user_ptr_id_9681994` FOREIGN KEY (`last_edited_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `answer` DROP FOREIGN KEY `locked_by_id_refs_id_192b0170`; -ALTER TABLE `answer` ADD CONSTRAINT `locked_by_id_refs_user_ptr_id_9681994` FOREIGN KEY (`locked_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `answer_revision` DROP FOREIGN KEY `author_id_refs_id_3ccc055f`; -ALTER TABLE `answer_revision` ADD CONSTRAINT `author_id_refs_user_ptr_id_331f0123` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `award` DROP FOREIGN KEY `user_id_refs_id_2d83e9b6`; -ALTER TABLE `award` ADD CONSTRAINT `user_id_refs_user_ptr_id_1b2d0192` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `comment` DROP FOREIGN KEY `user_id_refs_id_6be725e8`; -ALTER TABLE `comment` ADD CONSTRAINT `user_id_refs_user_ptr_id_1ac2320c` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `favorite_question` DROP FOREIGN KEY `user_id_refs_id_52853822`; -ALTER TABLE `favorite_question` ADD CONSTRAINT `user_id_refs_user_ptr_id_3f419c1a` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `flagged_item` DROP FOREIGN KEY `user_id_refs_id_35e3c608`; -ALTER TABLE `flagged_item` ADD CONSTRAINT `user_id_refs_user_ptr_id_1ce834d4` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_anonymousanswer` DROP FOREIGN KEY `author_id_refs_id_13fb542e`; -ALTER TABLE `forum_anonymousanswer` ADD CONSTRAINT `author_id_refs_user_ptr_id_6b5b476a` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_anonymousquestion` DROP FOREIGN KEY `author_id_refs_id_7511a98a`; -ALTER TABLE `forum_anonymousquestion` ADD CONSTRAINT `author_id_refs_user_ptr_id_104edd52` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_authkeyuserassociation` DROP FOREIGN KEY `user_id_refs_id_2c2a6b01`; -ALTER TABLE `forum_authkeyuserassociation` ADD CONSTRAINT `user_id_refs_user_ptr_id_3f0ec0c3` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_markedtag` DROP FOREIGN KEY `user_id_refs_id_23b833bd`; -ALTER TABLE `forum_markedtag` ADD CONSTRAINT `user_id_refs_user_ptr_id_5a13f081` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_questionsubscription` DROP FOREIGN KEY `user_id_refs_id_18e1489`; -ALTER TABLE `forum_questionsubscription` ADD CONSTRAINT `user_id_refs_user_ptr_id_521b19ad` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_subscriptionsettings` DROP FOREIGN KEY `user_id_refs_id_35edacb4`; -ALTER TABLE `forum_subscriptionsettings` ADD CONSTRAINT `user_id_refs_user_ptr_id_1bc4fc70` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `forum_validationhash` DROP FOREIGN KEY `user_id_refs_id_2c2d214b`; -ALTER TABLE `forum_validationhash` ADD CONSTRAINT `user_id_refs_user_ptr_id_4e5b2d6f` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `question` DROP FOREIGN KEY `author_id_refs_id_56e9d00c`; -ALTER TABLE `question` ADD CONSTRAINT `author_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `question` DROP FOREIGN KEY `closed_by_id_refs_id_56e9d00c`; -ALTER TABLE `question` ADD CONSTRAINT `closed_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`closed_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `question` DROP FOREIGN KEY `deleted_by_id_refs_id_56e9d00c`; -ALTER TABLE `question` ADD CONSTRAINT `deleted_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`deleted_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `question` DROP FOREIGN KEY `last_activity_by_id_refs_id_56e9d00c`; -ALTER TABLE `question` ADD CONSTRAINT `last_activity_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`last_activity_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `question` DROP FOREIGN KEY `last_edited_by_id_refs_id_56e9d00c`; -ALTER TABLE `question` ADD CONSTRAINT `last_edited_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`last_edited_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `question` DROP FOREIGN KEY `locked_by_id_refs_id_56e9d00c`; -ALTER TABLE `question` ADD CONSTRAINT `locked_by_id_refs_user_ptr_id_60d41818` FOREIGN KEY (`locked_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `question_followed_by` DROP FOREIGN KEY `user_id_refs_id_6d30712d`; -ALTER TABLE `question_followed_by` ADD CONSTRAINT `user_id_refs_user_ptr_id_615e65af` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `question_revision` DROP FOREIGN KEY `author_id_refs_id_4f88024f`; -ALTER TABLE `question_revision` ADD CONSTRAINT `author_id_refs_user_ptr_id_42e3d48d` FOREIGN KEY (`author_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `repute` DROP FOREIGN KEY `user_id_refs_id_5a426cd`; -ALTER TABLE `repute` ADD CONSTRAINT `user_id_refs_user_ptr_id_5ea9540f` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `tag` DROP FOREIGN KEY `created_by_id_refs_id_47205d6d`; -ALTER TABLE `tag` ADD CONSTRAINT `created_by_id_refs_user_ptr_id_417f3449` FOREIGN KEY (`created_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; -ALTER TABLE `tag` DROP FOREIGN KEY `deleted_by_id_refs_id_47205d6d`; -ALTER TABLE `tag` ADD CONSTRAINT `deleted_by_id_refs_user_ptr_id_417f3449` FOREIGN KEY (`deleted_by_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -ALTER TABLE `vote` DROP FOREIGN KEY `user_id_refs_id_760a4df0`; -ALTER TABLE `vote` ADD CONSTRAINT `user_id_refs_user_ptr_id_18723e34` FOREIGN KEY (`user_id`) REFERENCES `forum_user` (`user_ptr_id`) ON DELETE RESTRICT ON UPDATE RESTRICT; - -""" - -from django.core.management.base import NoArgsCommand -from django.db import connection, transaction -from django.conf import settings - -class Command(NoArgsCommand): - def handle_noargs(self, **options): - if settings.DATABASE_ENGINE in ('postgresql_psycopg2', 'postgresql', ): - migration_query = PG_MIGRATION_QUERY - fkeys_query = PG_FKEYS_QUERY - elif settings.DATABASE_ENGINE == 'mysql': - migration_query = MYSQL_MIGRATION_QUERY - fkeys_query = MYSQL_FKEYS_QUERY - else: - raise Exception("Database backend not suported by this migration command") - - cursor = connection.cursor() - cursor.execute(migration_query) - cursor.execute(fkeys_query) - transaction.commit_unless_managed() \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/management/commands/create_subscriptions.py b/forum/modules/template_loader.py/forum/management/commands/create_subscriptions.py deleted file mode 100644 index b97c970..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/create_subscriptions.py +++ /dev/null @@ -1,15 +0,0 @@ -from forum.models import User, SubscriptionSettings, QuestionSubscription -from django.core.management.base import NoArgsCommand - -class Command(NoArgsCommand): - def handle_noargs(self, **options): - users = User.objects.all() - for u in users: - s = SubscriptionSettings(user=u) - s.save() - - user_questions = u.questions.all() - - for q in user_questions: - sub = QuestionSubscription(user=u, question=q) - sub.save() \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/management/commands/message_to_everyone.py b/forum/modules/template_loader.py/forum/management/commands/message_to_everyone.py deleted file mode 100644 index ea7b41a..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/message_to_everyone.py +++ /dev/null @@ -1,12 +0,0 @@ -from django.core.management.base import NoArgsCommand -from forum.models import User -import sys - -class Command(NoArgsCommand): - def handle_noargs(self, **options): - msg = None - if msg == None: - print 'to run this command, please first edit the file %s' % __file__ - sys.exit(1) - for u in User.objects.all(): - u.message_set.create(message = msg % u.username) diff --git a/forum/modules/template_loader.py/forum/management/commands/sample_command.py b/forum/modules/template_loader.py/forum/management/commands/sample_command.py deleted file mode 100644 index 55e6723..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/sample_command.py +++ /dev/null @@ -1,7 +0,0 @@ -from django.core.management.base import NoArgsCommand -from forum.models import Comment - -class Command(NoArgsCommand): - def handle_noargs(self, **options): - objs = Comment.objects.all() - print objs \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/management/commands/send_email_alerts.py b/forum/modules/template_loader.py/forum/management/commands/send_email_alerts.py deleted file mode 100644 index 85b83fa..0000000 --- a/forum/modules/template_loader.py/forum/management/commands/send_email_alerts.py +++ /dev/null @@ -1,114 +0,0 @@ -import datetime -from forum.models import * -from forum import settings -from django.db import models -from forum.utils.mail import send_template_email -from django.core.management.base import NoArgsCommand -from forum.settings.email import EMAIL_DIGEST_FLAG -from django.utils import translation -import logging - -SHOW_N_MORE_ACTIVE_NEW_MEMBERS = 5 -SUB_QUESTION_LIST_LENGTH = 5 -TRY_N_USER_TAGS = 5 - - - -class DigestQuestionsIndex(object): - def __init__(self, from_date): - self.from_date = from_date - - new_questions = Question.objects.filter_state(deleted=False).\ - filter(added_at__gt=from_date).\ - annotate(n_actions=models.Count('actions')).\ - annotate(child_count=models.Count('all_children')) - - hotness = lambda q: 3*q.child_count + q.n_actions - - for q in new_questions: - q.hotness=hotness(q) - - self.questions = sorted(new_questions, lambda q1, q2: q2.hotness - q1.hotness) - self.count = len(self.questions) - - def unseen_question(self, user, question): - try: - subscription = QuestionSubscription.objects.get(question=q, user=user) - except: - subscription = None - - return (not subscription) or subscription.last_view < q.last_activity_at - - def get_for_user(self, user): - user_tags = list(user.marked_tags.filter(user_selections__reason='good')) - - if len(user_tags) < TRY_N_USER_TAGS: - user_tags += list(Tag.objects.filter(models.Q(nodes__author=user) | models.Q(nodes__children__author=user)) \ - .annotate(user_tag_usage_count=models.Count('name')).order_by('-user_tag_usage_count')[:TRY_N_USER_TAGS - len(user_tags)]) - - user_tag_names = set([t.name for t in user_tags]) - - - subscriptions = user.subscriptions.filter(added_at__lt=self.from_date, last_activity_at__gt=models.F('questionsubscription__last_view') - ).order_by('-questionsubscription__last_view')[:SUB_QUESTION_LIST_LENGTH] - - unseen_questions = [q for q in self.questions if self.unseen_question(user, q)] - - interesting = [] - - for q in unseen_questions: - if len(set(q.tagname_list()) & user_tag_names): interesting.append(q) - - - may_help = [] - if len(interesting): - if len(interesting) > SUB_QUESTION_LIST_LENGTH: - may_help = interesting[SUB_QUESTION_LIST_LENGTH:][-SUB_QUESTION_LIST_LENGTH:] - interesting = interesting[:SUB_QUESTION_LIST_LENGTH] - else: - interesting = unseen_questions[:SUB_QUESTION_LIST_LENGTH] - - return {'interesting': interesting, 'may_help': may_help, 'subscriptions': subscriptions} - - - - -class Command(NoArgsCommand): - def handle_noargs(self, **options): - try: - translation.activate(settings.LANGUAGE_CODE) - except: - logging.error("Unable to set the locale in the send emails cron job") - - digest_control = EMAIL_DIGEST_FLAG.value - - if digest_control is None: - digest_control = { - 'LAST_DAILY': datetime.datetime.now() - datetime.timedelta(days=1), - 'LAST_WEEKLY': datetime.datetime.now() - datetime.timedelta(days=1), - } - - from_date = digest_control['LAST_DAILY'] - digest_control['LAST_DAILY'] = datetime.datetime.now() - - EMAIL_DIGEST_FLAG.set_value(digest_control) - - users = User.objects.filter(subscription_settings__enable_notifications=True, subscription_settings__send_digest=True) - new_members = User.objects.filter(is_active=True, date_joined__gt=from_date).annotate(n_actions=models.Count('actions')).order_by('-n_actions') - - new_member_count = new_members.count() - - if new_member_count >= SHOW_N_MORE_ACTIVE_NEW_MEMBERS: - new_members = new_members[:SHOW_N_MORE_ACTIVE_NEW_MEMBERS] - show_all_users = True - else: - show_all_users = False - - digest = DigestQuestionsIndex(from_date) - - if (not new_member_count) and (not digest.count): - return - - send_template_email(users, "notifications/digest.html", locals()) - - diff --git a/forum/modules/template_loader.py/forum/markdownext/__init__.py b/forum/modules/template_loader.py/forum/markdownext/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum/markdownext/mdx_limitedsyntax.py b/forum/modules/template_loader.py/forum/markdownext/mdx_limitedsyntax.py deleted file mode 100644 index 6a6dac5..0000000 --- a/forum/modules/template_loader.py/forum/markdownext/mdx_limitedsyntax.py +++ /dev/null @@ -1,11 +0,0 @@ -import markdown -from django.utils.safestring import mark_safe -from django.utils.html import strip_tags -from forum.utils.html import sanitize_html - -class LimitedSyntaxExtension(markdown.Extension): - def extendMarkdown(self, md, md_globals): - del md.inlinePatterns["image_reference"] - -def makeExtension(configs=None) : - return LimitedSyntaxExtension(configs=configs) diff --git a/forum/modules/template_loader.py/forum/markdownext/mdx_settingsparser.py b/forum/modules/template_loader.py/forum/markdownext/mdx_settingsparser.py deleted file mode 100644 index 9d0c69f..0000000 --- a/forum/modules/template_loader.py/forum/markdownext/mdx_settingsparser.py +++ /dev/null @@ -1,46 +0,0 @@ -from os import linesep -from csv import reader, QUOTE_NONE -import markdown -from markdown import Extension -from markdown.preprocessors import Preprocessor -import re - -from forum import settings - -class SettingsExtension(markdown.Extension): - def __init__(self, configs): - self.configs = {} # settings.REP_TO_VOTE_UP} - for key, value in configs: - self.config[key] = value - - # self.extendMarkdown(markdown.Markdown()., config) - - def reset(self): - pass - - def extendMarkdown(self, md, md_globals): - md.registerExtension(self) - self.parser = md.parser - md.preprocessors.add('MinRep', SettingsPre(self), '_begin') - -SETTING_RE = re.compile(r'\|[A-Z_]+\|') - -def setting_rep_callback(m): - setting_name = m.group(0).strip('|') - if hasattr(settings, setting_name): - return unicode(getattr(settings, setting_name)) - else: - return '' - - -class SettingsPre(Preprocessor): - def run(self, lines): - new_lines = [] - for line in lines: - new_lines.append(SETTING_RE.sub(setting_rep_callback, line)) - - return new_lines - - -def makeExtension(configs=None) : - return SettingsExtension(configs=configs) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/markdownext/mdx_urlize.py b/forum/modules/template_loader.py/forum/markdownext/mdx_urlize.py deleted file mode 100644 index 94fa516..0000000 --- a/forum/modules/template_loader.py/forum/markdownext/mdx_urlize.py +++ /dev/null @@ -1,44 +0,0 @@ -import markdown - -# Global Vars -URLIZE_RE = '(%s)' % '|'.join([ - r'<(?:f|ht)tps?://[^>]*>', - r'\b(?:f|ht)tps?://[^)<>\s]+[^.,)<>\s]', - r'\bwww\.[^)<>\s]+[^.,)<>\s]', - r'[^(<\s]+\.(?:com|net|org)\b', -]) - -class UrlizePattern(markdown.inlinepatterns.Pattern): - """ Return a link Element given an autolink (`http://example/com`). """ - def handleMatch(self, m): - url = m.group(2) - - if url.startswith('<'): - url = url[1:-1] - - text = url - - if not url.split('://')[0] in ('http','https','ftp'): - if '@' in url and not '/' in url: - url = 'mailto:' + url - else: - url = 'http://' + url - - el = markdown.etree.Element("a") - el.set('href', url) - el.text = markdown.AtomicString(text) - return el - -class UrlizeExtension(markdown.Extension): - """ Urlize Extension for Python-Markdown. """ - - def extendMarkdown(self, md, md_globals): - """ Replace autolink with UrlizePattern """ - md.inlinePatterns['autolink'] = UrlizePattern(URLIZE_RE, md) - -def makeExtension(configs=None): - return UrlizeExtension(configs=configs) - -if __name__ == "__main__": - import doctest - doctest.testmod() diff --git a/forum/modules/template_loader.py/forum/middleware/__init__.py b/forum/modules/template_loader.py/forum/middleware/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum/middleware/anon_user.py b/forum/modules/template_loader.py/forum/middleware/anon_user.py deleted file mode 100644 index 26c138c..0000000 --- a/forum/modules/template_loader.py/forum/middleware/anon_user.py +++ /dev/null @@ -1,35 +0,0 @@ -from django.http import HttpResponseRedirect -from forum.forms import get_next_url -from django.utils.translation import ugettext as _ -from forum.user_messages import create_message, get_and_delete_messages -from forum import settings -from django.core.urlresolvers import reverse -import logging - -class AnonymousMessageManager(object): - def __init__(self,request): - self.request = request - def create(self,message=''): - create_message(self.request,message) - def get_and_delete(self): - messages = get_and_delete_messages(self.request) - return messages - -def dummy_deepcopy(*arg): - """this is necessary to prevent deepcopy() on anonymous user object - that now contains reference to request, which cannot be deepcopied - """ - return None - -class ConnectToSessionMessagesMiddleware(object): - def process_request(self, request): - if not request.user.is_authenticated(): - request.user.__deepcopy__ = dummy_deepcopy #plug on deepcopy which may be called by django db "driver" - request.user.message_set = AnonymousMessageManager(request) #here request is linked to anon user - request.user.get_and_delete_messages = request.user.message_set.get_and_delete - - #also set the first greeting one time per session only - if 'greeting_set' not in request.session: - request.session['greeting_set'] = True - msg = _('First time here? Check out the FAQ!') % reverse('faq') - request.user.message_set.create(message=msg) diff --git a/forum/modules/template_loader.py/forum/middleware/cancel.py b/forum/modules/template_loader.py/forum/middleware/cancel.py deleted file mode 100644 index 2d78a17..0000000 --- a/forum/modules/template_loader.py/forum/middleware/cancel.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.http import HttpResponseRedirect -from forum.forms import get_next_url -import logging -class CancelActionMiddleware(object): - def process_view(self, request, view_func, view_args, view_kwargs): - if 'cancel' in request.REQUEST: - #todo use session messages for the anonymous users - try: - msg = getattr(view_func,'CANCEL_MESSAGE') - except AttributeError: - msg = 'action canceled' - request.user.message_set.create(message=msg) - return HttpResponseRedirect(get_next_url(request)) - else: - return None diff --git a/forum/modules/template_loader.py/forum/middleware/extended_user.py b/forum/modules/template_loader.py/forum/middleware/extended_user.py deleted file mode 100644 index dfe7163..0000000 --- a/forum/modules/template_loader.py/forum/middleware/extended_user.py +++ /dev/null @@ -1,27 +0,0 @@ -from django.contrib.auth.middleware import AuthenticationMiddleware -from django.contrib.auth import logout -from forum.models.user import AnonymousUser -from forum.views.auth import forward_suspended_user -import logging - -class ExtendedUser(AuthenticationMiddleware): - def process_request(self, request): - super(ExtendedUser, self).process_request(request) - if request.user.is_authenticated(): - try: - request.user = request.user.user - - if request.user.is_suspended(): - user = request.user - logout(request) - return forward_suspended_user(request, user) - - return None - except Exception, e: - import traceback - logging.error("Unable to convert auth_user %s to forum_user: \n%s" % ( - request.user.id, traceback.format_exc() - )) - - request.user = AnonymousUser() - return None \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/middleware/request_utils.py b/forum/modules/template_loader.py/forum/middleware/request_utils.py deleted file mode 100644 index bbccbf7..0000000 --- a/forum/modules/template_loader.py/forum/middleware/request_utils.py +++ /dev/null @@ -1,18 +0,0 @@ -from forum.settings import MAINTAINANCE_MODE, APP_LOGO, APP_TITLE - -from forum.http_responses import HttpResponseServiceUnavailable - -class RequestUtils(object): - def process_request(self, request): - if MAINTAINANCE_MODE.value is not None and isinstance(MAINTAINANCE_MODE.value.get('allow_ips', None), list): - ip = request.META['REMOTE_ADDR'] - - if not ip in MAINTAINANCE_MODE.value['allow_ips']: - return HttpResponseServiceUnavailable(MAINTAINANCE_MODE.value.get('message', '')) - - if request.session.get('redirect_POST_data', None): - request.POST = request.session.pop('redirect_POST_data') - request.META['REQUEST_METHOD'] = "POST" - - self.request = request - return None \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/migrations/0001_initial.py b/forum/modules/template_loader.py/forum/migrations/0001_initial.py deleted file mode 100644 index 5dbd4a2..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0001_initial.py +++ /dev/null @@ -1,764 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'User' - db.create_table('forum_user', ( - ('website', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)), - ('user_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, primary_key=True)), - ('hide_ignored_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('is_approved', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('email_isvalid', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('real_name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), - ('about', self.gf('django.db.models.fields.TextField')(blank=True)), - ('silver', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('date_of_birth', self.gf('django.db.models.fields.DateField')(null=True, blank=True)), - ('reputation', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)), - ('gravatar', self.gf('django.db.models.fields.CharField')(max_length=32)), - ('location', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)), - ('tag_filter_setting', self.gf('django.db.models.fields.CharField')(default='ignored', max_length=16)), - ('gold', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('last_seen', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('email_key', self.gf('django.db.models.fields.CharField')(max_length=32, null=True)), - ('bronze', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('questions_per_page', self.gf('django.db.models.fields.SmallIntegerField')(default=10)), - )) - db.send_create_signal('forum', ['User']) - - # Adding model 'Activity' - db.create_table(u'activity', ( - ('is_auditted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])), - ('active_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('activity_type', self.gf('django.db.models.fields.SmallIntegerField')()), - )) - db.send_create_signal('forum', ['Activity']) - - # Adding model 'SubscriptionSettings' - db.create_table('forum_subscriptionsettings', ( - ('questions_asked', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('questions_viewed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('notify_comments', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('new_question', self.gf('django.db.models.fields.CharField')(default='d', max_length=1)), - ('all_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('new_question_watched_tags', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)), - ('questions_answered', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('notify_comments_own_post', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('questions_commented', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('subscribed_questions', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)), - ('notify_reply_to_comments', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('member_joins', self.gf('django.db.models.fields.CharField')(default='n', max_length=1)), - ('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='subscription_settings', unique=True, to=orm['forum.User'])), - ('notify_answers', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('enable_notifications', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('all_questions_watched_tags', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('notify_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - )) - db.send_create_signal('forum', ['SubscriptionSettings']) - - # Adding model 'ValidationHash' - db.create_table('forum_validationhash', ( - ('hash_code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)), - ('seed', self.gf('django.db.models.fields.CharField')(max_length=12)), - ('expiration', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 7, 10, 36, 23, 812000))), - ('type', self.gf('django.db.models.fields.CharField')(max_length=12)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['ValidationHash']) - - # Adding unique constraint on 'ValidationHash', fields ['user', 'type'] - db.create_unique('forum_validationhash', ['user_id', 'type']) - - # Adding model 'AuthKeyUserAssociation' - db.create_table('forum_authkeyuserassociation', ( - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='auth_keys', to=orm['forum.User'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)), - ('provider', self.gf('django.db.models.fields.CharField')(max_length=64)), - )) - db.send_create_signal('forum', ['AuthKeyUserAssociation']) - - # Adding model 'Vote' - db.create_table(u'vote', ( - ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()), - ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', to=orm['forum.User'])), - ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])), - ('vote', self.gf('django.db.models.fields.SmallIntegerField')()), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['Vote']) - - # Adding unique constraint on 'Vote', fields ['content_type', 'object_id', 'user'] - db.create_unique(u'vote', ['content_type_id', 'object_id', 'user_id']) - - # Adding model 'FlaggedItem' - db.create_table(u'flagged_item', ( - ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()), - ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['FlaggedItem']) - - # Adding unique constraint on 'FlaggedItem', fields ['content_type', 'object_id', 'user'] - db.create_unique(u'flagged_item', ['content_type_id', 'object_id', 'user_id']) - - # Adding model 'Comment' - db.create_table(u'comment', ( - ('comment', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['Comment']) - - # Adding model 'Tag' - db.create_table(u'tag', ( - ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)), - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('created_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='created_tags', to=orm['forum.User'])), - ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_tags', null=True, to=orm['forum.User'])), - ('used_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['Tag']) - - # Adding model 'MarkedTag' - db.create_table('forum_markedtag', ( - ('reason', self.gf('django.db.models.fields.CharField')(max_length=16)), - ('tag', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_selections', to=orm['forum.Tag'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='tag_selections', to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['MarkedTag']) - - # Adding model 'Question' - db.create_table(u'question', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('answer_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('closed_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('last_activity_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_active_in_questions', to=orm['forum.User'])), - ('view_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('score', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questions', to=orm['forum.User'])), - ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('html', self.gf('django.db.models.fields.TextField')()), - ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('closed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_questions', null=True, to=orm['forum.User'])), - ('favourite_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)), - ('answer_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('last_activity_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('closed_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='closed_questions', null=True, to=orm['forum.User'])), - ('close_reason', self.gf('django.db.models.fields.SmallIntegerField')(null=True, blank=True)), - ('locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('locked_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='locked_questions', null=True, to=orm['forum.User'])), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_questions', null=True, to=orm['forum.User'])), - ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - )) - db.send_create_signal('forum', ['Question']) - - # Adding M2M table for field followed_by on 'Question' - db.create_table(u'question_followed_by', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('question', models.ForeignKey(orm['forum.question'], null=False)), - ('user', models.ForeignKey(orm['forum.user'], null=False)) - )) - db.create_unique(u'question_followed_by', ['question_id', 'user_id']) - - # Adding M2M table for field tags on 'Question' - db.create_table(u'question_tags', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('question', models.ForeignKey(orm['forum.question'], null=False)), - ('tag', models.ForeignKey(orm['forum.tag'], null=False)) - )) - db.create_unique(u'question_tags', ['question_id', 'tag_id']) - - # Adding model 'QuestionSubscription' - db.create_table('forum_questionsubscription', ( - ('last_view', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 6, 10, 36, 23, 725000))), - ('auto_subscription', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['QuestionSubscription']) - - # Adding model 'FavoriteQuestion' - db.create_table(u'favorite_question', ( - ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_favorite_questions', to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['FavoriteQuestion']) - - # Adding model 'QuestionRevision' - db.create_table(u'question_revision', ( - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questionrevisions', to=orm['forum.User'])), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('text', self.gf('django.db.models.fields.TextField')()), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Question'])), - ('revised_at', self.gf('django.db.models.fields.DateTimeField')()), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()), - )) - db.send_create_signal('forum', ['QuestionRevision']) - - # Adding model 'AnonymousQuestion' - db.create_table('forum_anonymousquestion', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('text', self.gf('django.db.models.fields.TextField')()), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)), - ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['AnonymousQuestion']) - - # Adding model 'Answer' - db.create_table(u'answer', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('score', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers', to=orm['forum.User'])), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answers', to=orm['forum.Question'])), - ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('html', self.gf('django.db.models.fields.TextField')()), - ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_answers', null=True, to=orm['forum.User'])), - ('accepted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('locked_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='locked_answers', null=True, to=orm['forum.User'])), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_answers', null=True, to=orm['forum.User'])), - ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - )) - db.send_create_signal('forum', ['Answer']) - - # Adding model 'AnswerRevision' - db.create_table(u'answer_revision', ( - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answerrevisions', to=orm['forum.User'])), - ('text', self.gf('django.db.models.fields.TextField')()), - ('revised_at', self.gf('django.db.models.fields.DateTimeField')()), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)), - ('answer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Answer'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()), - )) - db.send_create_signal('forum', ['AnswerRevision']) - - # Adding model 'AnonymousAnswer' - db.create_table('forum_anonymousanswer', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)), - ('text', self.gf('django.db.models.fields.TextField')()), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_answers', to=orm['forum.Question'])), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)), - ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['AnonymousAnswer']) - - # Adding model 'Badge' - db.create_table(u'badge', ( - ('multiple', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('description', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('awarded_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('type', self.gf('django.db.models.fields.SmallIntegerField')()), - ('slug', self.gf('django.db.models.fields.SlugField')(db_index=True, max_length=50, blank=True)), - ('name', self.gf('django.db.models.fields.CharField')(max_length=50)), - )) - db.send_create_signal('forum', ['Badge']) - - # Adding unique constraint on 'Badge', fields ['name', 'type'] - db.create_unique(u'badge', ['name', 'type']) - - # Adding model 'Award' - db.create_table(u'award', ( - ('awarded_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('notified', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='awards', to=orm['forum.User'])), - ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])), - ('badge', self.gf('django.db.models.fields.related.ForeignKey')(related_name='award_badge', to=orm['forum.Badge'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['Award']) - - # Adding unique constraint on 'Award', fields ['content_type', 'object_id', 'user', 'badge'] - db.create_unique(u'award', ['content_type_id', 'object_id', 'user_id', 'badge_id']) - - # Adding model 'Repute' - db.create_table(u'repute', ( - ('positive', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])), - ('negative', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('reputation_type', self.gf('django.db.models.fields.SmallIntegerField')()), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - ('reputed_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('reputation', self.gf('django.db.models.fields.IntegerField')(default=1)), - )) - db.send_create_signal('forum', ['Repute']) - - # Adding model 'KeyValue' - db.create_table('forum_keyvalue', ( - ('value', self.gf('forum.models.utils.PickledObjectField')()), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)), - )) - db.send_create_signal('forum', ['KeyValue']) - - - def backwards(self, orm): - - # Deleting model 'User' - db.delete_table('forum_user') - - # Deleting model 'Activity' - db.delete_table(u'activity') - - # Deleting model 'SubscriptionSettings' - db.delete_table('forum_subscriptionsettings') - - # Deleting model 'ValidationHash' - db.delete_table('forum_validationhash') - - # Removing unique constraint on 'ValidationHash', fields ['user', 'type'] - db.delete_unique('forum_validationhash', ['user_id', 'type']) - - # Deleting model 'AuthKeyUserAssociation' - db.delete_table('forum_authkeyuserassociation') - - # Deleting model 'Vote' - db.delete_table(u'vote') - - # Removing unique constraint on 'Vote', fields ['content_type', 'object_id', 'user'] - db.delete_unique(u'vote', ['content_type_id', 'object_id', 'user_id']) - - # Deleting model 'FlaggedItem' - db.delete_table(u'flagged_item') - - # Removing unique constraint on 'FlaggedItem', fields ['content_type', 'object_id', 'user'] - db.delete_unique(u'flagged_item', ['content_type_id', 'object_id', 'user_id']) - - # Deleting model 'Comment' - db.delete_table(u'comment') - - # Deleting model 'Tag' - db.delete_table(u'tag') - - # Deleting model 'MarkedTag' - db.delete_table('forum_markedtag') - - # Deleting model 'Question' - db.delete_table(u'question') - - # Removing M2M table for field followed_by on 'Question' - db.delete_table('question_followed_by') - - # Removing M2M table for field tags on 'Question' - db.delete_table('question_tags') - - # Deleting model 'QuestionSubscription' - db.delete_table('forum_questionsubscription') - - # Deleting model 'FavoriteQuestion' - db.delete_table(u'favorite_question') - - # Deleting model 'QuestionRevision' - db.delete_table(u'question_revision') - - # Deleting model 'AnonymousQuestion' - db.delete_table('forum_anonymousquestion') - - # Deleting model 'Answer' - db.delete_table(u'answer') - - # Deleting model 'AnswerRevision' - db.delete_table(u'answer_revision') - - # Deleting model 'AnonymousAnswer' - db.delete_table('forum_anonymousanswer') - - # Deleting model 'Badge' - db.delete_table(u'badge') - - # Removing unique constraint on 'Badge', fields ['name', 'type'] - db.delete_unique(u'badge', ['name', 'type']) - - # Deleting model 'Award' - db.delete_table(u'award') - - # Removing unique constraint on 'Award', fields ['content_type', 'object_id', 'user', 'badge'] - db.delete_unique(u'award', ['content_type_id', 'object_id', 'user_id', 'badge_id']) - - # Deleting model 'Repute' - db.delete_table(u'repute') - - # Deleting model 'KeyValue' - db.delete_table('forum_keyvalue') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'locked_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'locked_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'locked_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user'),)", 'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'locked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'locked_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'locked_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'locked_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 10, 36, 23, 725000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'gravatar': ('django.db.models.fields.CharField', [], {'max_length': '32'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'tag_filter_setting': ('django.db.models.fields.CharField', [], {'default': "'ignored'", 'max_length': '16'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 10, 36, 23, 863000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user'),)", 'object_name': 'Vote', 'db_table': "u'vote'"}, - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0002_auto__add_likedcomment__del_field_repute_positive__del_field_repute_ne.py b/forum/modules/template_loader.py/forum/migrations/0002_auto__add_likedcomment__del_field_repute_positive__del_field_repute_ne.py deleted file mode 100644 index 36ff8e2..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0002_auto__add_likedcomment__del_field_repute_positive__del_field_repute_ne.py +++ /dev/null @@ -1,481 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'LikedComment' - db.create_table('forum_likedcomment', ( - ('comment', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Comment'])), - ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['LikedComment']) - - # Adding field 'Repute.value' - db.add_column(u'repute', 'value', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False) - - # Adding field 'Repute.user_previous_rep' - db.add_column(u'repute', 'user_previous_rep', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Vote.canceled' - db.add_column(u'vote', 'canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Removing unique constraint on 'Vote', fields ['object_id', 'content_type', 'user'] - db.delete_unique(u'vote', ['object_id', 'content_type_id', 'user_id']) - - # Adding field 'Comment.deleted' - db.add_column(u'comment', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Comment.deleted_by' - db.add_column(u'comment', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_comments', null=True, to=orm['forum.User']), keep_default=False) - - # Adding field 'Comment.score' - db.add_column(u'comment', 'score', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Comment.deleted_at' - db.add_column(u'comment', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Deleting field 'Answer.locked_at' - db.delete_column(u'answer', 'locked_at') - - # Deleting field 'Answer.locked' - db.delete_column(u'answer', 'locked') - - # Deleting field 'Answer.locked_by' - db.delete_column(u'answer', 'locked_by_id') - - # Adding field 'Answer.accepted_by' - db.add_column(u'answer', 'accepted_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True), keep_default=False) - - # Adding field 'FlaggedItem.canceled' - db.add_column(u'flagged_item', 'canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'FlaggedItem.reason' - db.add_column(u'flagged_item', 'reason', self.gf('django.db.models.fields.CharField')(max_length=300, null=True), keep_default=False) - - # Removing unique constraint on 'FlaggedItem', fields ['object_id', 'content_type', 'user'] - db.delete_unique(u'flagged_item', ['object_id', 'content_type_id', 'user_id']) - - # Adding unique constraint on 'FavoriteQuestion', fields ['question', 'user'] - db.create_unique(u'favorite_question', ['question_id', 'user_id']) - - # Deleting field 'User.gravatar' - db.delete_column('forum_user', 'gravatar') - - # Deleting field 'User.tag_filter_setting' - db.delete_column('forum_user', 'tag_filter_setting') - - # Deleting field 'Question.locked_at' - db.delete_column(u'question', 'locked_at') - - # Deleting field 'Question.locked' - db.delete_column(u'question', 'locked') - - # Deleting field 'Question.locked_by' - db.delete_column(u'question', 'locked_by_id') - - - def backwards(self, orm): - - # Deleting model 'LikedComment' - db.delete_table('forum_likedcomment') - - # Deleting field 'Repute.value' - db.delete_column(u'repute', 'value') - - # Deleting field 'Repute.user_previous_rep' - db.delete_column(u'repute', 'user_previous_rep') - - # Deleting field 'Vote.canceled' - db.delete_column(u'vote', 'canceled') - - # Adding unique constraint on 'Vote', fields ['object_id', 'content_type', 'user'] - db.create_unique(u'vote', ['object_id', 'content_type_id', 'user_id']) - - # Deleting field 'Comment.deleted' - db.delete_column(u'comment', 'deleted') - - # Deleting field 'Comment.deleted_by' - db.delete_column(u'comment', 'deleted_by_id') - - # Deleting field 'Comment.score' - db.delete_column(u'comment', 'score') - - # Deleting field 'Comment.deleted_at' - db.delete_column(u'comment', 'deleted_at') - - # Adding field 'Answer.locked_at' - db.add_column(u'answer', 'locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Adding field 'Answer.locked' - db.add_column(u'answer', 'locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Answer.locked_by' - db.add_column(u'answer', 'locked_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='locked_answers', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Deleting field 'Answer.accepted_by' - db.delete_column(u'answer', 'accepted_by_id') - - # Deleting field 'FlaggedItem.canceled' - db.delete_column(u'flagged_item', 'canceled') - - # Deleting field 'FlaggedItem.reason' - db.delete_column(u'flagged_item', 'reason') - - # Adding unique constraint on 'FlaggedItem', fields ['object_id', 'content_type', 'user'] - db.create_unique(u'flagged_item', ['object_id', 'content_type_id', 'user_id']) - - # Removing unique constraint on 'FavoriteQuestion', fields ['question', 'user'] - db.delete_unique(u'favorite_question', ['question_id', 'user_id']) - - # Adding field 'User.gravatar' - db.add_column('forum_user', 'gravatar', self.gf('django.db.models.fields.CharField')(default='', max_length=32), keep_default=False) - - # Adding field 'User.tag_filter_setting' - db.add_column('forum_user', 'tag_filter_setting', self.gf('django.db.models.fields.CharField')(default='ignored', max_length=16), keep_default=False) - - # Adding field 'Question.locked_at' - db.add_column(u'question', 'locked_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Adding field 'Question.locked' - db.add_column(u'question', 'locked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Question.locked_by' - db.add_column(u'question', 'locked_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='locked_questions', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 11, 44, 616000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 11, 52, 402000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0003_repute_changes.py b/forum/modules/template_loader.py/forum/migrations/0003_repute_changes.py deleted file mode 100644 index cdcbd22..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0003_repute_changes.py +++ /dev/null @@ -1,355 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - def forwards(self, orm): - for r in orm.Repute.objects.all(): - r.value = r.positive + r.negative - r.user_previous_rep = r.reputation - r.value - r.save() - - - def backwards(self, orm): - for r in orm.Repute.objects.all(): - if r.value > 0: - r.positive = r.value - r.negative = 0 - else: - r.positive = 0 - r.negative = r.value - - r.reputation = r.user_previous_rep + r.value - r.save() - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 30, 3, 497000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'negative': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'positive': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '1'}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 30, 3, 573000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0004_auto__del_field_repute_negative__del_field_repute_positive__del_field_.py b/forum/modules/template_loader.py/forum/migrations/0004_auto__del_field_repute_negative__del_field_repute_positive__del_field_.py deleted file mode 100644 index 5faa7b0..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0004_auto__del_field_repute_negative__del_field_repute_positive__del_field_.py +++ /dev/null @@ -1,357 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'Repute.negative' - db.delete_column(u'repute', 'negative') - - # Deleting field 'Repute.positive' - db.delete_column(u'repute', 'positive') - - # Deleting field 'Repute.reputation' - db.delete_column(u'repute', 'reputation') - - - def backwards(self, orm): - - # Adding field 'Repute.negative' - db.add_column(u'repute', 'negative', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False) - - # Adding field 'Repute.positive' - db.add_column(u'repute', 'positive', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False) - - # Adding field 'Repute.reputation' - db.add_column(u'repute', 'reputation', self.gf('django.db.models.fields.IntegerField')(default=1), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 40, 26, 816000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 40, 27, 72000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0005_fill_accepted_by_field.py b/forum/modules/template_loader.py/forum/migrations/0005_fill_accepted_by_field.py deleted file mode 100644 index cc7d0b0..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0005_fill_accepted_by_field.py +++ /dev/null @@ -1,341 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - def forwards(self, orm): - for a in orm.Answer.objects.filter(accepted=True): - a.accepted_by = a.question.author - a.save() - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 6, 11, 46, 14, 452000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 7, 11, 46, 14, 538000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0006_auto__add_node__add_field_vote_node__add_field_comment_node__add_field.py b/forum/modules/template_loader.py/forum/migrations/0006_auto__add_node__add_field_vote_node__add_field_comment_node__add_field.py deleted file mode 100644 index bee4368..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0006_auto__add_node__add_field_vote_node__add_field_comment_node__add_field.py +++ /dev/null @@ -1,433 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'Node' - db.create_table('forum_node', ( - ('body', self.gf('django.db.models.fields.TextField')()), - ('vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('parent', self.gf('django.db.models.fields.related.ForeignKey')(related_name='childs', null=True, to=orm['forum.Node'])), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='nodes', to=orm['forum.User'])), - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='deleted_nodes', null=True, to=orm['forum.User'])), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('node_type', self.gf('django.db.models.fields.CharField')(default='node', max_length=16)), - ('score', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='last_edited_nodes', null=True, to=orm['forum.User'])), - ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - )) - db.send_create_signal('forum', ['Node']) - - # Adding M2M table for field tags on 'Node' - db.create_table('forum_node_tags', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('node', models.ForeignKey(orm['forum.node'], null=False)), - ('tag', models.ForeignKey(orm['forum.tag'], null=False)) - )) - db.create_unique('forum_node_tags', ['node_id', 'tag_id']) - - # Adding field 'Vote.node' - db.add_column(u'vote', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', null=True, to=orm['forum.Node']), keep_default=False) - - # Adding field 'Comment.node' - db.add_column(u'comment', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', null=True, to=orm['forum.Node']), keep_default=False) - - # Adding field 'Answer.node_ptr' - db.add_column(u'answer', 'node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True), keep_default=False) - - # Adding field 'FlaggedItem.node' - db.add_column(u'flagged_item', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', null=True, to=orm['forum.Node']), keep_default=False) - - # Adding field 'Question.node_ptr' - db.add_column(u'question', 'node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True), keep_default=False) - - - def backwards(self, orm): - - # Deleting model 'Node' - db.delete_table('forum_node') - - # Removing M2M table for field tags on 'Node' - db.delete_table('forum_node_tags') - - # Deleting field 'Vote.node' - db.delete_column(u'vote', 'node_id') - - # Deleting field 'Comment.node' - db.delete_column(u'comment', 'node_id') - - # Deleting field 'Answer.node_ptr' - db.delete_column(u'answer', 'node_ptr_id') - - # Deleting field 'FlaggedItem.node' - db.delete_column(u'flagged_item', 'node_id') - - # Deleting field 'Question.node_ptr' - db.delete_column(u'question', 'node_ptr_id') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 1, 28, 41, 733000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 1, 28, 41, 976000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0007_q_and_a_to_node.py b/forum/modules/template_loader.py/forum/migrations/0007_q_and_a_to_node.py deleted file mode 100644 index 0e283e0..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0007_q_and_a_to_node.py +++ /dev/null @@ -1,549 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - #Converting questions - question_count = orm.Question.objects.all().count() - print "\nConverting %d questions:" % question_count - progress = ProgressBar(question_count) - - question_id_map = {} - - for q in orm.Question.objects.order_by('id'): - node = orm.Node( - node_type='question', - author=q.author, - added_at=q.added_at, - score=q.score, - vote_up_count=q.vote_up_count, - vote_down_count=q.vote_down_count, - offensive_flag_count=q.offensive_flag_count, - last_edited_at=q.last_edited_at, - last_edited_by=q.last_edited_by, - title=q.title, - body=q.html, - deleted=q.deleted, - deleted_by=q.deleted_by, - deleted_at=q.deleted_at, - tagnames=q.tagnames, - comment_count=q.comment_count, - ) - - node.save() - q.node_ptr = node - q.save() - node.tags = q.tags.all() - - question_id_map[q.id] = node - progress.update() - - print "\n...done\n" - - #Converting answers - answer_count = orm.Answer.objects.all().count() - print "Converting %d answers:" % answer_count - progress = ProgressBar(answer_count) - - answer_id_map = {} - - for a in orm.Answer.objects.order_by('id'): - node = orm.Node( - node_type='answer', - parent=question_id_map[a.question.id], - author=a.author, - added_at=a.added_at, - score=a.score, - vote_up_count=a.vote_up_count, - vote_down_count=a.vote_down_count, - offensive_flag_count=a.offensive_flag_count, - last_edited_at=a.last_edited_at, - last_edited_by=a.last_edited_by, - body=a.html, - deleted=a.deleted, - deleted_by=a.deleted_by, - deleted_at=a.deleted_at, - comment_count=a.comment_count, - ) - - node.save() - a.node_ptr = node - a.save() - answer_id_map[a.id] = node - progress.update() - - print "\n...done\n" - - ctypes = dict([(ct.name, ct.id) for ct in orm['contenttypes.ContentType'].objects.all()]) - - #Converting votes - vote_count = orm.Vote.objects.all().count() - print "Converting %d vote references:" % vote_count - progress = ProgressBar(vote_count) - orfan_count = 0 - - for v in orm.Vote.objects.all(): - node = (v.content_type.id == ctypes['question']) and question_id_map.get(v.object_id, None) \ - or answer_id_map.get(v.object_id, None) - - if node: - v.node = node - v.save() - else: - v.delete() - orfan_count += 1 - - progress.update() - - if orfan_count: - print "Deleted %d orfan votes" - - print "\n...done\n" - - #Converting flags - flag_count = orm.FlaggedItem.objects.all().count() - print "Converting %d flag references:" % flag_count - progress = ProgressBar(flag_count) - orfan_count = 0 - - for f in orm.FlaggedItem.objects.all(): - node = (f.content_type.id == ctypes['question']) and question_id_map.get(f.object_id, None) \ - or answer_id_map.get(f.object_id, None) - - if node: - f.node = node - f.save() - else: - f.delete() - orfan_count += 1 - - progress.update() - - if orfan_count: - print "Deleted %d orfan votes" - - print "\n...done\n" - - #Converting comments - comment_count = orm.Comment.objects.all().count() - print "Converting %d comment references:" % comment_count - progress = ProgressBar(comment_count) - orfan_count = 0 - - for c in orm.Comment.objects.all(): - node = (c.content_type.id == ctypes['question']) and question_id_map.get(c.object_id, None) \ - or answer_id_map.get(c.object_id, None) - - if node: - c.node = node - c.save() - else: - c.delete() - orfan_count += 1 - - progress.update() - - if orfan_count: - print "Deleted %d orfan comments" - - print "\n...done\n" - - - #Converting awards - awards = orm.Award.objects.filter(content_type__id__in=(ctypes['question'], ctypes['answer'])) - award_count = awards.count() - print "Converting %d award references:" % award_count - progress = ProgressBar(award_count) - - for a in awards: - node = (a.content_type.id == ctypes['question']) and question_id_map.get(a.object_id, None) \ - or answer_id_map.get(a.object_id, None) - - if node: - a.object_id = node.id - a.save() - - progress.update() - - print "\n...done\n" - - - #Converting activity - activities = orm.Activity.objects.filter(content_type__id__in=(ctypes['question'], ctypes['answer'])) - activity_count = activities.count() - print "Converting %d activity references:" % activity_count - progress = ProgressBar(activity_count) - - for a in activities: - node = (a.content_type.id == ctypes['question']) and question_id_map.get(a.object_id, None) \ - or answer_id_map.get(a.object_id, None) - - if node: - a.object_id = node.id - a.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 1, 29, 43, 727000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 1, 29, 43, 815000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0008_auto__add_noderevision__del_field_vote_object_id__del_field_vote_conte.py b/forum/modules/template_loader.py/forum/migrations/0008_auto__add_noderevision__del_field_vote_object_id__del_field_vote_conte.py deleted file mode 100644 index bb94406..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0008_auto__add_noderevision__del_field_vote_object_id__del_field_vote_conte.py +++ /dev/null @@ -1,424 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'NodeRevision' - db.create_table('forum_noderevision', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Node'])), - ('body', self.gf('django.db.models.fields.TextField')()), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='noderevisions', to=orm['forum.User'])), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('revised_at', self.gf('django.db.models.fields.DateTimeField')()), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()), - )) - db.send_create_signal('forum', ['NodeRevision']) - - # Deleting field 'Vote.object_id' - db.delete_column(u'vote', 'object_id') - - # Deleting field 'Vote.content_type' - db.delete_column(u'vote', 'content_type_id') - - # Deleting field 'Comment.object_id' - db.delete_column(u'comment', 'object_id') - - # Deleting field 'Comment.content_type' - db.delete_column(u'comment', 'content_type_id') - - # Deleting field 'FlaggedItem.object_id' - db.delete_column(u'flagged_item', 'object_id') - - # Deleting field 'FlaggedItem.content_type' - db.delete_column(u'flagged_item', 'content_type_id') - - - def backwards(self, orm): - - # Deleting model 'NodeRevision' - db.delete_table('forum_noderevision') - - # Adding field 'Vote.object_id' - db.add_column(u'vote', 'object_id', self.gf('django.db.models.fields.PositiveIntegerField')(default=1), keep_default=False) - - # Adding field 'Vote.content_type' - db.add_column(u'vote', 'content_type', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['contenttypes.ContentType']), keep_default=False) - - # Adding field 'Comment.object_id' - db.add_column(u'comment', 'object_id', self.gf('django.db.models.fields.PositiveIntegerField')(default=1), keep_default=False) - - # Adding field 'Comment.content_type' - db.add_column(u'comment', 'content_type', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['contenttypes.ContentType']), keep_default=False) - - # Adding field 'FlaggedItem.object_id' - db.add_column(u'flagged_item', 'object_id', self.gf('django.db.models.fields.PositiveIntegerField')(default=1), keep_default=False) - - # Adding field 'FlaggedItem.content_type' - db.add_column(u'flagged_item', 'content_type', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['contenttypes.ContentType']), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 12, 14, 26, 755000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 12, 14, 35, 357000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0009_convert_revisions.py b/forum/modules/template_loader.py/forum/migrations/0009_convert_revisions.py deleted file mode 100644 index 6b06ed9..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0009_convert_revisions.py +++ /dev/null @@ -1,414 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - #Converting question revisions - qr_count = orm.QuestionRevision.objects.all().count() - print "\nConverting %d question revisions:" % qr_count - progress = ProgressBar(qr_count) - - for q in orm.QuestionRevision.objects.order_by('id'): - revision = orm.NodeRevision( - node=q.question.node_ptr, - title=q.title, - summary=q.summary, - tagnames=q.tagnames, - revision=q.revision, - author=q.author, - revised_at=q.revised_at, - body=q.text, - ) - - revision.save() - progress.update() - - print "\n...done\n" - - - #Converting answer revisions - ar_count = orm.AnswerRevision.objects.all().count() - print "\nConverting %d answer revisions:" % ar_count - progress = ProgressBar(ar_count) - - for a in orm.AnswerRevision.objects.order_by('id'): - revision = orm.NodeRevision( - summary=a.summary, - node=a.answer.node_ptr, - revision=a.revision, - author=a.author, - revised_at=a.revised_at, - body=a.text, - ) - - revision.save() - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_answers'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answers'", 'to': "orm['forum.Question']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.answerrevision': { - 'Meta': {'object_name': 'AnswerRevision', 'db_table': "u'answer_revision'"}, - 'answer': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Answer']"}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'answerrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'text': ('django.db.models.fields.TextField', [], {}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questions'", 'to': "orm['forum.User']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'followed_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'followed_questions'", 'to': "orm['forum.User']"}), - 'html': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'null': 'True'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'questions'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionrevision': { - 'Meta': {'object_name': 'QuestionRevision', 'db_table': "u'question_revision'"}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'questionrevisions'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Question']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300', 'blank': 'True'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 12, 14, 26, 755000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 12, 14, 35, 357000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0010_auto__del_questionrevision__del_answerrevision__del_field_answer_vote_.py b/forum/modules/template_loader.py/forum/migrations/0010_auto__del_questionrevision__del_answerrevision__del_field_answer_vote_.py deleted file mode 100644 index 8baaf67..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0010_auto__del_questionrevision__del_answerrevision__del_field_answer_vote_.py +++ /dev/null @@ -1,576 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'QuestionRevision' - db.delete_table(u'question_revision') - - # Deleting model 'AnswerRevision' - db.delete_table(u'answer_revision') - - # Deleting field 'Answer.vote_up_count' - db.delete_column(u'answer', 'vote_up_count') - - # Deleting field 'Answer.author' - db.delete_column(u'answer', 'author_id') - - # Deleting field 'Answer.deleted' - db.delete_column(u'answer', 'deleted') - - # Deleting field 'Answer.question' - db.delete_column(u'answer', 'question_id') - - # Deleting field 'Answer.html' - db.delete_column(u'answer', 'html') - - # Deleting field 'Answer.offensive_flag_count' - db.delete_column(u'answer', 'offensive_flag_count') - - # Deleting field 'Answer.deleted_by' - db.delete_column(u'answer', 'deleted_by_id') - - # Deleting field 'Answer.comment_count' - db.delete_column(u'answer', 'comment_count') - - # Deleting field 'Answer.score' - db.delete_column(u'answer', 'score') - - # Deleting field 'Answer.vote_down_count' - db.delete_column(u'answer', 'vote_down_count') - - # Deleting field 'Answer.added_at' - db.delete_column(u'answer', 'added_at') - - # Deleting field 'Answer.last_edited_by' - db.delete_column(u'answer', 'last_edited_by_id') - - # Deleting field 'Answer.deleted_at' - db.delete_column(u'answer', 'deleted_at') - - # Deleting field 'Answer.id' - db.delete_column(u'answer', 'id') - - # Deleting field 'Answer.last_edited_at' - db.delete_column(u'answer', 'last_edited_at') - - # Changing field 'Answer.node_ptr' - db.alter_column(u'answer', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True)) - db.create_primary_key(u'answer', ['node_ptr_id']) - - # Deleting field 'Question.vote_up_count' - db.delete_column(u'question', 'vote_up_count') - - # Deleting field 'Question.offensive_flag_count' - db.delete_column(u'question', 'offensive_flag_count') - - # Deleting field 'Question.summary' - db.delete_column(u'question', 'summary') - - # Deleting field 'Question.id' - db.delete_column(u'question', 'id') - - # Deleting field 'Question.deleted_at' - db.delete_column(u'question', 'deleted_at') - - # Deleting field 'Question.score' - db.delete_column(u'question', 'score') - - # Deleting field 'Question.author' - db.delete_column(u'question', 'author_id') - - # Deleting field 'Question.comment_count' - db.delete_column(u'question', 'comment_count') - - # Deleting field 'Question.html' - db.delete_column(u'question', 'html') - - # Deleting field 'Question.vote_down_count' - db.delete_column(u'question', 'vote_down_count') - - # Deleting field 'Question.last_edited_by' - db.delete_column(u'question', 'last_edited_by_id') - - # Deleting field 'Question.deleted' - db.delete_column(u'question', 'deleted') - - # Deleting field 'Question.tagnames' - db.delete_column(u'question', 'tagnames') - - # Deleting field 'Question.title' - db.delete_column(u'question', 'title') - - # Deleting field 'Question.added_at' - db.delete_column(u'question', 'added_at') - - # Deleting field 'Question.deleted_by' - db.delete_column(u'question', 'deleted_by_id') - - # Deleting field 'Question.last_edited_at' - db.delete_column(u'question', 'last_edited_at') - - # Removing M2M table for field followed_by on 'Question' - db.delete_table('question_followed_by') - - # Removing M2M table for field tags on 'Question' - db.delete_table('question_tags') - - # Changing field 'Question.node_ptr' - db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True)) - db.create_primary_key(u'question', ['node_ptr_id']) - - - def backwards(self, orm): - - # Adding model 'QuestionRevision' - db.create_table(u'question_revision', ( - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='questionrevisions', to=orm['forum.User'])), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('text', self.gf('django.db.models.fields.TextField')()), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Question'])), - ('revised_at', self.gf('django.db.models.fields.DateTimeField')()), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()), - )) - db.send_create_signal('forum', ['QuestionRevision']) - - # Adding model 'AnswerRevision' - db.create_table(u'answer_revision', ( - ('author', self.gf('django.db.models.fields.related.ForeignKey')(related_name='answerrevisions', to=orm['forum.User'])), - ('text', self.gf('django.db.models.fields.TextField')()), - ('revised_at', self.gf('django.db.models.fields.DateTimeField')()), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=300, blank=True)), - ('answer', self.gf('django.db.models.fields.related.ForeignKey')(related_name='revisions', to=orm['forum.Answer'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('revision', self.gf('django.db.models.fields.PositiveIntegerField')()), - )) - db.send_create_signal('forum', ['AnswerRevision']) - - # Adding field 'Answer.vote_up_count' - db.add_column(u'answer', 'vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Answer.author' - db.add_column(u'answer', 'author', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='answers', to=orm['forum.User']), keep_default=False) - - # Adding field 'Answer.deleted' - db.add_column(u'answer', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Answer.question' - db.add_column(u'answer', 'question', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='answers', to=orm['forum.Question']), keep_default=False) - - # Adding field 'Answer.html' - db.add_column(u'answer', 'html', self.gf('django.db.models.fields.TextField')(default=1), keep_default=False) - - # Adding field 'Answer.offensive_flag_count' - db.add_column(u'answer', 'offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False) - - # Adding field 'Answer.deleted_by' - db.add_column(u'answer', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_answers', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Answer.comment_count' - db.add_column(u'answer', 'comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False) - - # Adding field 'Answer.score' - db.add_column(u'answer', 'score', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Answer.vote_down_count' - db.add_column(u'answer', 'vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Answer.added_at' - db.add_column(u'answer', 'added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'Answer.last_edited_by' - db.add_column(u'answer', 'last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_edited_answers', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Answer.deleted_at' - db.add_column(u'answer', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Adding field 'Answer.id' - db.add_column(u'answer', 'id', self.gf('django.db.models.fields.AutoField')(default=1, primary_key=True), keep_default=False) - - # Adding field 'Answer.last_edited_at' - db.add_column(u'answer', 'last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Changing field 'Answer.node_ptr' - db.alter_column(u'answer', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True)) - - # Adding field 'Question.vote_up_count' - db.add_column(u'question', 'vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Question.offensive_flag_count' - db.add_column(u'question', 'offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False) - - # Adding field 'Question.summary' - db.add_column(u'question', 'summary', self.gf('django.db.models.fields.CharField')(default=1, max_length=180), keep_default=False) - - # Adding field 'Question.id' - db.add_column(u'question', 'id', self.gf('django.db.models.fields.AutoField')(default=1, primary_key=True), keep_default=False) - - # Adding field 'Question.deleted_at' - db.add_column(u'question', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Adding field 'Question.score' - db.add_column(u'question', 'score', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Question.author' - db.add_column(u'question', 'author', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='questions', to=orm['forum.User']), keep_default=False) - - # Adding field 'Question.comment_count' - db.add_column(u'question', 'comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False) - - # Adding field 'Question.html' - db.add_column(u'question', 'html', self.gf('django.db.models.fields.TextField')(default=1), keep_default=False) - - # Adding field 'Question.vote_down_count' - db.add_column(u'question', 'vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Question.last_edited_by' - db.add_column(u'question', 'last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_edited_questions', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Question.deleted' - db.add_column(u'question', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Question.tagnames' - db.add_column(u'question', 'tagnames', self.gf('django.db.models.fields.CharField')(default=1, max_length=125), keep_default=False) - - # Adding field 'Question.title' - db.add_column(u'question', 'title', self.gf('django.db.models.fields.CharField')(default=1, max_length=300), keep_default=False) - - # Adding field 'Question.added_at' - db.add_column(u'question', 'added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - # Adding field 'Question.deleted_by' - db.add_column(u'question', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_questions', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Question.last_edited_at' - db.add_column(u'question', 'last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Adding M2M table for field followed_by on 'Question' - db.create_table(u'question_followed_by', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('question', models.ForeignKey(orm['forum.question'], null=False)), - ('user', models.ForeignKey(orm['forum.user'], null=False)) - )) - db.create_unique(u'question_followed_by', ['question_id', 'user_id']) - - # Adding M2M table for field tags on 'Question' - db.create_table(u'question_tags', ( - ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), - ('question', models.ForeignKey(orm['forum.question'], null=False)), - ('tag', models.ForeignKey(orm['forum.tag'], null=False)) - )) - db.create_unique(u'question_tags', ['question_id', 'tag_id']) - - # Changing field 'Question.node_ptr' - db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, null=True)) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'childs'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 12, 30, 8, 362000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 12, 30, 22, 477000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0011_auto__add_field_node_active_revision.py b/forum/modules/template_loader.py/forum/migrations/0011_auto__add_field_node_active_revision.py deleted file mode 100644 index 940f37f..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0011_auto__add_field_node_active_revision.py +++ /dev/null @@ -1,323 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding field 'Node.active_revision' - db.add_column('forum_node', 'active_revision', self.gf('django.db.models.fields.related.OneToOneField')(related_name='active', unique=True, null=True, to=orm['forum.NodeRevision']), keep_default=False) - - - def backwards(self, orm): - - # Deleting field 'Node.active_revision' - db.delete_column('forum_node', 'active_revision_id') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 17, 56, 17, 351000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 17, 56, 17, 557000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0012_set_active_revision.py b/forum/modules/template_loader.py/forum/migrations/0012_set_active_revision.py deleted file mode 100644 index 24c419a..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0012_set_active_revision.py +++ /dev/null @@ -1,327 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models - -class Migration(DataMigration): - - def forwards(self, orm): - for n in orm.Node.objects.all(): - try: - n.active_revision = n.revisions.order_by('-id')[0] - n.save() - except: - r = orm.NodeRevision(author=n.author, body=n.body, title=n.title, revised_at=datetime.datetime.now(), - tagnames=n.tagnames, summary='Initial Revision', revision=1, node=n) - r.save() - n.active_revision = r - n.save() - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousanswer': { - 'Meta': {'object_name': 'AnonymousAnswer'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_answers'", 'to': "orm['forum.Question']"}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.anonymousquestion': { - 'Meta': {'object_name': 'AnonymousQuestion'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip_addr': ('django.db.models.fields.IPAddressField', [], {'max_length': '15'}), - 'session_key': ('django.db.models.fields.CharField', [], {'max_length': '40'}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '180'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'text': ('django.db.models.fields.TextField', [], {}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 17, 56, 41, 918000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 17, 56, 41, 986000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0013_auto__del_anonymousquestion__del_anonymousanswer__add_anonymousnode.py b/forum/modules/template_loader.py/forum/migrations/0013_auto__del_anonymousquestion__del_anonymousanswer__add_anonymousnode.py deleted file mode 100644 index d203297..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0013_auto__del_anonymousquestion__del_anonymousanswer__add_anonymousnode.py +++ /dev/null @@ -1,344 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'AnonymousQuestion' - db.delete_table('forum_anonymousquestion') - - # Deleting model 'AnonymousAnswer' - db.delete_table('forum_anonymousanswer') - - # Adding model 'AnonymousNode' - db.create_table('forum_anonymousnode', ( - ('convertible_to', self.gf('django.db.models.fields.CharField')(default='node', max_length=16)), - ('validation_hash', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_content', to=orm['forum.Node'])), - ('node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, primary_key=True)), - )) - db.send_create_signal('forum', ['AnonymousNode']) - - - def backwards(self, orm): - - # Adding model 'AnonymousQuestion' - db.create_table('forum_anonymousquestion', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)), - ('title', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('tagnames', self.gf('django.db.models.fields.CharField')(max_length=125)), - ('text', self.gf('django.db.models.fields.TextField')()), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)), - ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['AnonymousQuestion']) - - # Adding model 'AnonymousAnswer' - db.create_table('forum_anonymousanswer', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('ip_addr', self.gf('django.db.models.fields.IPAddressField')(max_length=15)), - ('author', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)), - ('text', self.gf('django.db.models.fields.TextField')()), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_answers', to=orm['forum.Question'])), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('summary', self.gf('django.db.models.fields.CharField')(max_length=180)), - ('session_key', self.gf('django.db.models.fields.CharField')(max_length=40)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['AnonymousAnswer']) - - # Deleting model 'AnonymousNode' - db.delete_table('forum_anonymousnode') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 14, 18, 42, 39, 311000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 15, 18, 42, 39, 525000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0014_auto__add_field_question_accepted_answer.py b/forum/modules/template_loader.py/forum/migrations/0014_auto__add_field_question_accepted_answer.py deleted file mode 100644 index e73c960..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0014_auto__add_field_question_accepted_answer.py +++ /dev/null @@ -1,309 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models -from django.conf import settings - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding field 'Question.accepted_answer' - db.add_column(u'question', 'accepted_answer', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Answer'], unique=True, null=True), keep_default=False) - - #if db.backend_name == "postgres" and not "pgfulltext" in settings.DISABLED_MODULES: - # db.execute("DROP TRIGGER tsvectorupdate ON question;") - # db.execute("ALTER TABLE question DROP COLUMN tsv;") - - def backwards(self, orm): - - # Deleting field 'Question.accepted_answer' - db.delete_column(u'question', 'accepted_answer_id') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Answer']", 'unique': 'True', 'null': 'True'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 11, 5, 41, 763000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 11, 5, 42, 36000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0015_accepted_answer_changes.py b/forum/modules/template_loader.py/forum/migrations/0015_accepted_answer_changes.py deleted file mode 100644 index ee98647..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0015_accepted_answer_changes.py +++ /dev/null @@ -1,320 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - q_count = orm.Node.objects.filter(node_type="question").count() - print "\nConverting %d questions:" % q_count - progress = ProgressBar(q_count) - - for n in orm.Node.objects.filter(node_type="question"): - q = orm.Question.objects.get(node_ptr=n) - if q.answer_accepted: - accepted = list(orm.Answer.objects.filter(node_ptr__parent=n, accepted=True)) - - if len(accepted): - accepted = accepted[0] - q.accepted_answer = accepted - else: - q.answer_accepted = False - - q.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Answer']", 'unique': 'True', 'null': 'True'}), - 'answer_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 11, 6, 44, 202000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 11, 6, 44, 279000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0016_auto__del_field_question_answer_accepted__chg_field_question_node_ptr.py b/forum/modules/template_loader.py/forum/migrations/0016_auto__del_field_question_answer_accepted__chg_field_question_node_ptr.py deleted file mode 100644 index efa35d0..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0016_auto__del_field_question_answer_accepted__chg_field_question_node_ptr.py +++ /dev/null @@ -1,310 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'Question.answer_accepted' - db.delete_column(u'question', 'answer_accepted') - - # Changing field 'Question.node_ptr' - db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True)) - - - def backwards(self, orm): - - # Adding field 'Question.answer_accepted' - db.add_column(u'question', 'answer_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Changing field 'Question.node_ptr' - db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, primary_key=True)) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Answer']", 'unique': 'True', 'null': 'True'}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 13, 28, 30, 313000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 13, 28, 30, 540000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0017_auto__add_field_repute_node__add_field_repute_canceled.py b/forum/modules/template_loader.py/forum/migrations/0017_auto__add_field_repute_node__add_field_repute_canceled.py deleted file mode 100644 index cb14267..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0017_auto__add_field_repute_node__add_field_repute_canceled.py +++ /dev/null @@ -1,312 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding field 'Repute.node' - db.add_column(u'repute', 'node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reputes', null=True, to=orm['forum.Node']), keep_default=False) - - # Adding field 'Repute.canceled' - db.add_column(u'repute', 'canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - - def backwards(self, orm): - - # Deleting field 'Repute.node' - db.delete_column(u'repute', 'node_id') - - # Deleting field 'Repute.canceled' - db.delete_column(u'repute', 'canceled') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 14, 18, 46, 625000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 14, 18, 46, 835000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0018_comments_to_node.py b/forum/modules/template_loader.py/forum/migrations/0018_comments_to_node.py deleted file mode 100644 index 808bb0e..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0018_comments_to_node.py +++ /dev/null @@ -1,376 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - c_count = orm.Comment.objects.count() - print "\nConverting %d comments:" % c_count - progress = ProgressBar(c_count) - - id_map = {} - - for c in orm.Comment.objects.all(): - node = orm.Node( - node_type='comment', - author=c.user, - added_at=c.added_at, - score=c.score, - vote_up_count=c.score, - vote_down_count=0, - offensive_flag_count=0, - last_edited_at=c.added_at, - last_edited_by=c.user, - body=c.comment, - deleted=c.deleted, - deleted_by=c.deleted_by, - deleted_at=c.deleted_at, - parent=c.node, - ) - node.save() - - id_map[c.id] = node - - revision = orm.NodeRevision( - summary="Initial revsion", - revision=1, - revised_at=c.added_at, - body=c.comment, - author=c.user, - node=node, - ) - - revision.save() - - node.active_revision = revision - node.save() - - for v in orm.LikedComment.objects.filter(comment=c): - vote = orm.Vote( - node=node, - vote=1, - voted_at=v.added_at, - canceled=v.canceled, - user=v.user, - ) - - vote.save() - - progress.update() - - print "\n...done\n" - - ctype = orm['contenttypes.ContentType'].objects.get(name="comment").id - ntype = orm['contenttypes.ContentType'].objects.get(name="node").id - - #Converting activity - activities = orm.Activity.objects.filter(content_type__id=ctype) - activity_count = activities.count() - print "Converting %d activity references:" % activity_count - progress = ProgressBar(activity_count) - - for a in activities: - node = id_map.get(a.object_id, None) - if node: - a.content_type_id = ntype - a.object_id = node.id - a.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.comment': { - 'Meta': {'object_name': 'Comment', 'db_table': "u'comment'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'comment': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_comments'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'liked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'comments_liked'", 'through': "'LikedComment'", 'to': "orm['forum.User']"}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'comments'", 'to': "orm['forum.User']"}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.likedcomment': { - 'Meta': {'object_name': 'LikedComment'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'comment': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Comment']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 16, 14, 19, 21, 765000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 14, 19, 21, 837000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0019_auto__del_likedcomment__del_comment__add_field_node_abs_parent__chg_fi.py b/forum/modules/template_loader.py/forum/migrations/0019_auto__del_likedcomment__del_comment__add_field_node_abs_parent__chg_fi.py deleted file mode 100644 index b6acebe..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0019_auto__del_likedcomment__del_comment__add_field_node_abs_parent__chg_fi.py +++ /dev/null @@ -1,322 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'LikedComment' - db.delete_table('forum_likedcomment') - - # Deleting model 'Comment' - db.delete_table(u'comment') - - # Adding field 'Node.abs_parent' - db.add_column('forum_node', 'abs_parent', self.gf('django.db.models.fields.related.ForeignKey')(related_name='all_children', null=True, to=orm['forum.Node']), keep_default=False) - - # Changing field 'Question.last_activity_by' - db.alter_column(u'question', 'last_activity_by_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['forum.User'])) - - - def backwards(self, orm): - - # Adding model 'LikedComment' - db.create_table('forum_likedcomment', ( - ('comment', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Comment'])), - ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['LikedComment']) - - # Adding model 'Comment' - db.create_table(u'comment', ( - ('comment', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', null=True, to=orm['forum.Node'])), - ('deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_comments', null=True, to=orm['forum.User'], blank=True)), - ('score', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='comments', to=orm['forum.User'])), - ('deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['Comment']) - - # Deleting field 'Node.abs_parent' - db.delete_column('forum_node', 'abs_parent_id') - - # Changing field 'Question.last_activity_by' - db.alter_column(u'question', 'last_activity_by_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 1, 11, 40, 975000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 18, 1, 11, 41, 269000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0020_create_absolute_parents.py b/forum/modules/template_loader.py/forum/migrations/0020_create_absolute_parents.py deleted file mode 100644 index 6a37403..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0020_create_absolute_parents.py +++ /dev/null @@ -1,300 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - def get_abs_par(n): - if n.parent: - return get_abs_par(n.parent) - else: - return n - - n_count = orm.Node.objects.count() - print "\nConverting %d nodes:" % n_count - progress = ProgressBar(n_count) - - for n in orm.Node.objects.all(): - if n.parent: - n.abs_parent = get_abs_par(n) - else: - n.abs_parent = None - n.save() - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 1, 20, 29, 905000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 18, 1, 20, 29, 974000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0021_create_new_pg_fts_triggers.py b/forum/modules/template_loader.py/forum/migrations/0021_create_new_pg_fts_triggers.py deleted file mode 100644 index 16ef25b..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0021_create_new_pg_fts_triggers.py +++ /dev/null @@ -1,303 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models -from django.conf import settings - -class Migration(SchemaMigration): - - def forwards(self, orm): - if db.backend_name == "postgres" and not "pgfulltext" in settings.DISABLED_MODULES: - try: - import forum_modules.pgfulltext.management - except Exception, e: - pass - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('content_type', 'object_id', 'user', 'badge'),)", 'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'comment_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'offensive_flag_count': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'answer_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'favourite_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True'}), - 'subscribers': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscriptions'", 'through': "'QuestionSubscription'", 'to': "orm['forum.User']"}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 17, 2, 50, 12, 337000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 18, 2, 50, 12, 421000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0022_auto__add_actionrepute__add_action__add_favoritenode__del_field_node_v.py b/forum/modules/template_loader.py/forum/migrations/0022_auto__add_actionrepute__add_action__add_favoritenode__del_field_node_v.py deleted file mode 100644 index 87b792e..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0022_auto__add_actionrepute__add_action__add_favoritenode__del_field_node_v.py +++ /dev/null @@ -1,463 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - print "# Adding model 'ActionRepute'" - db.create_table('forum_actionrepute', ( - ('action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reputes', to=orm['forum.Action'])), - ('by_canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('value', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['ActionRepute']) - - print "# Adding model 'Action'" - db.create_table('forum_action', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True)), - ('extra', self.gf('django.db.models.fields.CharField')(max_length=255)), - ('canceled_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='canceled_actions', null=True, to=orm['forum.User'])), - ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('action_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='actions', to=orm['forum.User'])), - ('action_type', self.gf('django.db.models.fields.CharField')(max_length=16)), - ('canceled_at', self.gf('django.db.models.fields.DateTimeField')(null=True)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('ip', self.gf('django.db.models.fields.CharField')(max_length=16, null=True)), - )) - db.send_create_signal('forum', ['Action']) - - print "# Deleting field 'Node.vote_up_count'" - db.delete_column('forum_node', 'vote_up_count') - - print "# Deleting field 'Node.comment_count'" - db.delete_column('forum_node', 'comment_count') - - print "# Deleting field 'Node.offensive_flag_count'" - db.delete_column('forum_node', 'offensive_flag_count') - - print "# Deleting field 'Node.vote_down_count'" - db.delete_column('forum_node', 'vote_down_count') - - print "# Adding field 'Node.wiki'" - db.add_column('forum_node', 'wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - print "# Adding field 'Node.marked'" - db.add_column('forum_node', 'marked', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - print "# Adding field 'Node.extra_count'" - db.add_column('forum_node', 'extra_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - print "# Adding field 'Node.last_activity_by'" - db.add_column('forum_node', 'last_activity_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True), keep_default=False) - - print "# Adding field 'Node.extra_ref'" - db.add_column('forum_node', 'extra_ref', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True), keep_default=False) - - print "# Adding field 'Node.last_activity_at'" - db.add_column('forum_node', 'last_activity_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Changing field 'Answer.node_ptr' - #db.alter_column(u'answer', 'node_ptr_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True, primary_key=True)) - - print "# Changing field 'QuestionSubscription.question'" - db.alter_column('forum_questionsubscription', 'question_id', self.gf('django.db.models.fields.IntegerField')()) - - # Removing unique constraint on 'Award', fields ['badge', 'object_id', 'content_type', 'user'] - #db.delete_unique(u'award', ['badge_id', 'object_id', 'content_type_id', 'user_id']) - - print "# Changing field 'User.gold'" - db.alter_column('forum_user', 'gold', self.gf('django.db.models.fields.PositiveIntegerField')()) - - print "# Changing field 'User.silver'" - db.alter_column('forum_user', 'silver', self.gf('django.db.models.fields.PositiveIntegerField')()) - - print "# Changing field 'User.bronze'" - db.alter_column('forum_user', 'bronze', self.gf('django.db.models.fields.PositiveIntegerField')()) - - print "# Deleting field 'Question.answer_count'" - db.delete_column(u'question', 'answer_count') - - print "# Deleting field 'Question.favourite_count'" - db.delete_column(u'question', 'favourite_count') - - # Changing field 'Question.node_ptr' - #db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True, primary_key=True)) - - - def backwards(self, orm): - - # Deleting model 'ActionRepute' - db.delete_table('forum_actionrepute') - - # Deleting model 'Action' - db.delete_table('forum_action') - - # Deleting model 'FavoriteNode' - db.delete_table('forum_favoritenode') - - # Adding field 'Node.vote_up_count' - db.add_column('forum_node', 'vote_up_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Adding field 'Node.comment_count' - db.add_column('forum_node', 'comment_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False) - - # Adding field 'Node.offensive_flag_count' - db.add_column('forum_node', 'offensive_flag_count', self.gf('django.db.models.fields.SmallIntegerField')(default=0), keep_default=False) - - # Adding field 'Node.vote_down_count' - db.add_column('forum_node', 'vote_down_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Deleting field 'Node.wiki' - db.delete_column('forum_node', 'wiki') - - # Deleting field 'Node.marked' - db.delete_column('forum_node', 'marked') - - # Deleting field 'Node.extra_count' - db.delete_column('forum_node', 'extra_count') - - # Deleting field 'Node.last_activity_by' - db.delete_column('forum_node', 'last_activity_by_id') - - # Deleting field 'Node.extra_ref' - db.delete_column('forum_node', 'extra_ref_id') - - # Deleting field 'Node.last_activity_at' - db.delete_column('forum_node', 'last_activity_at') - - # Changing field 'Answer.node_ptr' - db.alter_column(u'answer', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, primary_key=True)) - - # Adding unique constraint on 'Award', fields ['badge', 'object_id', 'content_type', 'user'] - db.create_unique(u'award', ['badge_id', 'object_id', 'content_type_id', 'user_id']) - - # Changing field 'User.gold' - db.alter_column('forum_user', 'gold', self.gf('django.db.models.fields.SmallIntegerField')()) - - # Changing field 'User.silver' - db.alter_column('forum_user', 'silver', self.gf('django.db.models.fields.SmallIntegerField')()) - - # Changing field 'User.bronze' - db.alter_column('forum_user', 'bronze', self.gf('django.db.models.fields.SmallIntegerField')()) - - # Adding field 'Question.answer_count' - db.add_column(u'question', 'answer_count', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False) - - # Adding field 'Question.favourite_count' - db.add_column(u'question', 'favourite_count', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False) - - # Changing field 'Question.node_ptr' - db.alter_column(u'question', 'node_ptr_id', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True)) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'favourites'", 'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True', 'primary_key': 'True'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 27, 11, 37, 29, 356000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 11, 37, 29, 624000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0023_flaten_node_inheritance_create_actions.py b/forum/modules/template_loader.py/forum/migrations/0023_flaten_node_inheritance_create_actions.py deleted file mode 100644 index d4b081b..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0023_flaten_node_inheritance_create_actions.py +++ /dev/null @@ -1,685 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -GAIN_BY_UPVOTED = 1 -GAIN_BY_ANSWER_ACCEPTED = 2 -GAIN_BY_ACCEPTING_ANSWER = 3 -GAIN_BY_DOWNVOTE_CANCELED = 4 -GAIN_BY_CANCELING_DOWNVOTE = 5 -LOST_BY_CANCELLING_ACCEPTED_ANSWER = -1 -LOST_BY_ACCEPTED_ANSWER_CANCELED = -2 -LOST_BY_DOWNVOTED = -3 -LOST_BY_FLAGGED = -4 -LOST_BY_DOWNVOTING = -5 -LOST_BY_FLAGGED_3_TIMES = -6 -LOST_BY_FLAGGED_5_TIMES = -7 -LOST_BY_UPVOTE_CANCELED = -8 - -class Migration(DataMigration): - - def forwards(self, orm): - rephist = dict([(t, []) for t in range(-8, 6) if t != 0]) - - r_count = orm.Repute.objects.count() - print "\nCalculating rep gain/losses history through %d records:" % r_count - progress = ProgressBar(r_count) - - for r in orm.Repute.objects.all(): - l = rephist.get(r.reputation_type, None) - if l is None: continue - - if (len(l) == 0) or (l[-1][1] != r.value): - l.append((r.reputed_at, r.value)) - - progress.update() - - print "\n...done\n" - - - def repval_at(reptype, repdate, default): - l = rephist.get(reptype, None) - - if l is None: return 0 - if len(l) == 0: return default - - for r in l: - if r[0] <= repdate: - return r[1] or default - - - q_count = orm.Question.objects.count() - print "\nConverting %d questions:" % q_count - progress = ProgressBar(q_count) - - for q in orm.Question.objects.all(): - n = q.node_ptr - n.last_activity_at = q.last_activity_at - n.last_activity_by = q.last_activity_by - - if q.accepted_answer: - n.extra_ref = q.accepted_answer.node_ptr - - n.extra_count = q.view_count - - n.marked = q.closed - n.wiki = q.wiki - - n.save() - - ask = orm.Action( - user = n.author, - action_date = n.added_at, - node = n, - action_type = "ask", - extra = '' - ) - - ask.save() - - if n.deleted: - action = orm.Action( - user = n.deleted_by, - node = n, - action_type = "delete", - action_date = n.deleted_at or datetime.datetime.now(), - extra = '' - ) - - action.save() - - - if n.marked: - action = orm.Action( - user = q.closed_by, - node = n, - action_type = "close", - extra = q.close_reason, - action_date = q.closed_at or datetime.datetime.now(), - ) - - action.save() - - if n.wiki: - action = orm.Action( - user = n.author, - node = n, - action_type = "wikify", - action_date = q.wikified_at or datetime.datetime.now(), - extra = '' - ) - - action.save() - - progress.update() - - print "\n...done\n" - - a_count = orm.Answer.objects.count() - print "\nConverting %d answers:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Answer.objects.all(): - n = a.node_ptr - - n.marked = a.accepted - n.wiki = a.wiki - - n.save() - - ans = orm.Action( - user = n.author, - action_date = n.added_at, - node = n, - action_type = "answer", - extra = '' - ) - - ans.save() - - if n.deleted: - action = orm.Action( - user = n.deleted_by, - node = n, - action_type = "delete", - action_date = n.deleted_at or datetime.datetime.now(), - extra = '' - ) - - action.save() - - if a.accepted: - action = orm.Action( - user = a.accepted_by, - node = n, - action_type = "acceptanswer", - action_date = a.accepted_at or datetime.datetime.now(), - extra = '' - ) - - action.save() - - if not a.wiki or a.wikified_at > action.action_date: - if action.user == n.author: - rep = orm.ActionRepute( - action = action, - user = action.user, - value = repval_at(GAIN_BY_ACCEPTING_ANSWER, action.action_date, 2) - ) - rep.save() - - if n.author != n.parent.author: - rep = orm.ActionRepute( - action = action, - user = n.author, - value = repval_at(GAIN_BY_ANSWER_ACCEPTED, action.action_date, 15) - ) - rep.save() - - if n.wiki: - action = orm.Action( - user = n.author, - node = n, - action_type = "wikify", - action_date = a.wikified_at or datetime.datetime.now(), - extra = '' - ) - - action.save() - - progress.update() - - print "\n...done\n" - - v_count = orm.Vote.objects.count() - print "\nConverting %d votes:" % v_count - progress = ProgressBar(v_count) - - for v in orm.Vote.objects.exclude(canceled=True): - a = orm.Action( - action_type = (v.vote == 1) and ((v.node.node_type == "comment") and "voteupcomment" or "voteup") or "votedown", - user = v.user, - node = v.node, - action_date = v.voted_at, - canceled = v.canceled, - extra = '' - ) - - a.save() - - def impl(node): - if node.node_type == "question": - return orm.Question.objects.get(node_ptr=node) - else: - return orm.Answer.objects.get(node_ptr=node) - - if a.node.node_type in ("question", "answer") and (not a.node.wiki or impl(a.node).wikified_at > a.action_date): - reptype, default = (v.vote == 1) and (GAIN_BY_UPVOTED, 10) or (LOST_BY_DOWNVOTED, 2) - rep = orm.ActionRepute( - action = a, - user = a.node.author, - value = repval_at(reptype, a.action_date, default) or default - ) - rep.save() - - if v.vote == -1: - rep = orm.ActionRepute( - action = a, - user = a.node.author, - value = repval_at(LOST_BY_DOWNVOTING, a.action_date, 1) or default - ) - rep.save() - - progress.update() - - print "\n...done\n" - - f_count = orm.FlaggedItem.objects.count() - print "\nConverting %d flags:" % f_count - progress = ProgressBar(f_count) - - for f in orm.FlaggedItem.objects.all(): - a = orm.Action( - action_type = "flag", - user = f.user, - node = f.node, - action_date = f.flagged_at, - extra = f.reason or '' - ) - - a.save() - - rep = orm.ActionRepute( - action = a, - user = a.node.author, - value = repval_at(LOST_BY_FLAGGED, a.action_date, 2) or 2 - ) - rep.save() - - progress.update() - - print "\n...done\n" - - n_count = orm.Node.objects.all().count() - print "\nChecking flag count of %d nodes:" % n_count - progress = ProgressBar(n_count) - - for n in orm.Node.objects.all(): - flags = list(orm.Action.objects.filter(action_type="flag", node=n, canceled=False).order_by('-action_date')) - - if len(flags) >= 3: - a = flags[2] - rep = orm.ActionRepute( - action = a, - user = n.author, - value = repval_at(LOST_BY_FLAGGED_3_TIMES, a.action_date, 30) - ) - rep.save() - - - if len(flags) >= 5: - a = flags[4] - rep = orm.ActionRepute( - action = a, - user = n.author, - value = repval_at(LOST_BY_FLAGGED_5_TIMES, a.action_date, 100) - ) - rep.save() - - progress.update() - - print "\n...done\n" - - c_count = orm.Node.objects.filter(node_type="comment").count() - print "\nCreating %d comment actions:" % c_count - progress = ProgressBar(c_count) - - for c in orm.Node.objects.filter(node_type="comment").all(): - a = orm.Action( - action_type = "comment", - user = c.author, - node = c, - action_date = c.added_at, - extra = '' - ) - - a.save() - - if c.deleted: - action = orm.Action( - user = c.deleted_by, - node = c, - action_type = "delete", - action_date = c.deleted_at or datetime.datetime.now(), - extra = '' - ) - - action.save() - - progress.update() - - print "\n...done\n" - - - r_count = orm.NodeRevision.objects.exclude(revision=1).count() - print "\nCreating %d edit actions:" % r_count - progress = ProgressBar(r_count) - - for r in orm.NodeRevision.objects.exclude(revision=1): - a = orm.Action( - action_type = "revise", - user = r.author, - node = r.node, - action_date = r.revised_at, - extra = r.revision - ) - - a.save() - progress.update() - - print "\n...done\n" - - u_count = orm.User.objects.all().count() - print "\nCreating %d user join actions and reputation recalculation:" % u_count - progress = ProgressBar(u_count) - - for u in orm.User.objects.all(): - a = orm.Action( - user = u, - action_date = u.date_joined, - action_type = "userjoins", - ) - - a.save() - - rep = orm.ActionRepute( - action = a, - user = u, - value = 1 - ) - rep.save() - - new_rep = orm.ActionRepute.objects.filter(user=u).aggregate(reputation=models.Sum('value'))['reputation'] - - if new_rep < 0: - new_rep = 1 - - u.reputation = new_rep - u.save() - - progress.update() - - print "\n...done\n" - - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.anonymousnode': { - 'Meta': {'object_name': 'AnonymousNode', '_ormbases': ['forum.Node']}, - 'convertible_to': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'node_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['forum.Node']", 'unique': 'True', 'primary_key': 'True'}), - 'validation_hash': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'anonymous_content'", 'to': "orm['forum.Node']"}) - }, - 'forum.answer': { - 'Meta': {'object_name': 'Answer', 'db_table': "u'answer'"}, - 'accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'accepted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'accepted_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'node_ptr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True', 'primary_key': 'True'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.favoritequestion': { - 'Meta': {'unique_together': "(('question', 'user'),)", 'object_name': 'FavoriteQuestion', 'db_table': "u'favorite_question'"}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'favourites'", 'to': "orm['forum.Question']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_favorite_questions'", 'to': "orm['forum.User']"}) - }, - 'forum.flaggeditem': { - 'Meta': {'object_name': 'FlaggedItem', 'db_table': "u'flagged_item'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300', 'null': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flaggeditems'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_edited_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'last_edited_nodes'", 'null': 'True', 'to': "orm['forum.User']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.question': { - 'Meta': {'object_name': 'Question', 'db_table': "u'question'"}, - 'accepted_answer': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'question_accepting'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Answer']"}), - 'close_reason': ('django.db.models.fields.SmallIntegerField', [], {'null': 'True', 'blank': 'True'}), - 'closed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'closed_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'closed_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'closed_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'favorited_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'favorite_questions'", 'through': "'FavoriteQuestion'", 'to': "orm['forum.User']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'last_active_in_questions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'node_ptr': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True', 'primary_key': 'True'}), - 'view_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 27, 11, 40, 32, 68000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.repute': { - 'Meta': {'object_name': 'Repute', 'db_table': "u'repute'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Question']"}), - 'reputation_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'reputed_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'user_previous_rep': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {'default': '0'}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 11, 40, 32, 153000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'object_name': 'Vote', 'db_table': "u'vote'"}, - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'vote': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0024_auto__del_repute__del_vote__del_answer__del_flaggeditem__del_anonymous.py b/forum/modules/template_loader.py/forum/migrations/0024_auto__del_repute__del_vote__del_answer__del_flaggeditem__del_anonymous.py deleted file mode 100644 index 38a7604..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0024_auto__del_repute__del_vote__del_answer__del_flaggeditem__del_anonymous.py +++ /dev/null @@ -1,377 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'Repute' - db.delete_table(u'repute') - - # Deleting model 'Vote' - db.delete_table(u'vote') - - # Deleting model 'Answer' - db.delete_table(u'answer') - - # Deleting model 'FlaggedItem' - db.delete_table(u'flagged_item') - - # Deleting model 'AnonymousNode' - db.delete_table('forum_anonymousnode') - - # Deleting model 'FavoriteQuestion' - db.delete_table(u'favorite_question') - - # Deleting model 'Question' - db.delete_table(u'question') - - # Deleting field 'Node.deleted_at' - db.delete_column('forum_node', 'deleted_at') - - # Deleting field 'Node.last_edited_by' - db.delete_column('forum_node', 'last_edited_by_id') - - # Deleting field 'Node.deleted' - db.delete_column('forum_node', 'deleted') - - # Deleting field 'Node.deleted_by' - db.delete_column('forum_node', 'deleted_by_id') - - # Deleting field 'Node.last_edited_at' - db.delete_column('forum_node', 'last_edited_at') - - - def backwards(self, orm): - - # Adding model 'Repute' - db.create_table(u'repute', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reputes', null=True, to=orm['forum.Node'])), - ('reputed_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('question', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Question'])), - ('value', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), - ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('reputation_type', self.gf('django.db.models.fields.SmallIntegerField')()), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='reputes', to=orm['forum.User'])), - ('user_previous_rep', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['Repute']) - - # Adding model 'Vote' - db.create_table(u'vote', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', null=True, to=orm['forum.Node'])), - ('vote', self.gf('django.db.models.fields.SmallIntegerField')()), - ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', to=orm['forum.User'])), - ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['Vote']) - - # Adding model 'Answer' - db.create_table(u'answer', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('accepted_by', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'], null=True)), - ('accepted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('node_ptr', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True, primary_key=True)), - ('accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - )) - db.send_create_signal('forum', ['Answer']) - - # Adding model 'FlaggedItem' - db.create_table(u'flagged_item', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', null=True, to=orm['forum.Node'])), - ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('canceled', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('reason', self.gf('django.db.models.fields.CharField')(max_length=300, null=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flaggeditems', to=orm['forum.User'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - )) - db.send_create_signal('forum', ['FlaggedItem']) - - # Adding model 'AnonymousNode' - db.create_table('forum_anonymousnode', ( - ('convertible_to', self.gf('django.db.models.fields.CharField')(default='node', max_length=16)), - ('validation_hash', self.gf('django.db.models.fields.related.ForeignKey')(related_name='anonymous_content', to=orm['forum.Node'])), - ('node_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['forum.Node'], unique=True, primary_key=True)), - )) - db.send_create_signal('forum', ['AnonymousNode']) - - # Adding model 'FavoriteQuestion' - db.create_table(u'favorite_question', ( - ('question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='favourites', to=orm['forum.Question'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='user_favorite_questions', to=orm['forum.User'])), - )) - db.send_create_signal('forum', ['FavoriteQuestion']) - - # Adding model 'Question' - db.create_table(u'question', ( - ('wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('last_activity_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_active_in_questions', null=True, to=orm['forum.User'])), - ('close_reason', self.gf('django.db.models.fields.SmallIntegerField')(null=True, blank=True)), - ('last_activity_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('view_count', self.gf('django.db.models.fields.IntegerField')(default=0)), - ('node_ptr', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'], null=True, primary_key=True)), - ('accepted_answer', self.gf('django.db.models.fields.related.OneToOneField')(related_name='question_accepting', unique=True, null=True, to=orm['forum.Answer'])), - ('closed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('wikified_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('closed_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)), - ('closed_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='closed_questions', null=True, to=orm['forum.User'], blank=True)), - )) - db.send_create_signal('forum', ['Question']) - - # Adding field 'Node.deleted_at' - db.add_column('forum_node', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - # Adding field 'Node.last_edited_by' - db.add_column('forum_node', 'last_edited_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='last_edited_nodes', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Node.deleted' - db.add_column('forum_node', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Node.deleted_by' - db.add_column('forum_node', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_nodes', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Node.last_edited_at' - db.add_column('forum_node', 'last_edited_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 23, 43, 52, 301000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 23, 43, 52, 512000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0025_auto__add_field_node_extra_action__add_field_node_deleted__add_field_n.py b/forum/modules/template_loader.py/forum/migrations/0025_auto__add_field_node_extra_action__add_field_node_deleted__add_field_n.py deleted file mode 100644 index 2cf638c..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0025_auto__add_field_node_extra_action__add_field_node_deleted__add_field_n.py +++ /dev/null @@ -1,267 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding field 'Node.extra_action' - db.add_column('forum_node', 'extra_action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='extra_node', null=True, to=orm['forum.Action']), keep_default=False) - - # Adding field 'Node.deleted' - db.add_column('forum_node', 'deleted', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False) - - # Adding field 'Node.last_edited' - db.add_column('forum_node', 'last_edited', self.gf('django.db.models.fields.related.ForeignKey')(related_name='edited_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False) - - - def backwards(self, orm): - - # Deleting field 'Node.extra_action' - db.delete_column('forum_node', 'extra_action_id') - - # Deleting field 'Node.deleted' - db.delete_column('forum_node', 'deleted_id') - - # Deleting field 'Node.last_edited' - db.delete_column('forum_node', 'last_edited_id') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 23, 49, 37, 322000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 23, 49, 37, 506000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0026_reset_deleted_and_lastedited_flags.py b/forum/modules/template_loader.py/forum/migrations/0026_reset_deleted_and_lastedited_flags.py deleted file mode 100644 index 8521ffd..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0026_reset_deleted_and_lastedited_flags.py +++ /dev/null @@ -1,278 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - n_count = orm.Node.objects.all().count() - print "\nReseting %d nodes:" % n_count - progress = ProgressBar(n_count) - - for n in orm.Node.objects.all(): - try: - d = orm.Action.objects.get(node=n, action_type="delete", canceled=False) - n.deleted_id = d.id - except Exception, e: - n.deleted = None - - if orm.Action.objects.filter(node=n, action_type="revise").count() > 0: - n.last_edited_id = orm.Action.objects.filter(node=n, action_type="revise").order_by('-action_date')[0].id - else: - n.last_edited = None - - - if n.node_type == "answer" and n.marked: - n.extra_action_id = orm.Action.objects.get(node=n, action_type="acceptanswer", canceled=False).id - - if n.node_type == "question" and n.marked: - n.extra_action_id = orm.Action.objects.get(node=n, action_type="close", canceled=False).id - - n.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.activity': { - 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"}, - 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 23, 55, 36, 647000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 23, 55, 36, 708000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0027_auto__del_activity.py b/forum/modules/template_loader.py/forum/migrations/0027_auto__del_activity.py deleted file mode 100644 index 589b5bb..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0027_auto__del_activity.py +++ /dev/null @@ -1,254 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting model 'Activity' - db.delete_table(u'activity') - - - def backwards(self, orm): - - # Adding model 'Activity' - db.create_table(u'activity', ( - ('is_auditted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)), - ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])), - ('active_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('activity_type', self.gf('django.db.models.fields.SmallIntegerField')()), - )) - db.send_create_signal('forum', ['Activity']) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 1, 30, 30, 35000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 30, 1, 30, 30, 211000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0028_auto__add_field_action_canceled_ip__add_field_actionrepute_date.py b/forum/modules/template_loader.py/forum/migrations/0028_auto__add_field_action_canceled_ip__add_field_actionrepute_date.py deleted file mode 100644 index 1170bf7..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0028_auto__add_field_action_canceled_ip__add_field_actionrepute_date.py +++ /dev/null @@ -1,253 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding field 'Action.canceled_ip' - db.add_column('forum_action', 'canceled_ip', self.gf('django.db.models.fields.CharField')(default='', max_length=16), keep_default=False) - - # Adding field 'ActionRepute.date' - db.add_column('forum_actionrepute', 'date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now), keep_default=False) - - - def backwards(self, orm): - - # Deleting field 'Action.canceled_ip' - db.delete_column('forum_action', 'canceled_ip') - - # Deleting field 'ActionRepute.date' - db.delete_column('forum_actionrepute', 'date') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 21, 20, 24, 880000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 30, 21, 20, 35, 361000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0029_repute_dates.py b/forum/modules/template_loader.py/forum/migrations/0029_repute_dates.py deleted file mode 100644 index 14d6e62..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0029_repute_dates.py +++ /dev/null @@ -1,259 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - r_count = orm.ActionRepute.objects.count() - print "\nAdding dates to %d repute actions:" % r_count - progress = ProgressBar(r_count) - - for r in orm.ActionRepute.objects.all(): - a = r.action - - if r.by_canceled: - r.date = a.canceled_at - else: - r.date = a.action_date - - r.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 21, 21, 16, 237000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 30, 21, 21, 16, 298000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0030_auto__chg_field_action_extra__chg_field_keyvalue_value.py b/forum/modules/template_loader.py/forum/migrations/0030_auto__chg_field_action_extra__chg_field_keyvalue_value.py deleted file mode 100644 index cd4e1f1..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0030_auto__chg_field_action_extra__chg_field_keyvalue_value.py +++ /dev/null @@ -1,253 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Changing field 'Action.extra' - db.alter_column('forum_action', 'extra', self.gf('forum.models.utils.PickledObjectField')(null=True)) - - # Changing field 'KeyValue.value' - db.alter_column('forum_keyvalue', 'value', self.gf('forum.models.utils.PickledObjectField')(null=True)) - - - def backwards(self, orm): - - # Changing field 'Action.extra' - db.alter_column('forum_action', 'extra', self.gf('django.db.models.fields.CharField')(max_length=255)) - - # Changing field 'KeyValue.value' - db.alter_column('forum_keyvalue', 'value', self.gf('forum.models.utils.PickledObjectField')()) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 30, 23, 58, 8, 677000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 1, 23, 58, 8, 841000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0031_alter_pickle_storage.py b/forum/modules/template_loader.py/forum/migrations/0031_alter_pickle_storage.py deleted file mode 100644 index 5c8bb7b..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0031_alter_pickle_storage.py +++ /dev/null @@ -1,274 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar -from forum.models.utils import dbsafe_encode - -try: - from cPickle import loads, dumps -except ImportError: - from pickle import loads, dumps - -class Migration(DataMigration): - - def forwards(self, orm): - k_count = orm.KeyValue.objects.count() - print "\nConverting %d keyvalue objects:" % k_count - progress = ProgressBar(k_count) - - for kv in orm.KeyValue.objects.all(): - try: - o = loads(kv.value.encode('utf-8')) - except: - o = kv.value - - kv.value = dbsafe_encode(o, compress_object=True) - kv.save() - progress.update() - - print "\n...done\n" - - a_count = orm.Action.objects.count() - print "\nConverting %d actions extra fields:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Action.objects.all(): - a.extra = dbsafe_encode(a.extra, compress_object=True) - a.save() - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 1, 0, 0, 32, 37000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 2, 0, 0, 32, 86000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0032_auto__del_field_user_hide_ignored_questions__del_field_user_questions_.py b/forum/modules/template_loader.py/forum/migrations/0032_auto__del_field_user_hide_ignored_questions__del_field_user_questions_.py deleted file mode 100644 index 7a15772..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0032_auto__del_field_user_hide_ignored_questions__del_field_user_questions_.py +++ /dev/null @@ -1,263 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'User.hide_ignored_questions' - db.delete_column('forum_user', 'hide_ignored_questions') - - # Deleting field 'User.questions_per_page' - db.delete_column('forum_user', 'questions_per_page') - - # Deleting field 'User.email_key' - db.delete_column('forum_user', 'email_key') - - # Adding field 'Node.in_moderation' - db.add_column('forum_node', 'in_moderation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='moderated_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False) - - - def backwards(self, orm): - - # Adding field 'User.hide_ignored_questions' - db.add_column('forum_user', 'hide_ignored_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'User.questions_per_page' - db.add_column('forum_user', 'questions_per_page', self.gf('django.db.models.fields.SmallIntegerField')(default=10), keep_default=False) - - # Adding field 'User.email_key' - db.add_column('forum_user', 'email_key', self.gf('django.db.models.fields.CharField')(max_length=32, null=True), keep_default=False) - - # Deleting field 'Node.in_moderation' - db.delete_column('forum_node', 'in_moderation_id') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'object_name': 'Award', 'db_table': "u'award'"}, - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 2, 4, 54, 13, 72000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 4, 54, 13, 256000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0033_auto__add_flag__add_vote__add_field_badge_cls__del_unique_badge_type_n.py b/forum/modules/template_loader.py/forum/migrations/0033_auto__add_flag__add_vote__add_field_badge_cls__del_unique_badge_type_n.py deleted file mode 100644 index f2b38e8..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0033_auto__add_flag__add_vote__add_field_badge_cls__del_unique_badge_type_n.py +++ /dev/null @@ -1,333 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - db.rename_table('award', 'forum_award') - db.rename_table('badge', 'forum_badge') - db.rename_table('tag', 'forum_tag') - - # Adding model 'Flag' - db.create_table('forum_flag', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'])), - ('action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flag', unique=True, to=orm['forum.Action'])), - ('reason', self.gf('django.db.models.fields.CharField')(max_length=300)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - ('flagged_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - )) - #db.send_create_signal('forum', ['Flag']) - - # Adding model 'Vote' - db.create_table('forum_vote', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.Node'])), - ('action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='vote', unique=True, to=orm['forum.Action'])), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('value', self.gf('django.db.models.fields.SmallIntegerField')()), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])), - ('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)), - )) - #db.send_create_signal('forum', ['Vote']) - - # Adding field 'Badge.cls' - db.add_column('forum_badge', 'cls', self.gf('django.db.models.fields.CharField')(max_length=50, null=True), keep_default=False) - - # Removing unique constraint on 'Badge', fields ['type', 'name'] - db.delete_unique(u'forum_badge', ['type', 'name']) - - # Deleting field 'Award.notified' - db.delete_column(u'forum_award', 'notified') - - # Adding field 'Award.node' - db.add_column('forum_award', 'node', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['forum.Node'], null=True), keep_default=False) - - # Adding field 'Award.trigger' - db.add_column('forum_award', 'trigger', self.gf('django.db.models.fields.related.ForeignKey')(related_name='awards', null=True, to=orm['forum.Action']), keep_default=False) - - # Adding field 'Award.action' - db.add_column('forum_award', 'action', self.gf('django.db.models.fields.related.ForeignKey')(default=1, related_name='award', to=orm['forum.Action']), keep_default=False) - - # Adding unique constraint on 'Award', fields ['node', 'badge', 'user'] - #db.create_unique('forum_award', ['node_id', 'badge_id', 'user_id']) - - - def backwards(self, orm): - - # Deleting model 'Flag' - db.delete_table('forum_flag') - - # Deleting model 'Vote' - db.delete_table('forum_vote') - - # Deleting field 'Badge.cls' - db.delete_column('forum_badge', 'cls') - - # Adding unique constraint on 'Badge', fields ['type', 'name'] - db.create_unique(u'badge', ['type', 'name']) - - # Adding field 'Award.notified' - db.add_column(u'award', 'notified', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Deleting field 'Award.node' - db.delete_column('forum_award', 'node_id') - - # Deleting field 'Award.trigger' - db.delete_column('forum_award', 'trigger_id') - - # Deleting field 'Award.action' - db.delete_column('forum_award', 'action_id') - - # Removing unique constraint on 'Award', fields ['node', 'badge', 'user'] - db.delete_unique('forum_award', ['node_id', 'badge_id', 'user_id']) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award'", 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 11, 41, 55, 831000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 4, 11, 41, 59, 140000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0034_new_badge_and_award.py b/forum/modules/template_loader.py/forum/migrations/0034_new_badge_and_award.py deleted file mode 100644 index 89399f9..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0034_new_badge_and_award.py +++ /dev/null @@ -1,344 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar -from forum.models.utils import dbsafe_decode - -class Migration(DataMigration): - - def forwards(self, orm): - b_count = orm.Badge.objects.count() - print "\nConverting %d badges:" % b_count - progress = ProgressBar(b_count) - - for b in orm.Badge.objects.all(): - b.cls = "".join([s[0].upper() + s[1:] for s in b.slug.split('-')]) - b.save() - - progress.update() - - print "\n...done\n" - - ctypes = dict([(ct.name, ct.id) for ct in orm['contenttypes.ContentType'].objects.all()]) - - a_count = orm.Award.objects.count() - print "\nConverting %d awards:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Award.objects.all(): - if a.content_type.id == ctypes['user']: - a.node = None - else: - try: - a.node = orm.Node.objects.get(id=a.object_id) - except: - a.delete() - continue - - action = orm.Action( - user = a.user, - node = a.node, - action_type = "award", - action_date = a.awarded_at, - ) - - action.save() - - a.action = action - a.save() - - progress.update() - - print "\n...done\n" - - - a_count = orm.Action.objects.filter(action_type__in=("voteup", "votedown", "voteupcomment")).count() - print "\nConverting %d votes:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Action.objects.filter(action_type__in=("voteup", "votedown", "voteupcomment"), canceled=False): - v = orm.Vote( - user = a.user, - node = a.node, - value = (a.action_type in ("voteup", "voteupcomment")) and 1 or -1, - action = a, - voted_at = a.action_date - ) - - v.save() - - progress.update() - - print "\n...done\n" - - a_count = orm.Action.objects.filter(action_type__in=("voteup", "votedown", "voteupcomment")).count() - print "\nConverting %d votes:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Action.objects.filter(action_type="flag", canceled=False): - f = orm.Flag( - user = a.user, - node = a.node, - reason = a.extra, - action = a, - flagged_at = a.action_date - ) - - f.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award'", 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Badge']"}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 11, 43, 54, 540000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 4, 11, 43, 54, 592000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0035_auto__del_field_award_object_id__del_field_award_content_type__add_uni.py b/forum/modules/template_loader.py/forum/migrations/0035_auto__del_field_award_object_id__del_field_award_content_type__add_uni.py deleted file mode 100644 index b566ef0..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0035_auto__del_field_award_object_id__del_field_award_content_type__add_uni.py +++ /dev/null @@ -1,296 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'Award.object_id' - db.delete_column('forum_award', 'object_id') - - # Deleting field 'Award.content_type' - db.delete_column('forum_award', 'content_type_id') - - # Adding unique constraint on 'Award', fields ['action'] - db.create_unique('forum_award', ['action_id']) - - # Deleting field 'Badge.multiple' - db.delete_column('forum_badge', 'multiple') - - # Deleting field 'Badge.name' - db.delete_column('forum_badge', 'name') - - # Deleting field 'Badge.slug' - db.delete_column('forum_badge', 'slug') - - # Deleting field 'Badge.description' - db.delete_column('forum_badge', 'description') - - - def backwards(self, orm): - - # Adding field 'Award.object_id' - db.add_column('forum_award', 'object_id', self.gf('django.db.models.fields.PositiveIntegerField')(default=1), keep_default=False) - - # Adding field 'Award.content_type' - db.add_column('forum_award', 'content_type', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['contenttypes.ContentType']), keep_default=False) - - # Removing unique constraint on 'Award', fields ['action'] - db.delete_unique('forum_award', ['action_id']) - - # Adding field 'Badge.multiple' - db.add_column('forum_badge', 'multiple', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Badge.name' - db.add_column('forum_badge', 'name', self.gf('django.db.models.fields.CharField')(default=1, max_length=50), keep_default=False) - - # Adding field 'Badge.slug' - db.add_column('forum_badge', 'slug', self.gf('django.db.models.fields.SlugField')(blank=True, default=1, max_length=50, db_index=True), keep_default=False) - - # Adding field 'Badge.description' - db.add_column('forum_badge', 'description', self.gf('django.db.models.fields.CharField')(default=1, max_length=300), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 11, 46, 22, 80000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 4, 11, 46, 28, 428000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0036_auto__add_nodestate__chg_field_award_action__add_field_node_state_stri.py b/forum/modules/template_loader.py/forum/migrations/0036_auto__add_nodestate__chg_field_award_action__add_field_node_state_stri.py deleted file mode 100644 index ac16256..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0036_auto__add_nodestate__chg_field_award_action__add_field_node_state_stri.py +++ /dev/null @@ -1,298 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'NodeState' - db.create_table('forum_nodestate', ( - ('node', self.gf('django.db.models.fields.related.ForeignKey')(related_name='state', to=orm['forum.Node'])), - ('state_type', self.gf('django.db.models.fields.CharField')(max_length=16)), - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='node_state', unique=True, to=orm['forum.Action'])), - )) - db.send_create_signal('forum', ['NodeState']) - - # Changing field 'Award.action' - db.alter_column('forum_award', 'action_id', self.gf('django.db.models.fields.related.OneToOneField')(unique=True, to=orm['forum.Action'])) - - # Adding field 'Node.state_string' - db.add_column('forum_node', 'state_string', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False) - - # Changing field 'Flag.action' - db.alter_column('forum_flag', 'action_id', self.gf('django.db.models.fields.related.OneToOneField')(unique=True, to=orm['forum.Action'])) - - # Changing field 'Vote.action' - db.alter_column('forum_vote', 'action_id', self.gf('django.db.models.fields.related.OneToOneField')(unique=True, to=orm['forum.Action'])) - - - def backwards(self, orm): - - # Deleting model 'NodeState' - db.delete_table('forum_nodestate') - - # Changing field 'Award.action' - db.alter_column('forum_award', 'action_id', self.gf('django.db.models.fields.related.ForeignKey')(unique=True, to=orm['forum.Action'])) - - # Deleting field 'Node.state_string' - db.delete_column('forum_node', 'state_string') - - # Changing field 'Flag.action' - db.alter_column('forum_flag', 'action_id', self.gf('django.db.models.fields.related.ForeignKey')(unique=True, to=orm['forum.Action'])) - - # Changing field 'Vote.action' - db.alter_column('forum_vote', 'action_id', self.gf('django.db.models.fields.related.ForeignKey')(unique=True, to=orm['forum.Action'])) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'state'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 24, 12, 24, 54, 587000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 25, 12, 24, 54, 760000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0037_fill_node_state.py b/forum/modules/template_loader.py/forum/migrations/0037_fill_node_state.py deleted file mode 100644 index 79ed9c9..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0037_fill_node_state.py +++ /dev/null @@ -1,317 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - n_count = orm.Node.objects.count() - print "\nConverting %s node states:" % n_count - progress = ProgressBar(n_count) - - for n in orm.Node.objects.all(): - ss = "" - - if n.deleted: - s = orm.NodeState( - node = n, - action = n.deleted, - state_type = "deleted" - ) - s.save() - ss += "(deleted)" - - if n.wiki: - try: - action = orm.Action.objects.get(node=n, action_type="wikify") - s = orm.NodeState( - node = n, - action = action, - state_type = "wiki" - ) - s.save() - ss += "(wiki)" - except: - pass - - if n.node_type == "question" and n.extra_action: - s = orm.NodeState( - node = n, - action = n.extra_action, - state_type = "closed" - ) - s.save() - ss += "(closed)" - - if n.node_type == "answer" and n.extra_action: - s = orm.NodeState( - node = n, - action = n.extra_action, - state_type = "accepted" - ) - s.save() - ss += "(accepted)" - - if ss: - n.state_string = ss - n.save() - - progress.update() - - print "\n...done\n" - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'state'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 24, 12, 26, 33, 742000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 25, 12, 26, 33, 797000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0038_auto__del_field_node_wiki__del_field_node_deleted__del_field_node_extr.py b/forum/modules/template_loader.py/forum/migrations/0038_auto__del_field_node_wiki__del_field_node_deleted__del_field_node_extr.py deleted file mode 100644 index c38e21f..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0038_auto__del_field_node_wiki__del_field_node_deleted__del_field_node_extr.py +++ /dev/null @@ -1,282 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'Node.wiki' - db.delete_column('forum_node', 'wiki') - - # Deleting field 'Node.deleted' - db.delete_column('forum_node', 'deleted_id') - - # Deleting field 'Node.extra_action' - db.delete_column('forum_node', 'extra_action_id') - - # Deleting field 'Node.in_moderation' - db.delete_column('forum_node', 'in_moderation_id') - - - def backwards(self, orm): - - # Adding field 'Node.wiki' - db.add_column('forum_node', 'wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Node.deleted' - db.add_column('forum_node', 'deleted', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False) - - # Adding field 'Node.extra_action' - db.add_column('forum_node', 'extra_action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='extra_node', null=True, to=orm['forum.Action']), keep_default=False) - - # Adding field 'Node.in_moderation' - db.add_column('forum_node', 'in_moderation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='moderated_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 24, 19, 29, 24, 232000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 25, 19, 29, 24, 443000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0039_auto__del_field_tag_deleted__del_field_tag_deleted_by__del_field_tag_d.py b/forum/modules/template_loader.py/forum/migrations/0039_auto__del_field_tag_deleted__del_field_tag_deleted_by__del_field_tag_d.py deleted file mode 100644 index 4a91aa7..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0039_auto__del_field_tag_deleted__del_field_tag_deleted_by__del_field_tag_d.py +++ /dev/null @@ -1,273 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Deleting field 'Tag.deleted' - db.delete_column('forum_tag', 'deleted') - - # Deleting field 'Tag.deleted_by' - db.delete_column('forum_tag', 'deleted_by_id') - - # Deleting field 'Tag.deleted_at' - db.delete_column('forum_tag', 'deleted_at') - - - def backwards(self, orm): - - # Adding field 'Tag.deleted' - db.add_column('forum_tag', 'deleted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False) - - # Adding field 'Tag.deleted_by' - db.add_column('forum_tag', 'deleted_by', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_tags', null=True, to=orm['forum.User'], blank=True), keep_default=False) - - # Adding field 'Tag.deleted_at' - db.add_column('forum_tag', 'deleted_at', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False) - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 25, 0, 18, 31, 631000)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 26, 0, 18, 31, 914000)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0040_auto__chg_field_nodestate_action__add_field_node_extra.py b/forum/modules/template_loader.py/forum/migrations/0040_auto__chg_field_nodestate_action__add_field_node_extra.py deleted file mode 100644 index 0b28278..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0040_auto__chg_field_nodestate_action__add_field_node_extra.py +++ /dev/null @@ -1,260 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - # Adding field 'Node.extra' - db.add_column('forum_node', 'extra', self.gf('forum.models.utils.PickledObjectField')(null=True), keep_default=False) - - - def backwards(self, orm): - # Deleting field 'Node.extra' - db.delete_column('forum_node', 'extra') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 6, 4, 12, 12, 32, 595305)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 6, 5, 12, 12, 32, 734979)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0041_action_ip_fixes.py b/forum/modules/template_loader.py/forum/migrations/0041_action_ip_fixes.py deleted file mode 100644 index 9c8a24f..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0041_action_ip_fixes.py +++ /dev/null @@ -1,300 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -class Migration(DataMigration): - - def forwards(self, orm): - a_count = orm.Action.objects.filter(action_type="bonusrep").count() - print "\nConverting %s bonus actions:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Action.objects.filter(action_type="bonusrep"): - a.user = orm.User.objects.get(id=a.extra['awarding_user']) - a.save() - - progress.update() - - print "\n...done\n" - - - s_count = orm.Action.objects.filter(action_type="suspend").count() - print "\nConverting %s suspend actions:" % a_count - progress = ProgressBar(s_count) - - for a in orm.Action.objects.filter(action_type="suspend"): - suspended = a.user - - a.user = orm.User.objects.get(id=a.extra['suspender']) - a.save() - - rep = orm.ActionRepute(user=suspended, action=a, value=0, date=a.action_date) - rep.save() - - progress.update() - - print "\n...done\n" - - a_count = orm.Action.objects.filter(action_type="award").count() - print "\nConverting %s award actions:" % a_count - progress = ProgressBar(a_count) - - for a in orm.Action.objects.filter(action_type="award"): - a.ip = '' - a.save() - - progress.update() - - print "\n...done\n" - - - - def backwards(self, orm): - "Write your backwards methods here." - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 6, 13, 16, 42, 20, 908594)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 6, 14, 16, 42, 20, 944052)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0042_auto__add_userproperty.py b/forum/modules/template_loader.py/forum/migrations/0042_auto__add_userproperty.py deleted file mode 100644 index ecbd7c9..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0042_auto__add_userproperty.py +++ /dev/null @@ -1,275 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding model 'UserProperty' - db.create_table('forum_userproperty', ( - ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), - ('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='properties', to=orm['forum.User'])), - ('key', self.gf('django.db.models.fields.CharField')(max_length=16)), - ('value', self.gf('forum.models.utils.PickledObjectField')(null=True)), - )) - db.send_create_signal('forum', ['UserProperty']) - - - def backwards(self, orm): - - # Deleting model 'UserProperty' - db.delete_table('forum_userproperty') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 6, 30, 19, 11, 19, 580720)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.userproperty': { - 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 1, 19, 11, 19, 671272)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0043_auto__add_field_subscriptionsettings_send_digest__add_field_action_rea.py b/forum/modules/template_loader.py/forum/migrations/0043_auto__add_field_subscriptionsettings_send_digest__add_field_action_rea.py deleted file mode 100644 index dc25ef0..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0043_auto__add_field_subscriptionsettings_send_digest__add_field_action_rea.py +++ /dev/null @@ -1,277 +0,0 @@ -# encoding: utf-8 -import datetime -from south.db import db -from south.v2 import SchemaMigration -from django.db import models - -class Migration(SchemaMigration): - - def forwards(self, orm): - - # Adding field 'SubscriptionSettings.send_digest' - db.add_column('forum_subscriptionsettings', 'send_digest', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True), keep_default=False) - - # Adding field 'Action.real_user' - db.add_column('forum_action', 'real_user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='proxied_actions', null=True, to=orm['forum.User']), keep_default=False) - - - def backwards(self, orm): - - # Deleting field 'SubscriptionSettings.send_digest' - db.delete_column('forum_subscriptionsettings', 'send_digest') - - # Deleting field 'Action.real_user' - db.delete_column('forum_action', 'real_user_id') - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 1, 13, 6, 46, 789996)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.userproperty': { - 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 2, 13, 6, 46, 883626)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/0044_markdown_cache_migration.py b/forum/modules/template_loader.py/forum/migrations/0044_markdown_cache_migration.py deleted file mode 100644 index ac31742..0000000 --- a/forum/modules/template_loader.py/forum/migrations/0044_markdown_cache_migration.py +++ /dev/null @@ -1,271 +0,0 @@ -# encoding: utf-8 -import os, sys -import datetime -from south.db import db -from south.v2 import DataMigration -from django.db import models -from forum.migrations import ProgressBar - -import markdown -from django.utils.safestring import mark_safe -from django.utils.html import strip_tags -from forum.utils.html import sanitize_html - -class Migration(DataMigration): - - def forwards(self, orm): - sys.path.append(os.path.join(os.path.dirname(__file__),'../markdownext')) - - count = orm.Node.objects.count() - progress = ProgressBar(count) - - for node in orm.Node.objects.all(): - rev = node.active_revision - - if not rev: - try: - rev = node.revisions.order_by('-revision')[0] - except: - continue - node.body = sanitize_html(markdown.markdown(rev.body, ['urlize'])) - node.save() - progress.update() - - def backwards(self, orm): - "Write your backwards methods here." - - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 12, 22, 17, 54, 20, 862306)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.userproperty': { - 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 12, 23, 17, 54, 20, 937539)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] diff --git a/forum/modules/template_loader.py/forum/migrations/__init__.py b/forum/modules/template_loader.py/forum/migrations/__init__.py deleted file mode 100644 index 01fd2df..0000000 --- a/forum/modules/template_loader.py/forum/migrations/__init__.py +++ /dev/null @@ -1,16 +0,0 @@ -import sys - -class ProgressBar(object): - def __init__(self, full): - self.full = full - self.count = 0 - - self.print_bar(0) - - def print_bar(self, progress): - sys.stdout.write("[%s%s] %d%%\r" % ('=' * progress, ' ' * (100 - progress), progress)) - sys.stdout.flush() - - def update(self): - self.count += 1 - self.print_bar(int((float(self.count) / float(self.full)) * 100)) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/models/__init__.py b/forum/modules/template_loader.py/forum/models/__init__.py deleted file mode 100644 index 2164e36..0000000 --- a/forum/modules/template_loader.py/forum/models/__init__.py +++ /dev/null @@ -1,39 +0,0 @@ -import forum.utils.djangofix -from question import Question ,QuestionRevision, QuestionSubscription -from answer import Answer, AnswerRevision -from tag import Tag, MarkedTag -from user import User, ValidationHash, AuthKeyUserAssociation, SubscriptionSettings -from node import Node, NodeRevision, NodeState, NodeMetaClass -from comment import Comment -from action import Action, ActionRepute -from meta import Vote, Flag, Badge, Award -from utils import KeyValue -from page import Page - -try: - from south.modelsinspector import add_introspection_rules - add_introspection_rules([], [r"^forum\.models\.\w+\.\w+"]) -except: - pass - -from base import * - -__all__ = [ - 'Node', 'NodeRevision', 'NodeState', - 'Question', 'QuestionSubscription', 'QuestionRevision', - 'Answer', 'AnswerRevision', - 'Tag', 'Comment', 'MarkedTag', 'Badge', 'Award', - 'ValidationHash', 'AuthKeyUserAssociation', 'SubscriptionSettings', 'KeyValue', 'User', - 'Action', 'ActionRepute', 'Vote', 'Flag', 'Page' - ] - - -from forum.modules import get_modules_script_classes - -for k, v in get_modules_script_classes('models', models.Model).items(): - if not k in __all__: - __all__.append(k) - exec "%s = v" % k - -NodeMetaClass.setup_relations() -BaseMetaClass.setup_denormalizes() diff --git a/forum/modules/template_loader.py/forum/models/action.py b/forum/modules/template_loader.py/forum/models/action.py deleted file mode 100644 index 7fd2e6f..0000000 --- a/forum/modules/template_loader.py/forum/models/action.py +++ /dev/null @@ -1,319 +0,0 @@ -from django.utils.translation import ugettext as _ -from utils import PickledObjectField -from threading import Thread -from forum.utils import html -from base import * -import re - -class ActionQuerySet(CachedQuerySet): - def obj_from_datadict(self, datadict): - cls = ActionProxyMetaClass.types.get(datadict['action_type'], None) - if cls: - obj = cls() - obj.__dict__.update(datadict) - return obj - else: - return super(ActionQuerySet, self).obj_from_datadict(datadict) - - def get(self, *args, **kwargs): - action = super(ActionQuerySet, self).get(*args, **kwargs).leaf() - - if not isinstance(action, self.model): - raise self.model.DoesNotExist() - - return action - -class ActionManager(CachedManager): - use_for_related_fields = True - - def get_query_set(self): - qs = ActionQuerySet(self.model) - - if self.model is not Action: - return qs.filter(action_type=self.model.get_type()) - else: - return qs - - def get_for_types(self, types, *args, **kwargs): - kwargs['action_type__in'] = [t.get_type() for t in types] - return self.get(*args, **kwargs) - - -class Action(BaseModel): - user = models.ForeignKey('User', related_name="actions") - real_user = models.ForeignKey('User', related_name="proxied_actions", null=True) - ip = models.CharField(max_length=16) - node = models.ForeignKey('Node', null=True, related_name="actions") - action_type = models.CharField(max_length=16) - action_date = models.DateTimeField(default=datetime.datetime.now) - - extra = PickledObjectField() - - canceled = models.BooleanField(default=False) - canceled_by = models.ForeignKey('User', null=True, related_name="canceled_actions") - canceled_at = models.DateTimeField(null=True) - canceled_ip = models.CharField(max_length=16) - - hooks = {} - - objects = ActionManager() - - @property - def at(self): - return self.action_date - - @property - def by(self): - return self.user - - def repute_users(self): - pass - - def process_data(self, **data): - pass - - def process_action(self): - pass - - def cancel_action(self): - pass - - @property - def verb(self): - return "" - - def describe(self, viewer=None): - return self.__class__.__name__ - - def get_absolute_url(self): - if self.node: - return self.node.get_absolute_url() - else: - return self.user.get_profile_url() - - def repute(self, user, value): - repute = ActionRepute(action=self, user=user, value=value) - repute.save() - return repute - - def cancel_reputes(self): - for repute in self.reputes.all(): - cancel = ActionRepute(action=self, user=repute.user, value=(-repute.value), by_canceled=True) - cancel.save() - - def leaf(self): - leaf_cls = ActionProxyMetaClass.types.get(self.action_type, None) - - if leaf_cls is None: - return self - - leaf = leaf_cls() - d = self._as_dict() - leaf.__dict__.update(self._as_dict()) - l = leaf._as_dict() - return leaf - - @classmethod - def get_type(cls): - return re.sub(r'action$', '', cls.__name__.lower()) - - def save(self, data=None, threaded=True, *args, **kwargs): - isnew = False - - if not self.id: - self.action_type = self.__class__.get_type() - isnew = True - - if data: - self.process_data(**data) - - super(Action, self).save(*args, **kwargs) - - if isnew: - if (self.node is None) or (not self.node.nis.wiki): - self.repute_users() - self.process_action() - self.trigger_hooks(threaded, True) - - return self - - def delete(self, *args, **kwargs): - self.cancel_action() - super(Action, self).delete(*args, **kwargs) - - def cancel(self, user=None, ip=None): - if not self.canceled: - self.canceled = True - self.canceled_at = datetime.datetime.now() - self.canceled_by = (user is None) and self.user or user - if ip: - self.canceled_ip = ip - self.save() - self.cancel_reputes() - self.cancel_action() - #self.trigger_hooks(False) - - @classmethod - def get_current(cls, **kwargs): - kwargs['canceled'] = False - - try: - return cls.objects.get(**kwargs) - except cls.MultipleObjectsReturned: - logging.error("Got multiple values for action %s with args %s", cls.__name__, - ", ".join(["%s='%s'" % i for i in kwargs.items()])) - raise - except cls.DoesNotExist: - return None - - @classmethod - def hook(cls, fn): - if not Action.hooks.get(cls, None): - Action.hooks[cls] = [] - - Action.hooks[cls].append(fn) - - def trigger_hooks(self, threaded, new=True): - if threaded: - thread = Thread(target=trigger_hooks, args=[self, Action.hooks, new]) - thread.setDaemon(True) - thread.start() - else: - trigger_hooks(self, Action.hooks, new) - - class Meta: - app_label = 'forum' - -def trigger_hooks(action, hooks, new): - for cls, hooklist in hooks.items(): - if isinstance(action, cls): - for hook in hooklist: - try: - hook(action=action, new=new) - except Exception, e: - import traceback - logging.error("Error in %s hook: %s" % (cls.__name__, str(e))) - logging.error(traceback.format_exc()) - -class ActionProxyMetaClass(BaseMetaClass): - types = {} - - def __new__(cls, *args, **kwargs): - new_cls = super(ActionProxyMetaClass, cls).__new__(cls, *args, **kwargs) - cls.types[new_cls.get_type()] = new_cls - - class Meta: - proxy = True - - new_cls.Meta = Meta - return new_cls - -class ActionProxy(Action): - __metaclass__ = ActionProxyMetaClass - - def friendly_username(self, viewer, user): - return (viewer == user) and _('You') or user.username - - def friendly_ownername(self, owner, user): - return (owner == user) and _('your') or user.username - - def viewer_or_user_verb(self, viewer, user, viewer_verb, user_verb): - return (viewer == user) and viewer_verb or user_verb - - def hyperlink(self, url, title, **attrs): - return html.hyperlink(url, title, **attrs) - - def describe_node(self, viewer, node): - node_link = self.hyperlink(node.get_absolute_url(), node.headline) - - if node.parent: - node_desc = _("on %(link)s") % {'link': node_link} - else: - node_desc = node_link - - return _("%(user)s %(node_name)s %(node_desc)s") % { - 'user': self.hyperlink(node.author.get_profile_url(), self.friendly_ownername(viewer, node.author)), - 'node_name': node.friendly_name, - 'node_desc': node_desc, - } - - def affected_links(self, viewer): - return ", ".join([self.hyperlink(u.get_profile_url(), self.friendly_username(viewer, u)) for u in set([r.user for r in self.reputes.all()])]) - - class Meta: - proxy = True - -class DummyActionProxyMetaClass(type): - def __new__(cls, *args, **kwargs): - new_cls = super(DummyActionProxyMetaClass, cls).__new__(cls, *args, **kwargs) - ActionProxyMetaClass.types[new_cls.get_type()] = new_cls - return new_cls - -class DummyActionProxy(object): - __metaclass__ = DummyActionProxyMetaClass - - hooks = [] - - def __init__(self, ip=None): - self.ip = ip - - def process_data(self, **data): - pass - - def process_action(self): - pass - - def save(self, data=None): - self.process_action() - - if data: - self.process_data(**data) - - for hook in self.__class__.hooks: - hook(self, True) - - @classmethod - def get_type(cls): - return re.sub(r'action$', '', cls.__name__.lower()) - - @classmethod - def hook(cls, fn): - cls.hooks.append(fn) - - -class ActionRepute(models.Model): - action = models.ForeignKey(Action, related_name='reputes') - date = models.DateTimeField(default=datetime.datetime.now) - user = models.ForeignKey('User', related_name='reputes') - value = models.IntegerField(default=0) - by_canceled = models.BooleanField(default=False) - - @property - def positive(self): - if self.value > 0: return self.value - return 0 - - @property - def negative(self): - if self.value < 0: return self.value - return 0 - - def _add_to_rep(self, value): - if self.user.reputation + value < 0: - return 0 - else: - return models.F('reputation') + value - - def save(self, *args, **kwargs): - super(ActionRepute, self).save(*args, **kwargs) - self.user.reputation = self._add_to_rep(self.value) - self.user.save() - - def delete(self): - self.user.reputation = self._add_to_rep(-self.value) - self.user.save() - super(ActionRepute, self).delete() - - class Meta: - app_label = 'forum' - diff --git a/forum/modules/template_loader.py/forum/models/answer.py b/forum/modules/template_loader.py/forum/models/answer.py deleted file mode 100644 index 04735a4..0000000 --- a/forum/modules/template_loader.py/forum/models/answer.py +++ /dev/null @@ -1,24 +0,0 @@ -from base import * -from django.utils.translation import ugettext as _ - -class Answer(Node): - friendly_name = _("answer") - - class Meta(Node.Meta): - proxy = True - - @property - def accepted(self): - return self.nis.accepted - - @property - def headline(self): - return self.question.headline - - def get_absolute_url(self): - return '%s/%s' % (self.question.get_absolute_url(), self.id) - - -class AnswerRevision(NodeRevision): - class Meta: - proxy = True \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/models/base.py b/forum/modules/template_loader.py/forum/models/base.py deleted file mode 100644 index 2f934a9..0000000 --- a/forum/modules/template_loader.py/forum/models/base.py +++ /dev/null @@ -1,212 +0,0 @@ -import datetime -import re -from urllib import quote_plus, urlencode -from django.db import models, IntegrityError, connection, transaction -from django.utils.http import urlquote as django_urlquote -from django.utils.html import strip_tags -from django.core.urlresolvers import reverse -from django.contrib.contenttypes import generic -from django.contrib.contenttypes.models import ContentType -from django.core.cache import cache -from django.template.defaultfilters import slugify -from django.db.models.signals import post_delete, post_save, pre_save, pre_delete -from django.utils.translation import ugettext as _ -from django.utils.safestring import mark_safe -from django.contrib.sitemaps import ping_google -import django.dispatch -from forum import settings -import logging - - -class LazyQueryList(object): - def __init__(self, model, items): - self.model = model - self.items = items - - def __getitem__(self, k): - return self.model.objects.get(id=self.items[k]) - - def __iter__(self): - for id in self.items: - yield self.model.objects.get(id=id) - - def __len__(self): - return len(self.items) - -class CachedQuerySet(models.query.QuerySet): - def lazy(self): - if (not len(self.query.extra)) and (not len(self.query.aggregates)): - return LazyQueryList(self.model, list(self.values_list('id', flat=True))) - else: - return self - - def obj_from_datadict(self, datadict): - obj = self.model() - obj.__dict__.update(datadict) - return obj - - def get(self, *args, **kwargs): - key = self.model.infer_cache_key(kwargs) - - if key is not None: - obj = cache.get(key) - - if obj is None: - obj = super(CachedQuerySet, self).get(*args, **kwargs) - obj.cache() - else: - obj = self.obj_from_datadict(obj) - obj.reset_original_state() - - return obj - - return super(CachedQuerySet, self).get(*args, **kwargs) - -class CachedManager(models.Manager): - use_for_related_fields = True - - def get_query_set(self): - return CachedQuerySet(self.model) - - def get_or_create(self, *args, **kwargs): - try: - return self.get(*args, **kwargs) - except: - return super(CachedManager, self).get_or_create(*args, **kwargs) - - -class DenormalizedField(object): - def __init__(self, manager, *args, **kwargs): - self.manager = manager - self.filter = (args, kwargs) - - def setup_class(self, cls, name): - dict_name = '_%s_dencache_' % name - - def getter(inst): - val = inst.__dict__.get(dict_name, None) - - if val is None: - val = getattr(inst, self.manager).filter(*self.filter[0], **self.filter[1]).count() - inst.__dict__[dict_name] = val - inst.cache() - - return val - - def reset_cache(inst): - inst.__dict__.pop(dict_name, None) - inst.uncache() - - cls.add_to_class(name, property(getter)) - cls.add_to_class("reset_%s_cache" % name, reset_cache) - - -class BaseMetaClass(models.Model.__metaclass__): - to_denormalize = [] - - def __new__(cls, *args, **kwargs): - new_cls = super(BaseMetaClass, cls).__new__(cls, *args, **kwargs) - - BaseMetaClass.to_denormalize.extend( - [(new_cls, name, field) for name, field in new_cls.__dict__.items() if isinstance(field, DenormalizedField)] - ) - - return new_cls - - @classmethod - def setup_denormalizes(cls): - for new_cls, name, field in BaseMetaClass.to_denormalize: - field.setup_class(new_cls, name) - - -class BaseModel(models.Model): - __metaclass__ = BaseMetaClass - - objects = CachedManager() - - class Meta: - abstract = True - app_label = 'forum' - - def __init__(self, *args, **kwargs): - super(BaseModel, self).__init__(*args, **kwargs) - self.reset_original_state(kwargs.keys()) - - def reset_original_state(self, reset_fields=None): - self._original_state = self._as_dict() - - if reset_fields: - self._original_state.update(dict([(f, None) for f in reset_fields])) - - def get_dirty_fields(self): - return [f.name for f in self._meta.fields if self._original_state[f.attname] != self.__dict__[f.attname]] - - def _as_dict(self): - return dict([(name, getattr(self, name)) for name in - ([f.attname for f in self._meta.fields] + [k for k in self.__dict__.keys() if k.endswith('_dencache_')]) - ]) - - def _get_update_kwargs(self): - return dict([ - (f.name, getattr(self, f.name)) for f in self._meta.fields if self._original_state[f.attname] != self.__dict__[f.attname] - ]) - - def save(self, full_save=False, *args, **kwargs): - put_back = [k for k, v in self.__dict__.items() if isinstance(v, models.expressions.ExpressionNode)] - - if self.id and not full_save: - self.__class__.objects.filter(id=self.id).update(**self._get_update_kwargs()) - else: - super(BaseModel, self).save() - - if put_back: - try: - self.__dict__.update( - self.__class__.objects.filter(id=self.id).values(*put_back)[0] - ) - except: - logging.error("Unable to read %s from %s" % (", ".join(put_back), self.__class__.__name__)) - self.uncache() - - self.reset_original_state() - self.cache() - - @classmethod - def _generate_cache_key(cls, key, group=None): - if group is None: - group = cls.__name__ - - return '%s:%s:%s' % (settings.APP_URL, group, key) - - def cache_key(self): - return self._generate_cache_key(self.id) - - @classmethod - def infer_cache_key(cls, querydict): - try: - pk = [v for (k,v) in querydict.items() if k in ('pk', 'pk__exact', 'id', 'id__exact' - ) or k.endswith('_ptr__pk') or k.endswith('_ptr__id')][0] - - return cls._generate_cache_key(pk) - except: - return None - - def cache(self): - cache.set(self.cache_key(), self._as_dict(), 60 * 60) - - def uncache(self): - cache.delete(self.cache_key()) - - def delete(self): - self.uncache() - super(BaseModel, self).delete() - - -from user import User -from node import Node, NodeRevision, NodeManager -from action import Action - - - - - diff --git a/forum/modules/template_loader.py/forum/models/comment.py b/forum/modules/template_loader.py/forum/models/comment.py deleted file mode 100644 index b62e7b5..0000000 --- a/forum/modules/template_loader.py/forum/models/comment.py +++ /dev/null @@ -1,58 +0,0 @@ -from base import * -from django.utils.translation import ugettext as _ -import re - -class Comment(Node): - friendly_name = _("comment") - - class Meta(Node.Meta): - ordering = ('-added_at',) - proxy = True - - def _update_parent_comment_count(self, diff): - parent = self.parent - parent.comment_count = parent.comment_count + diff - parent.save() - - @property - def comment(self): - if settings.FORM_ALLOW_MARKDOWN_IN_COMMENTS: - return self.as_markdown('limitedsyntax') - else: - return self.body - - @property - def headline(self): - return self.absolute_parent.headline - - @property - def content_object(self): - return self.parent.leaf - - def save(self, *args, **kwargs): - super(Comment,self).save(*args, **kwargs) - - if not self.id: - self.parent.reset_comment_count_cache() - - def mark_deleted(self, user): - if super(Comment, self).mark_deleted(user): - self.parent.reset_comment_count_cache() - - def unmark_deleted(self): - if super(Comment, self).unmark_deleted(): - self.parent.reset_comment_count_cache() - - def is_reply_to(self, user): - inreply = re.search('@\w+', self.body) - if inreply is not None: - return user.username.startswith(inreply.group(0)) - - return False - - def get_absolute_url(self): - return self.abs_parent.get_absolute_url() + "#%d" % self.id - - def __unicode__(self): - return self.body - diff --git a/forum/modules/template_loader.py/forum/models/meta.py b/forum/modules/template_loader.py/forum/models/meta.py deleted file mode 100644 index 41dc5d6..0000000 --- a/forum/modules/template_loader.py/forum/models/meta.py +++ /dev/null @@ -1,99 +0,0 @@ -from django.utils.translation import ugettext as _ -from base import * - -class Vote(models.Model): - user = models.ForeignKey(User, related_name="votes") - node = models.ForeignKey(Node, related_name="votes") - value = models.SmallIntegerField() - action = models.OneToOneField(Action, related_name="vote") - voted_at = models.DateTimeField(default=datetime.datetime.now) - - class Meta: - app_label = 'forum' - unique_together = ('user', 'node') - - -class Flag(models.Model): - user = models.ForeignKey(User, related_name="flags") - node = models.ForeignKey(Node, related_name="flags") - reason = models.CharField(max_length=300) - action = models.OneToOneField(Action, related_name="flag") - flagged_at = models.DateTimeField(default=datetime.datetime.now) - - class Meta: - app_label = 'forum' - unique_together = ('user', 'node') - -class BadgesQuerySet(models.query.QuerySet): - def get(self, *args, **kwargs): - try: - pk = [v for (k,v) in kwargs.items() if k in ('pk', 'pk__exact', 'id', 'id__exact')][0] - except: - return super(BadgesQuerySet, self).get(*args, **kwargs) - - from forum.badges.base import BadgesMeta - badge = BadgesMeta.by_id.get(int(pk), None) - if not badge: - return super(BadgesQuerySet, self).get(*args, **kwargs) - return badge.ondb - - -class BadgeManager(models.Manager): - use_for_related_fields = True - - def get_query_set(self): - return BadgesQuerySet(self.model) - -class Badge(models.Model): - GOLD = 1 - SILVER = 2 - BRONZE = 3 - - type = models.SmallIntegerField() - cls = models.CharField(max_length=50, null=True) - awarded_count = models.PositiveIntegerField(default=0) - - awarded_to = models.ManyToManyField(User, through='Award', related_name='badges') - - objects = BadgeManager() - - @property - def name(self): - cls = self.__dict__.get('_class', None) - return cls and cls.name or _("Unknown") - - @property - def description(self): - cls = self.__dict__.get('_class', None) - return cls and cls.description or _("No description available") - - @models.permalink - def get_absolute_url(self): - return ('badge', [], {'id': self.id, 'slug': slugify(self.name)}) - - def save(self, *args, **kwargs): - if isinstance(self.awarded_count, models.expressions.ExpressionNode): - super(Badge, self).save(*args, **kwargs) - self.awarded_count = self.__class__.objects.filter(id=self.id).values_list('awarded_count', flat=True)[0] - else: - super(Badge, self).save(*args, **kwargs) - - - class Meta: - app_label = 'forum' - - -class Award(models.Model): - user = models.ForeignKey(User) - badge = models.ForeignKey('Badge', related_name="awards") - node = models.ForeignKey(Node, null=True) - - awarded_at = models.DateTimeField(default=datetime.datetime.now) - - trigger = models.ForeignKey(Action, related_name="awards", null=True) - action = models.OneToOneField(Action, related_name="award") - - - class Meta: - unique_together = ('user', 'badge', 'node') - app_label = 'forum' \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/models/node.py b/forum/modules/template_loader.py/forum/models/node.py deleted file mode 100644 index ebe9139..0000000 --- a/forum/modules/template_loader.py/forum/models/node.py +++ /dev/null @@ -1,465 +0,0 @@ -from base import * -import re -from tag import Tag - -import markdown -from django.utils.translation import ugettext as _ -from django.utils.safestring import mark_safe -from django.utils.html import strip_tags -from forum.utils.html import sanitize_html -from utils import PickledObjectField - -class NodeContent(models.Model): - title = models.CharField(max_length=300) - tagnames = models.CharField(max_length=125) - author = models.ForeignKey(User, related_name='%(class)ss') - body = models.TextField() - - @property - def user(self): - return self.author - - @property - def html(self): - return self.body - - @classmethod - def _as_markdown(cls, content, *extensions): - try: - return mark_safe(sanitize_html(markdown.markdown(content, extensions=extensions))) - except Exception, e: - import traceback - logging.error("Caught exception %s in markdown parser rendering %s %s:\s %s" % ( - str(e), cls.__name__, str(e), traceback.format_exc())) - return '' - - def as_markdown(self, *extensions): - return self._as_markdown(self.body, *extensions) - - @property - def headline(self): - return self.title - - def tagname_list(self): - if self.tagnames: - t = [name.strip() for name in self.tagnames.split(u' ') if name] - return [name.strip() for name in self.tagnames.split(u' ') if name] - else: - return [] - - def tagname_meta_generator(self): - return u','.join([tag for tag in self.tagname_list()]) - - class Meta: - abstract = True - app_label = 'forum' - -class NodeMetaClass(BaseMetaClass): - types = {} - - def __new__(cls, *args, **kwargs): - new_cls = super(NodeMetaClass, cls).__new__(cls, *args, **kwargs) - - if not new_cls._meta.abstract and new_cls.__name__ is not 'Node': - NodeMetaClass.types[new_cls.get_type()] = new_cls - - return new_cls - - @classmethod - def setup_relations(cls): - for node_cls in NodeMetaClass.types.values(): - NodeMetaClass.setup_relation(node_cls) - - @classmethod - def setup_relation(cls, node_cls): - name = node_cls.__name__.lower() - - def children(self): - return node_cls.objects.filter(parent=self) - - def parent(self): - if (self.parent is not None) and self.parent.node_type == name: - return self.parent.leaf - - return None - - Node.add_to_class(name + 's', property(children)) - Node.add_to_class(name, property(parent)) - - -class NodeQuerySet(CachedQuerySet): - def obj_from_datadict(self, datadict): - cls = NodeMetaClass.types.get(datadict.get("node_type", ""), None) - if cls: - obj = cls() - obj.__dict__.update(datadict) - return obj - else: - return super(NodeQuerySet, self).obj_from_datadict(datadict) - - def get(self, *args, **kwargs): - node = super(NodeQuerySet, self).get(*args, **kwargs).leaf - - if not isinstance(node, self.model): - raise self.model.DoesNotExist() - - return node - - def any_state(self, *args): - filter = None - - for s in args: - s_filter = models.Q(state_string__contains="(%s)" % s) - filter = filter and (filter | s_filter) or s_filter - - if filter: - return self.filter(filter) - else: - return self - - def all_states(self, *args): - filter = None - - for s in args: - s_filter = models.Q(state_string__contains="(%s)" % s) - filter = filter and (filter & s_filter) or s_filter - - if filter: - return self.filter(filter) - else: - return self - - def filter_state(self, **kwargs): - apply_bool = lambda q, b: b and q or ~q - return self.filter(*[apply_bool(models.Q(state_string__contains="(%s)" % s), b) for s, b in kwargs.items()]) - - def children_count(self, child_type): - return NodeMetaClass.types[child_type].objects.filter_state(deleted=False).filter(parent__in=self).count() - - -class NodeManager(CachedManager): - use_for_related_fields = True - - def get_query_set(self): - qs = NodeQuerySet(self.model) - - if self.model is not Node: - return qs.filter(node_type=self.model.get_type()) - else: - return qs - - def get_for_types(self, types, *args, **kwargs): - kwargs['node_type__in'] = [t.get_type() for t in types] - return self.get(*args, **kwargs) - - def filter_state(self, **kwargs): - return self.all().filter_state(**kwargs) - - -class NodeStateDict(object): - def __init__(self, node): - self.__dict__['_node'] = node - - def __getattr__(self, name): - if self.__dict__.get(name, None): - return self.__dict__[name] - - try: - node = self.__dict__['_node'] - action = NodeState.objects.get(node=node, state_type=name).action - self.__dict__[name] = action - return action - except: - return None - - def __setattr__(self, name, value): - current = self.__getattr__(name) - - if value: - if current: - current.action = value - current.save() - else: - node = self.__dict__['_node'] - state = NodeState(node=node, action=value, state_type=name) - state.save() - self.__dict__[name] = value - - if not "(%s)" % name in node.state_string: - node.state_string = "%s(%s)" % (node.state_string, name) - node.save() - else: - if current: - node = self.__dict__['_node'] - node.state_string = "".join("(%s)" % s for s in re.findall('\w+', node.state_string) if s != name) - node.save() - current.node_state.delete() - del self.__dict__[name] - - -class NodeStateQuery(object): - def __init__(self, node): - self.__dict__['_node'] = node - - def __getattr__(self, name): - node = self.__dict__['_node'] - return "(%s)" % name in node.state_string - - -class Node(BaseModel, NodeContent): - __metaclass__ = NodeMetaClass - - node_type = models.CharField(max_length=16, default='node') - parent = models.ForeignKey('Node', related_name='children', null=True) - abs_parent = models.ForeignKey('Node', related_name='all_children', null=True) - - added_at = models.DateTimeField(default=datetime.datetime.now) - score = models.IntegerField(default=0) - - state_string = models.TextField(default='') - last_edited = models.ForeignKey('Action', null=True, unique=True, related_name="edited_node") - - last_activity_by = models.ForeignKey(User, null=True) - last_activity_at = models.DateTimeField(null=True, blank=True) - - tags = models.ManyToManyField('Tag', related_name='%(class)ss') - active_revision = models.OneToOneField('NodeRevision', related_name='active', null=True) - - extra = PickledObjectField() - extra_ref = models.ForeignKey('Node', null=True) - extra_count = models.IntegerField(default=0) - - marked = models.BooleanField(default=False) - - comment_count = DenormalizedField("children", node_type="comment", canceled=False) - flag_count = DenormalizedField("flags") - - friendly_name = _("post") - - objects = NodeManager() - - def __unicode__(self): - return self.headline - - @classmethod - def _generate_cache_key(cls, key, group="node"): - return super(Node, cls)._generate_cache_key(key, group) - - @classmethod - def get_type(cls): - return cls.__name__.lower() - - @property - def leaf(self): - leaf_cls = NodeMetaClass.types.get(self.node_type, None) - - if leaf_cls is None: - return self - - leaf = leaf_cls() - leaf.__dict__ = self.__dict__ - return leaf - - @property - def nstate(self): - state = self.__dict__.get('_nstate', None) - - if state is None: - state = NodeStateDict(self) - self._nstate = state - - return state - - @property - def nis(self): - nis = self.__dict__.get('_nis', None) - - if nis is None: - nis = NodeStateQuery(self) - self._nis = nis - - return nis - - @property - def last_activity(self): - try: - return self.actions.order_by('-action_date')[0].action_date - except: - return self.last_seen - - @property - def state_list(self): - return [s.state_type for s in self.states.all()] - - @property - def deleted(self): - return self.nis.deleted - - @property - def absolute_parent(self): - if not self.abs_parent_id: - return self - - return self.abs_parent - - @property - def summary(self): - return strip_tags(self.html)[:300] - - @models.permalink - def get_revisions_url(self): - return ('revisions', (), {'id': self.id}) - - def update_last_activity(self, user, save=False, time=None): - if not time: - time = datetime.datetime.now() - - self.last_activity_by = user - self.last_activity_at = time - - if self.parent: - self.parent.update_last_activity(user, save=True, time=time) - - if save: - self.save() - - def _create_revision(self, user, number, **kwargs): - revision = NodeRevision(author=user, revision=number, node=self, **kwargs) - revision.save() - return revision - - def create_revision(self, user, **kwargs): - number = self.revisions.aggregate(last=models.Max('revision'))['last'] + 1 - revision = self._create_revision(user, number, **kwargs) - self.activate_revision(user, revision, extensions=['urlize']) - return revision - - def activate_revision(self, user, revision, extensions=['urlize']): - self.title = revision.title - self.tagnames = revision.tagnames - - from forum.utils.userlinking import auto_user_link - - self.body = auto_user_link(self, self._as_markdown(revision.body, *extensions)) - - self.active_revision = revision - self.update_last_activity(user) - - self.save() - - def _list_changes_in_tags(self): - dirty = self.get_dirty_fields() - - if not 'tagnames' in dirty: - return None - else: - if self._original_state['tagnames']: - old_tags = set(name for name in self._original_state['tagnames'].split(u' ')) - else: - old_tags = set() - new_tags = set(name for name in self.tagnames.split(u' ') if name) - - return dict( - current=list(new_tags), - added=list(new_tags - old_tags), - removed=list(old_tags - new_tags) - ) - - def _last_active_user(self): - return self.last_edited and self.last_edited.by or self.author - - def _process_changes_in_tags(self): - tag_changes = self._list_changes_in_tags() - - if tag_changes is not None: - for name in tag_changes['added']: - try: - tag = Tag.objects.get(name=name) - except: - tag = Tag.objects.create(name=name, created_by=self._last_active_user()) - - if not self.nis.deleted: - tag.add_to_usage_count(1) - tag.save() - - if not self.nis.deleted: - for name in tag_changes['removed']: - try: - tag = Tag.objects.get(name=name) - tag.add_to_usage_count(-1) - tag.save() - except: - pass - - return True - - return False - - def mark_deleted(self, action): - self.nstate.deleted = action - self.save() - - if action: - for tag in self.tags.all(): - tag.add_to_usage_count(-1) - tag.save() - else: - for tag in Tag.objects.filter(name__in=self.tagname_list()): - tag.add_to_usage_count(1) - tag.save() - - def delete(self, *args, **kwargs): - self.active_revision = None - self.save() - - for n in self.children.all(): - n.delete() - - for a in self.actions.all(): - a.cancel() - - super(Node, self).delete(*args, **kwargs) - - def save(self, *args, **kwargs): - if not self.id: - self.node_type = self.get_type() - super(BaseModel, self).save(*args, **kwargs) - self.active_revision = self._create_revision(self.author, 1, title=self.title, tagnames=self.tagnames, - body=self.body) - self.activate_revision(self.author, self.active_revision) - self.update_last_activity(self.author, time=self.added_at) - - if self.parent_id and not self.abs_parent_id: - self.abs_parent = self.parent.absolute_parent - - tags_changed = self._process_changes_in_tags() - - super(Node, self).save(*args, **kwargs) - - if tags_changed: self.tags = list(Tag.objects.filter(name__in=self.tagname_list())) - - class Meta: - app_label = 'forum' - - -class NodeRevision(BaseModel, NodeContent): - node = models.ForeignKey(Node, related_name='revisions') - summary = models.CharField(max_length=300) - revision = models.PositiveIntegerField() - revised_at = models.DateTimeField(default=datetime.datetime.now) - - class Meta: - unique_together = ('node', 'revision') - app_label = 'forum' - - -class NodeState(models.Model): - node = models.ForeignKey(Node, related_name='states') - state_type = models.CharField(max_length=16) - action = models.OneToOneField('Action', related_name="node_state") - - class Meta: - unique_together = ('node', 'state_type') - app_label = 'forum' - - diff --git a/forum/modules/template_loader.py/forum/models/page.py b/forum/modules/template_loader.py/forum/models/page.py deleted file mode 100644 index 665a1be..0000000 --- a/forum/modules/template_loader.py/forum/models/page.py +++ /dev/null @@ -1,54 +0,0 @@ -from base import * -from django.utils.translation import ugettext as _ - -class Page(Node): - friendly_name = _("page") - - @property - def published(self): - return self.marked - - @property - def html(self): - return self._as_markdown(self.body) - - def save(self, *args, **kwargs): - old_options = self._original_state.get('extra', None) - - super(Page, self).save(*args, **kwargs) - - registry = settings.STATIC_PAGE_REGISTRY - - if old_options: - registry.pop(old_options.get('path', ''), None) - - registry[self.extra['path']] = self.id - - - settings.STATIC_PAGE_REGISTRY.set_value(registry) - - @property - def headline(self): - if self.published: - return self.title - else: - return _("[Unpublished] %s") % self.title - - @models.permalink - def get_absolute_url(self): - return ('static_page', (), {'path': self.extra['path']}) - - def activate_revision(self, user, revision, extensions=['urlize']): - self.title = revision.title - self.tagnames = revision.tagnames - self.body = revision.body - - self.active_revision = revision - self.update_last_activity(user) - - self.save() - - class Meta(Node.Meta): - proxy = True - - diff --git a/forum/modules/template_loader.py/forum/models/question.py b/forum/modules/template_loader.py/forum/models/question.py deleted file mode 100644 index bef5bb5..0000000 --- a/forum/modules/template_loader.py/forum/models/question.py +++ /dev/null @@ -1,101 +0,0 @@ -from base import * -from tag import Tag -from django.utils.translation import ugettext as _ - -question_view = django.dispatch.Signal(providing_args=['instance', 'user']) - -class QuestionManager(NodeManager): - def search(self, keywords): - return False, self.filter(models.Q(title__icontains=keywords) | models.Q(body__icontains=keywords)) - -class Question(Node): - class Meta(Node.Meta): - proxy = True - - answer_count = DenormalizedField("children", ~models.Q(state_string__contains="(deleted)"), node_type="answer") - accepted_count = DenormalizedField("children", ~models.Q(state_string__contains="(deleted)"), node_type="answer", marked=True) - favorite_count = DenormalizedField("actions", action_type="favorite", canceled=False) - - friendly_name = _("question") - objects = QuestionManager() - - @property - def closed(self): - return self.nis.closed - - @property - def view_count(self): - return self.extra_count - - @property - def headline(self): - if self.nis.deleted: - return _('[deleted] ') + self.title - - if self.nis.closed: - return _('[closed] ') + self.title - - return self.title - - @property - def accepted_answers(self): - return self.answers.filter(~models.Q(state_string__contains="(deleted)"), marked=True) - - @models.permalink - def get_absolute_url(self): - return ('question', (), {'id': self.id, 'slug': django_urlquote(slugify(self.title))}) - - def meta_description(self): - return self.summary - - def get_revision_url(self): - return reverse('question_revisions', args=[self.id]) - - def get_related_questions(self, count=10): - cache_key = '%s.related_questions:%d:%d' % (settings.APP_URL, count, self.id) - related_list = cache.get(cache_key) - - if related_list is None: - related_list = Question.objects.filter_state(deleted=False).values('id').filter(tags__id__in=[t.id for t in self.tags.all()] - ).exclude(id=self.id).annotate(frequency=models.Count('id')).order_by('-frequency')[:count] - cache.set(cache_key, related_list, 60 * 60) - - return [Question.objects.get(id=r['id']) for r in related_list] - - def get_active_users(self): - active_users = set() - - active_users.add(self.author) - - for answer in self.answers: - active_users.add(answer.author) - - for comment in answer.comments: - active_users.add(comment.author) - - for comment in self.comments: - active_users.add(comment.author) - - return active_users - -def question_viewed(instance, **kwargs): - instance.extra_count += 1 - instance.save() - -question_view.connect(question_viewed) - - -class QuestionSubscription(models.Model): - user = models.ForeignKey(User) - question = models.ForeignKey(Node) - auto_subscription = models.BooleanField(default=True) - last_view = models.DateTimeField(default=datetime.datetime.now()) - - class Meta: - app_label = 'forum' - - -class QuestionRevision(NodeRevision): - class Meta: - proxy = True - diff --git a/forum/modules/template_loader.py/forum/models/tag.py b/forum/modules/template_loader.py/forum/models/tag.py deleted file mode 100644 index 0bff004..0000000 --- a/forum/modules/template_loader.py/forum/models/tag.py +++ /dev/null @@ -1,45 +0,0 @@ -from base import * - -from django.utils.translation import ugettext as _ -import django.dispatch - -class ActiveTagManager(models.Manager): - def get_query_set(self): - return super(ActiveTagManager, self).get_query_set().exclude(used_count__lt=1) - - -class Tag(BaseModel): - name = models.CharField(max_length=255, unique=True) - created_by = models.ForeignKey(User, related_name='created_tags') - marked_by = models.ManyToManyField(User, related_name="marked_tags", through="MarkedTag") - # Denormalised data - used_count = models.PositiveIntegerField(default=0) - - active = ActiveTagManager() - - class Meta: - ordering = ('-used_count', 'name') - app_label = 'forum' - - def __unicode__(self): - return self.name - - def add_to_usage_count(self, value): - if self.used_count + value < 0: - self.used_count = 0 - else: - self.used_count = models.F('used_count') + value - - @models.permalink - def get_absolute_url(self): - return ('tag_questions', (), {'tag': self.name}) - -class MarkedTag(models.Model): - TAG_MARK_REASONS = (('good', _('interesting')), ('bad', _('ignored'))) - tag = models.ForeignKey(Tag, related_name='user_selections') - user = models.ForeignKey(User, related_name='tag_selections') - reason = models.CharField(max_length=16, choices=TAG_MARK_REASONS) - - class Meta: - app_label = 'forum' - diff --git a/forum/modules/template_loader.py/forum/models/tests/__init__.py b/forum/modules/template_loader.py/forum/models/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum/models/tests/fixtures/users b/forum/modules/template_loader.py/forum/models/tests/fixtures/users deleted file mode 100644 index 7f8a95a..0000000 --- a/forum/modules/template_loader.py/forum/models/tests/fixtures/users +++ /dev/null @@ -1,33 +0,0 @@ - - - - super - Super - User - super@example.com - sha1$995a3$6011485ea3834267d719b4c801409b8b1ddd0158 - True - True - True - 2007-05-30 13:20:10 - 2007-05-30 13:20:10 - - - - True - True - 10 - 1 - 1 - 1 - 2007-05-30 13:20:10 - Super User - www.superuser.com - Raleigh - 2007-05-30 13:20:10 - I am a super user - - 1 - 1 - - \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/models/tests/test_user.py b/forum/modules/template_loader.py/forum/models/tests/test_user.py deleted file mode 100644 index 0d9a93e..0000000 --- a/forum/modules/template_loader.py/forum/models/tests/test_user.py +++ /dev/null @@ -1,96 +0,0 @@ -from django.test import TestCase -from forum.models.user import * - -class UserTest(TestCase): - fixtures = ['users.xml'] - - def setUp(self): - self.client.login(username='super', password='secret') - - - - def tearDown(self): - self.client.logout() - - def test_gravatar(self): - - self.assert_(True) - - def test_save(self): - self.assert_(True) - - def test_get_absolute_url(self): - self.assert_(True) - - def test_get_messages(self): - self.assert_(True) - - def test_delete_messages(self): - self.assert_(True) - - def test_get_profile_url(self): - self.assert_(True) - - def test_get_profile_link(self): - self.assert_(True) - - def test_get_visible_answers(self): - self.assert_(True) - - def test_get_vote_count_today(self): - self.assert_(True) - - def test_get_reputation_by_upvoted_today(self): - self.assert_(True) - - def test_get_flagged_items_count_today(self): - self.assert_(True) - - def test_can_view_deleted_post(self): - self.assert_(True) - - def test_can_vote_up(self): - self.assert_(True) - - def test_can_vote_down(self): - self.assert_(True) - - def test_can_flag_offensive(self): - self.assert_(True) - - def test_can_view_offensive_flags(self): - self.assert_(True) - - def test_can_comment(self): - self.assert_(True) - - def test_can_like_comment(self): - self.assert_(True) - - def test_can_edit_comment(self): - self.assert_(True) - - def test_can_delete_comment(self): - self.assert_(True) - - def test_can_accept_answer(self): - self.assert_(True) - - def test_can_edit_post(self): - self.assert_(True) - - def test_can_retag_questions(self): - self.assert_(True) - - def test_can_close_question(self): - self.assert_(True) - - def test_can_reopen_question(self): - self.assert_(True) - - def test_can_delete_post(self): - self.assert_(True) - - def test_can_upload_files(self): - self.assert_(True) - diff --git a/forum/modules/template_loader.py/forum/models/user.py b/forum/modules/template_loader.py/forum/models/user.py deleted file mode 100644 index 9d63248..0000000 --- a/forum/modules/template_loader.py/forum/models/user.py +++ /dev/null @@ -1,572 +0,0 @@ -from base import * -from utils import PickledObjectField -from django.core.exceptions import ObjectDoesNotExist, MultipleObjectsReturned -from django.contrib.contenttypes.models import ContentType -from django.contrib.auth.models import User as DjangoUser, AnonymousUser as DjangoAnonymousUser -from django.db.models import Q -try: - from hashlib import md5 -except: - from md5 import new as md5 - -import string -from random import Random - -from django.utils.translation import ugettext as _ -import logging - -QUESTIONS_PER_PAGE_CHOICES = ( -(10, u'10'), -(30, u'30'), -(50, u'50'), -) - -class AnonymousUser(DjangoAnonymousUser): - reputation = 0 - - def get_visible_answers(self, question): - return question.answers.filter_state(deleted=False) - - def can_view_deleted_post(self, post): - return False - - def can_vote_up(self): - return False - - def can_vote_down(self): - return False - - def can_vote_count_today(self): - return 0 - - def can_flag_offensive(self, post=None): - return False - - def can_view_offensive_flags(self, post=None): - return False - - def can_comment(self, post): - return False - - def can_like_comment(self, comment): - return False - - def can_edit_comment(self, comment): - return False - - def can_delete_comment(self, comment): - return False - - def can_convert_to_comment(self, answer): - return False - - def can_convert_to_question(self, answer): - return False - - def can_convert_comment_to_answer(self, comment): - return False - - def can_accept_answer(self, answer): - return False - - def can_create_tags(self): - return False - - def can_edit_post(self, post): - return False - - def can_wikify(self, post): - return False - - def can_cancel_wiki(self, post): - return False - - def can_retag_questions(self): - return False - - def can_close_question(self, question): - return False - - def can_reopen_question(self, question): - return False - - def can_delete_post(self, post): - return False - - def can_upload_files(self): - return False - - def is_a_super_user_or_staff(self): - return False - -def true_if_is_super_or_staff(fn): - def decorated(self, *args, **kwargs): - return self.is_superuser or self.is_staff or fn(self, *args, **kwargs) - - return decorated - -def false_if_validation_required_to(item): - def decorator(fn): - def decorated(self, *args, **kwargs): - if item in settings.REQUIRE_EMAIL_VALIDATION_TO and not self.email_isvalid: - return False - else: - return fn(self, *args, **kwargs) - return decorated - return decorator - -class User(BaseModel, DjangoUser): - is_approved = models.BooleanField(default=False) - email_isvalid = models.BooleanField(default=False) - - reputation = models.PositiveIntegerField(default=0) - gold = models.PositiveIntegerField(default=0) - silver = models.PositiveIntegerField(default=0) - bronze = models.PositiveIntegerField(default=0) - - last_seen = models.DateTimeField(default=datetime.datetime.now) - real_name = models.CharField(max_length=100, blank=True) - website = models.URLField(max_length=200, blank=True) - location = models.CharField(max_length=100, blank=True) - date_of_birth = models.DateField(null=True, blank=True) - about = models.TextField(blank=True) - - subscriptions = models.ManyToManyField('Node', related_name='subscribers', through='QuestionSubscription') - - vote_up_count = DenormalizedField("actions", canceled=False, action_type="voteup") - vote_down_count = DenormalizedField("actions", canceled=False, action_type="votedown") - - def __unicode__(self): - return self.username - - @property - def prop(self): - prop = self.__dict__.get('_prop', None) - - if prop is None: - prop = UserPropertyDict(self) - self._prop = prop - - return prop - - @property - def is_siteowner(self): - #todo: temporary thing, for now lets just assume that the site owner will always be the first user of the application - return self.id == 1 - - @property - def decorated_name(self): - if settings.SHOW_STATUS_DIAMONDS: - if self.is_superuser: - return u"%s \u2666\u2666" % self.username - - if self.is_staff: - return u"%s \u2666" % self.username - - return self.username - - @property - def last_activity(self): - try: - return self.actions.order_by('-action_date')[0].action_date - except: - return self.last_seen - - @property - def gravatar(self): - return md5(self.email.lower()).hexdigest() - - def save(self, *args, **kwargs): - if self.reputation < 0: - self.reputation = 0 - - new = not bool(self.id) - - super(User, self).save(*args, **kwargs) - - if new: - sub_settings = SubscriptionSettings(user=self) - sub_settings.save() - - def get_absolute_url(self): - return self.get_profile_url() - - def get_messages(self): - messages = [] - for m in self.message_set.all(): - messages.append(m.message) - return messages - - def delete_messages(self): - self.message_set.all().delete() - - @models.permalink - def get_profile_url(self): - return ('user_profile', (), {'id': self.id, 'slug': slugify(self.username)}) - - def get_absolute_url(self): - return self.get_profile_url() - - @models.permalink - def get_asked_url(self): - return ('user_questions', (), {'mode': _('asked-by'), 'user': self.id, 'slug': slugify(self.username)}) - - @models.permalink - def get_answered_url(self): - return ('user_questions', (), {'mode': _('answered-by'), 'user': self.id, 'slug': slugify(self.username)}) - - @models.permalink - def get_subscribed_url(self): - return ('user_questions', (), {'mode': _('subscribed-by'), 'user': self.id, 'slug': slugify(self.username)}) - - def get_profile_link(self): - profile_link = u'%s' % (self.get_profile_url(), self.username) - return mark_safe(profile_link) - - def get_visible_answers(self, question): - return question.answers.filter_state(deleted=False) - - def get_vote_count_today(self): - today = datetime.date.today() - return self.actions.filter(canceled=False, action_type__in=("voteup", "votedown"), - action_date__gte=(today - datetime.timedelta(days=1))).count() - - def get_reputation_by_upvoted_today(self): - today = datetime.datetime.now() - sum = self.reputes.filter(reputed_at__range=(today - datetime.timedelta(days=1), today)).aggregate( - models.Sum('value')) - #todo: redo this, maybe transform in the daily cap - #if sum.get('value__sum', None) is not None: return sum['value__sum'] - return 0 - - def get_flagged_items_count_today(self): - today = datetime.date.today() - return self.actions.filter(canceled=False, action_type="flag", - action_date__gte=(today - datetime.timedelta(days=1))).count() - - def can_vote_count_today(self): - votes_today = settings.MAX_VOTES_PER_DAY - - if settings.USER_REPUTATION_TO_MAX_VOTES: - votes_today = votes_today + int(self.reputation) - - return votes_today - - @true_if_is_super_or_staff - def can_view_deleted_post(self, post): - return post.author == self - - @true_if_is_super_or_staff - def can_vote_up(self): - return self.reputation >= int(settings.REP_TO_VOTE_UP) - - @true_if_is_super_or_staff - def can_vote_down(self): - return self.reputation >= int(settings.REP_TO_VOTE_DOWN) - - @false_if_validation_required_to('flag') - def can_flag_offensive(self, post=None): - if post is not None and post.author == self: - return False - return self.is_superuser or self.is_staff or self.reputation >= int(settings.REP_TO_FLAG) - - @true_if_is_super_or_staff - def can_view_offensive_flags(self, post=None): - if post is not None and post.author == self: - return True - return self.reputation >= int(settings.REP_TO_VIEW_FLAGS) - - @true_if_is_super_or_staff - @false_if_validation_required_to('comment') - def can_comment(self, post): - return self == post.author or self.reputation >= int(settings.REP_TO_COMMENT - ) or (post.__class__.__name__ == "Answer" and self == post.question.author) - - @true_if_is_super_or_staff - def can_like_comment(self, comment): - return self != comment.author and (self.reputation >= int(settings.REP_TO_LIKE_COMMENT)) - - @true_if_is_super_or_staff - def can_edit_comment(self, comment): - return (comment.author == self and comment.added_at >= datetime.datetime.now() - datetime.timedelta(minutes=60) - ) or self.is_superuser - - @true_if_is_super_or_staff - def can_delete_comment(self, comment): - return self == comment.author or self.reputation >= int(settings.REP_TO_DELETE_COMMENTS) - - @true_if_is_super_or_staff - def can_convert_comment_to_answer(self, comment): - return self == comment.author or self.reputation >= int(settings.REP_TO_CONVERT_COMMENTS_TO_ANSWERS) - - def can_convert_to_comment(self, answer): - return (not answer.marked) and (self.is_superuser or self.is_staff or answer.author == self or self.reputation >= int - (settings.REP_TO_CONVERT_TO_COMMENT)) - - def can_convert_to_question(self, answer): - return (not answer.marked) and (self.is_superuser or self.is_staff or answer.author == self or self.reputation >= int - (settings.REP_TO_CONVERT_TO_QUESTION)) - - @true_if_is_super_or_staff - def can_accept_answer(self, answer): - return self == answer.question.author and (settings.USERS_CAN_ACCEPT_OWN or answer.author != answer.question.author) - - @true_if_is_super_or_staff - def can_create_tags(self): - return self.reputation >= int(settings.REP_TO_CREATE_TAGS) - - @true_if_is_super_or_staff - def can_edit_post(self, post): - return self == post.author or self.reputation >= int(settings.REP_TO_EDIT_OTHERS - ) or (post.nis.wiki and self.reputation >= int( - settings.REP_TO_EDIT_WIKI)) - - @true_if_is_super_or_staff - def can_wikify(self, post): - return self == post.author or self.reputation >= int(settings.REP_TO_WIKIFY) - - @true_if_is_super_or_staff - def can_cancel_wiki(self, post): - return self == post.author - - @true_if_is_super_or_staff - def can_retag_questions(self): - return self.reputation >= int(settings.REP_TO_RETAG) - - @true_if_is_super_or_staff - def can_close_question(self, question): - return (self == question.author and self.reputation >= int(settings.REP_TO_CLOSE_OWN) - ) or self.reputation >= int(settings.REP_TO_CLOSE_OTHERS) - - @true_if_is_super_or_staff - def can_reopen_question(self, question): - return self == question.author and self.reputation >= int(settings.REP_TO_REOPEN_OWN) - - @true_if_is_super_or_staff - def can_delete_post(self, post): - if post.node_type == "comment": - return self.can_delete_comment(post) - - return (self == post.author and (post.__class__.__name__ == "Answer" or - not post.answers.exclude(author__id=self.id).count())) - - @true_if_is_super_or_staff - def can_upload_files(self): - return self.reputation >= int(settings.REP_TO_UPLOAD) - - @true_if_is_super_or_staff - def is_a_super_user_or_staff(self): - return False - - def email_valid_and_can_ask(self): - return 'ask' not in settings.REQUIRE_EMAIL_VALIDATION_TO or self.email_isvalid - - def email_valid_and_can_answer(self): - return 'answer' not in settings.REQUIRE_EMAIL_VALIDATION_TO or self.email_isvalid - - def check_password(self, old_passwd): - self.__dict__.update(self.__class__.objects.filter(id=self.id).values('password')[0]) - return DjangoUser.check_password(self, old_passwd) - - @property - def suspension(self): - if self.__dict__.get('_suspension_dencache_', False) != None: - try: - self.__dict__['_suspension_dencache_'] = self.reputes.get(action__action_type="suspend", action__canceled=False).action - except ObjectDoesNotExist: - self.__dict__['_suspension_dencache_'] = None - except MultipleObjectsReturned: - logging.error("Multiple suspension actions found for user %s (%s)" % (self.username, self.id)) - self.__dict__['_suspension_dencache_'] = self.reputes.filter(action__action_type="suspend", action__canceled=False - ).order_by('-action__action_date')[0] - - return self.__dict__['_suspension_dencache_'] - - def _pop_suspension_cache(self): - self.__dict__.pop('_suspension_dencache_', None) - - def is_suspended(self): - if not self.is_active: - suspension = self.suspension - - if suspension and suspension.extra.get('bantype', None) == 'forxdays' and ( - datetime.datetime.now() > suspension.action_date + datetime.timedelta( - days=int(suspension.extra.get('forxdays', 365)))): - suspension.cancel() - else: - return True - - return False - - class Meta: - app_label = 'forum' - -class UserProperty(BaseModel): - user = models.ForeignKey(User, related_name='properties') - key = models.CharField(max_length=16) - value = PickledObjectField() - - class Meta: - app_label = 'forum' - unique_together = ('user', 'key') - - def cache_key(self): - return self._generate_cache_key("%s:%s" % (self.user.id, self.key)) - - @classmethod - def infer_cache_key(cls, querydict): - if 'user' in querydict and 'key' in querydict: - return cls._generate_cache_key("%s:%s" % (querydict['user'].id, querydict['key'])) - - return None - -class UserPropertyDict(object): - def __init__(self, user): - self.__dict__['_user'] = user - - def __get_property(self, name): - if self.__dict__.get('__%s__' % name, None): - return self.__dict__['__%s__' % name] - try: - user = self.__dict__['_user'] - prop = UserProperty.objects.get(user=user, key=name) - self.__dict__['__%s__' % name] = prop - self.__dict__[name] = prop.value - return prop - except: - return None - - - def __getattr__(self, name): - if self.__dict__.get(name, None): - return self.__dict__[name] - - prop = self.__get_property(name) - - if prop: - return prop.value - else: - return None - - def __setattr__(self, name, value): - current = self.__get_property(name) - - if value is not None: - if current: - current.value = value - self.__dict__[name] = value - current.save(full_save=True) - else: - user = self.__dict__['_user'] - prop = UserProperty(user=user, value=value, key=name) - prop.save() - self.__dict__[name] = value - self.__dict__['__%s__' % name] = prop - else: - if current: - current.delete() - del self.__dict__[name] - del self.__dict__['__%s__' % name] - - -class SubscriptionSettings(models.Model): - user = models.OneToOneField(User, related_name='subscription_settings', editable=False) - - enable_notifications = models.BooleanField(default=True) - - #notify if - member_joins = models.CharField(max_length=1, default='n') - new_question = models.CharField(max_length=1, default='n') - new_question_watched_tags = models.CharField(max_length=1, default='i') - subscribed_questions = models.CharField(max_length=1, default='i') - - #auto_subscribe_to - all_questions = models.BooleanField(default=False) - all_questions_watched_tags = models.BooleanField(default=False) - questions_asked = models.BooleanField(default=True) - questions_answered = models.BooleanField(default=True) - questions_commented = models.BooleanField(default=False) - questions_viewed = models.BooleanField(default=False) - - #notify activity on subscribed - notify_answers = models.BooleanField(default=True) - notify_reply_to_comments = models.BooleanField(default=True) - notify_comments_own_post = models.BooleanField(default=True) - notify_comments = models.BooleanField(default=False) - notify_accepted = models.BooleanField(default=False) - - send_digest = models.BooleanField(default=True) - - class Meta: - app_label = 'forum' - -from forum.utils.time import one_day_from_now - -class ValidationHashManager(models.Manager): - def _generate_md5_hash(self, user, type, hash_data, seed): - return md5("%s%s%s%s" % (seed, "".join(map(str, hash_data)), user.id, type)).hexdigest() - - def create_new(self, user, type, hash_data=[], expiration=None): - seed = ''.join(Random().sample(string.letters+string.digits, 12)) - hash = self._generate_md5_hash(user, type, hash_data, seed) - - obj = ValidationHash(hash_code=hash, seed=seed, user=user, type=type) - - if expiration is not None: - obj.expiration = expiration - - try: - obj.save() - except: - return None - - return obj - - def validate(self, hash, user, type, hash_data=[]): - try: - obj = self.get(hash_code=hash) - except: - return False - - if obj.type != type: - return False - - if obj.user != user: - return False - - valid = (obj.hash_code == self._generate_md5_hash(obj.user, type, hash_data, obj.seed)) - - if valid: - if obj.expiration < datetime.datetime.now(): - obj.delete() - return False - else: - obj.delete() - return True - - return False - -class ValidationHash(models.Model): - hash_code = models.CharField(max_length=255, unique=True) - seed = models.CharField(max_length=12) - expiration = models.DateTimeField(default=one_day_from_now) - type = models.CharField(max_length=12) - user = models.ForeignKey(User) - - objects = ValidationHashManager() - - class Meta: - unique_together = ('user', 'type') - app_label = 'forum' - - def __str__(self): - return self.hash_code - -class AuthKeyUserAssociation(models.Model): - key = models.CharField(max_length=255, null=False, unique=True) - provider = models.CharField(max_length=64) - user = models.ForeignKey(User, related_name="auth_keys") - added_at = models.DateTimeField(default=datetime.datetime.now) - - class Meta: - app_label = 'forum' diff --git a/forum/modules/template_loader.py/forum/models/utils.py b/forum/modules/template_loader.py/forum/models/utils.py deleted file mode 100644 index ecbe038..0000000 --- a/forum/modules/template_loader.py/forum/models/utils.py +++ /dev/null @@ -1,124 +0,0 @@ -from django.db import models -from django.core.cache import cache -from django.conf import settings -from django.utils.encoding import force_unicode - -try: - from cPickle import loads, dumps -except ImportError: - from pickle import loads, dumps - -from copy import deepcopy -from base64 import b64encode, b64decode -from zlib import compress, decompress -import re - -from base import BaseModel - -MAX_MARKABLE_STRING_LENGTH = 100 - -class PickledObject(unicode): - pass - -def dbsafe_encode(value, compress_object=True): - if not compress_object: - value = b64encode(dumps(deepcopy(value))) - else: - value = b64encode(compress(dumps(deepcopy(value)))) - return PickledObject(value) - -def dbsafe_decode(value, compress_object=True): - if not compress_object: - value = loads(b64decode(value)) - else: - value = loads(decompress(b64decode(value))) - return value - -class PickledObjectField(models.Field): - __metaclass__ = models.SubfieldBase - - marker_re = re.compile(r'^T\[(?P\w+)\](?P.*)$', re.DOTALL) - markable_types = dict((t.__name__, t) for t in (str, int, unicode)) - - def __init__(self, *args, **kwargs): - self.compress = kwargs.pop('compress', True) - self.protocol = kwargs.pop('protocol', 2) - kwargs.setdefault('null', True) - kwargs.setdefault('editable', False) - super(PickledObjectField, self).__init__(*args, **kwargs) - - def generate_type_marked_value(self, value): - return PickledObject(u"T[%s]%s" % (type(value).__name__, value)) - - def read_marked_value(self, value): - m = self.marker_re.match(value) - - if m: - marker = m.group('type') - value = m.group('value') - if marker in self.markable_types: - value = self.markable_types[marker](value) - - return value - - def get_default(self): - if self.has_default(): - if callable(self.default): - return self.default() - return self.default - - return super(PickledObjectField, self).get_default() - - def to_python(self, value): - if value is not None: - try: - if value.startswith("T["): - value = self.read_marked_value(value) - else: - value = dbsafe_decode(value, self.compress) - except: - if isinstance(value, PickledObject): - raise - return value - - def get_db_prep_value(self, value): - if value is not None and not isinstance(value, PickledObject): - if type(value).__name__ in self.markable_types and not (isinstance(value, basestring) and len(value - ) > MAX_MARKABLE_STRING_LENGTH): - value = unicode(self.generate_type_marked_value(value)) - else: - value = unicode(dbsafe_encode(value, self.compress)) - return value - - def value_to_string(self, obj): - value = self._get_val_from_obj(obj) - return self.get_db_prep_value(value) - - def get_internal_type(self): - return 'TextField' - - def get_db_prep_lookup(self, lookup_type, value): - if lookup_type not in ['exact', 'in', 'isnull']: - raise TypeError('Lookup type %s is not supported.' % lookup_type) - return super(PickledObjectField, self).get_db_prep_lookup(lookup_type, value) - - -class KeyValue(BaseModel): - key = models.CharField(max_length=255, unique=True) - value = PickledObjectField() - - class Meta: - app_label = 'forum' - - def cache_key(self): - return self._generate_cache_key(self.key) - - @classmethod - def infer_cache_key(cls, querydict): - try: - key = [v for (k, v) in querydict.items() if k in ('key', 'key__exact')][0] - - return cls._generate_cache_key(key) - except: - return None - diff --git a/forum/modules/template_loader.py/forum/modules/__init__.py b/forum/modules/template_loader.py/forum/modules/__init__.py deleted file mode 100644 index d4dd67c..0000000 --- a/forum/modules/template_loader.py/forum/modules/__init__.py +++ /dev/null @@ -1,94 +0,0 @@ -import os -import types -import re -import logging - -from django.template import Template, TemplateDoesNotExist -from django.conf import settings - -MODULES_PACKAGE = 'forum_modules' - -MODULES_FOLDER = os.path.join(settings.SITE_SRC_ROOT, MODULES_PACKAGE) - -DISABLED_MODULES = getattr(settings, 'DISABLED_MODULES', []) - -MODULE_LIST = filter(lambda m: getattr(m, 'CAN_USE', True), [ - __import__('forum_modules.%s' % f, globals(), locals(), ['forum_modules']) - for f in os.listdir(MODULES_FOLDER) - if os.path.isdir(os.path.join(MODULES_FOLDER, f)) and - os.path.exists(os.path.join(MODULES_FOLDER, "%s/__init__.py" % f)) and - not f in DISABLED_MODULES -]) - -def get_modules_script(script_name): - all = [] - - for m in MODULE_LIST: - try: - all.append(__import__('%s.%s' % (m.__name__, script_name), globals(), locals(), [m.__name__])) - except ImportError, e: - #print repr(type(e)) + m.__name__ + ":" + str(e) - pass - except: - import traceback - msg = "Error importing %s from module %s: \n %s" % ( - script_name, m.__name__, traceback.format_exc() - ) - logging.error(msg) - - return all - -def get_modules_script_implementations(script_name, impl_class): - scripts = get_modules_script(script_name) - all_impls = {} - - for script in scripts: - all_impls.update(dict([ - (n, i) for (n, i) in [(n, getattr(script, n)) for n in dir(script)] - if isinstance(i, impl_class) - ])) - - return all_impls - -def get_modules_script_classes(script_name, base_class): - scripts = get_modules_script(script_name) - all_classes = {} - - for script in scripts: - all_classes.update(dict([ - (n, c) for (n, c) in [(n, getattr(script, n)) for n in dir(script)] - if isinstance(c, (type, types.ClassType)) and issubclass(c, base_class) - ])) - - return all_classes - -def get_all_handlers(name): - handler_files = get_modules_script('handlers') - - return [ - h for h in [ - getattr(f, name) for f in handler_files - if hasattr(f, name) - ] - - if callable(h) - ] - -def call_all_handlers(name, *args, **kwargs): - all = get_all_handlers(name) - - ret = [] - - for handler in all: - ret.append(handler(*args, **kwargs)) - - return ret - -def get_handler(name, default): - all = get_all_handlers(name) - return len(all) and all[0] or default - -from template_loader import ModulesTemplateLoader -module_templates_loader = ModulesTemplateLoader() - -from decorators import decorate, ReturnImediatelyException diff --git a/forum/modules/template_loader.py/forum/modules/decorators.py b/forum/modules/template_loader.py/forum/modules/decorators.py deleted file mode 100644 index 3c53412..0000000 --- a/forum/modules/template_loader.py/forum/modules/decorators.py +++ /dev/null @@ -1,156 +0,0 @@ -import inspect - -class DecoratableObject(object): - MODE_OVERRIDE = 0 - MODE_PARAMS = 1 - MODE_RESULT = 2 - - def __init__(self, fn, is_method=False): - self._callable = fn - self.is_method = is_method - - self._params_decoration = None - self._result_decoration = None - - def _decorate(self, fn, mode, **kwargs): - if mode == self.MODE_OVERRIDE: - self._decorate_full(fn, **kwargs) - elif mode == self.MODE_PARAMS: - self._decorate_params(fn) - elif mode == self.MODE_RESULT: - self._decorate_result(fn, **kwargs) - - def _decorate_full(self, fn, needs_origin=True): - origin = self._callable - - if needs_origin: - if self.is_method: - self._callable = lambda inst, *args, **kwargs: fn(inst, origin, *args, **kwargs) - else: - self._callable = lambda *args, **kwargs: fn(origin, *args, **kwargs) - else: - self._callable = fn - - def _decorate_params(self, fn): - if not self._params_decoration: - self._params_decoration = [] - - self._params_decoration.append(fn) - - def _decorate_result(self, fn, needs_params=False): - if not self._result_decoration: - self._result_decoration = [] - - fn._needs_params = needs_params - self._result_decoration.append(fn) - - def __call__(self, *args, **kwargs): - if self._params_decoration: - for dec in self._params_decoration: - try: - args, kwargs = dec(*args, **kwargs) - except ReturnImediatelyException, e: - return e.ret - - res = self._callable(*args, **kwargs) - - if self._result_decoration: - for dec in self._result_decoration: - if dec._needs_params: - res = dec(res, *args, **kwargs) - else: - res = dec(res) - - return res - -class ReturnImediatelyException(Exception): - def __init__(self, ret): - super(Exception, self).__init__() - self.ret = ret - -def _check_decoratable(origin, install=True): - if not isinstance(origin, DecoratableObject): - if inspect.ismethod(origin) and not hasattr(origin, '_decoratable_obj'): - decoratable = DecoratableObject(origin) - - def decoratable_method(self, *args, **kwargs): - return decoratable(self, *args, **kwargs) - - decoratable_method._decoratable_obj = decoratable - - def decoratable_decorate(fn, mode, **kwargs): - decoratable._decorate(fn, mode, **kwargs) - - decoratable_method._decorate = decoratable_decorate - - if install: - setattr(origin.im_class, origin.__name__, decoratable_method) - - return decoratable_method - - elif inspect.isfunction(origin): - decoratable = DecoratableObject(origin) - - if install: - setattr(inspect.getmodule(origin), origin.__name__, decoratable) - - return decoratable - - return origin - - -def decorate(origin, needs_origin=True): - origin = _check_decoratable(origin) - - def decorator(fn): - origin._decorate(fn, DecoratableObject.MODE_OVERRIDE, needs_origin=needs_origin) - - return decorator - - -def _decorate_params(origin): - origin = _check_decoratable(origin) - - def decorator(fn): - origin._decorate(fn, DecoratableObject.MODE_PARAMS) - - return decorator - -decorate.params = _decorate_params - -def _decorate_result(origin, needs_params=False): - origin = _check_decoratable(origin) - - def decorator(fn): - origin._decorate(fn, DecoratableObject.MODE_RESULT, needs_params=needs_params) - - return decorator - -decorate.result = _decorate_result - -def _decorate_with(fn): - def decorator(origin): - origin = _check_decoratable(origin) - origin._decorate(fn, DecoratableObject.MODE_OVERRIDE, needs_origin=True) - return origin - return decorator - -decorate.withfn = _decorate_with - -def _decorate_result_with(fn, needs_params=False): - def decorator(origin): - origin = _check_decoratable(origin) - origin._decorate(fn, DecoratableObject.MODE_RESULT, needs_params=needs_params) - return origin - return decorator - -decorate.result.withfn = _decorate_result_with - -def _decorate_params_with(fn): - def decorator(origin): - origin = _check_decoratable(origin) - origin._decorate(fn, DecoratableObject.MODE_PARAMS) - return origin - return decorator - -decorate.params.withfn = _decorate_params_with \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/modules/template_loader.py b/forum/modules/template_loader.py/forum/modules/template_loader.py deleted file mode 100644 index ecf6400..0000000 --- a/forum/modules/template_loader.py/forum/modules/template_loader.py +++ /dev/null @@ -1,43 +0,0 @@ -import os, re - -from forum.skins import load_template_source as skins_template_loader, Template, BaseTemplateLoader -from forum.modules import MODULES_FOLDER, MODULE_LIST - -MODULES_TEMPLATE_PREFIX = 'modules/' -NO_OVERRIDE_TEMPLATE_PREFIX = 'no_override/' -MODULES_TEMPLATE_FOLDER = 'templates' -MODULES_TEMPLATE_OVERRIDES_FOLDER = 'template_overrides' - -TEMPLATE_OVERRIDE_LOOKUP_PATHS = [f for f in [ - os.path.join(os.path.dirname(m.__file__), MODULES_TEMPLATE_OVERRIDES_FOLDER) for m in MODULE_LIST - ] if os.path.exists(f) -] - -class ModulesTemplateLoader(BaseTemplateLoader): - - modules_re = re.compile('^%s(\w+)\/(.*)$' % MODULES_TEMPLATE_PREFIX) - - def load_template_source(self, name, dirs=None): - template = None - - if name.startswith(MODULES_TEMPLATE_PREFIX): - match = self.modules_re.search(name) - file_name = os.path.join(MODULES_FOLDER, match.group(1), MODULES_TEMPLATE_FOLDER, match.group(2)) - - if os.path.exists(file_name): - template = Template(file_name) - - elif name.startswith(NO_OVERRIDE_TEMPLATE_PREFIX): - return skins_template_loader.load_template_source(name[len(NO_OVERRIDE_TEMPLATE_PREFIX):], dirs) - - else: - for override_path in TEMPLATE_OVERRIDE_LOOKUP_PATHS: - file_name = os.path.join(override_path, name) - - if os.path.exists(file_name): - template = Template(file_name) - break - - - return template - diff --git a/forum/modules/template_loader.py/forum/modules/ui.py b/forum/modules/template_loader.py/forum/modules/ui.py deleted file mode 100644 index 48c0246..0000000 --- a/forum/modules/template_loader.py/forum/modules/ui.py +++ /dev/null @@ -1,51 +0,0 @@ - - -class Registry(list): - def add(self, item): - for i, r in enumerate(self): - if r.weight > item.weight: - self.insert(i, item) - return - - self.append(item) - - -HEAD_CONTENT = 'HEAD_CONTENT' -HEADER_LINKS = 'HEADER_LINKS' -PAGE_TOP_TABS = 'PAGE_TOP_TABS' -FOOTER_LINKS = 'FOOTER_LINKS' -PROFILE_TABS = 'PROFILE_TABS' - -USER_MENU = 'USER_MENU' - - -__CONTAINER = { - HEAD_CONTENT: Registry(), - HEADER_LINKS: Registry(), - PAGE_TOP_TABS: Registry(), - FOOTER_LINKS: Registry(), - PROFILE_TABS: Registry(), - - USER_MENU: Registry(), -} - - -def register(registry, *ui_objects): - if not registry in __CONTAINER: - raise('unknown registry') - - for ui_object in ui_objects: - __CONTAINER[registry].add(ui_object) - -def get_registry_by_name(name): - name = name.upper() - - if not name in __CONTAINER: - raise('unknown registry') - - return __CONTAINER[name] - - - -from ui_objects import * - diff --git a/forum/modules/template_loader.py/forum/modules/ui_objects.py b/forum/modules/template_loader.py/forum/modules/ui_objects.py deleted file mode 100644 index e42c940..0000000 --- a/forum/modules/template_loader.py/forum/modules/ui_objects.py +++ /dev/null @@ -1,210 +0,0 @@ -from django.core.urlresolvers import reverse -from django.template.defaultfilters import slugify -from django import template -from forum.utils import html -from forum.models.user import AnonymousUser -from ui import Registry -from copy import copy - -class Visibility(object): - def __init__(self, level='public'): - if level not in ['public', 'authenticated', 'staff', 'superuser', 'owner']: - try: - int(level) - self.by_reputation = True - except: - raise "Invalid visibility level for ui object: %s" % level - else: - self.by_reputation = False - - self.level = level - self.negated = False - - def show_to(self, user): - if self.by_reputation: - res = user.is_authenticated() and (user.reputation >= int(self.level) or user.is_staff or user.is_superuser) - else: - res = self.level == 'public' or (user.is_authenticated() and ( - self.level == 'authenticated' or ( - self.level == 'superuser' and user.is_superuser) or ( - self.level == 'staff' and (user.is_staff or user.is_superuser)) or ( - self.level == 'owner' and user.is_siteowner))) - - if self.negated: - return not res - else: - return res - - def __invert__(self): - inverted = copy(self) - inverted.negated = True - - -Visibility.PUBLIC = Visibility('public') -Visibility.AUTHENTICATED = Visibility('authenticated') -Visibility.STAFF = Visibility('staff') -Visibility.SUPERUSER = Visibility('superuser') -Visibility.OWNER = Visibility('owner') -Visibility.REPUTED = lambda r: Visibility(r) - - -class Url(object): - def __init__(self, url_pattern): - self.url_pattern = url_pattern - - def __call__(self, u, c): - return reverse(self.url_pattern) - - -class ObjectBase(object): - class Argument(object): - def __init__(self, argument): - self.argument = argument - - def __call__(self, context): - if callable(self.argument): - user = context.get('request', None) and context['request'].user or AnonymousUser() - return self.argument(user, context) - else: - return self.argument - - def __init__(self, visibility=None, weight=500): - self.visibility = visibility - self.weight = weight - - def _visible_to(self, user): - return (not self.visibility) or (self.visibility and self.visibility.show_to(user)) - - def can_render(self, context): - try: - return self._visible_to(context['request'].user) - except KeyError: - try: - return self._visible_to(context['viewer']) - except KeyError: - return self._visible_to(AnonymousUser()) - - def render(self, context): - return '' - -class LoopBase(ObjectBase): - def update_context(self, context): - pass - - - -class Link(ObjectBase): - def __init__(self, text, url, attrs=None, pre_code='', post_code='', visibility=None, weight=500): - super(Link, self).__init__(visibility, weight) - self.text = self.Argument(text) - self.url = self.Argument(url) - self.attrs = self.Argument(attrs or {}) - self.pre_code = self.Argument(pre_code) - self.post_code = self.Argument(post_code) - - def render(self, context): - return "%s %s %s" % (self.pre_code(context), - html.hyperlink(self.url(context), self.text(context), **self.attrs(context)), - self.post_code(context)) - -class Include(ObjectBase): - def __init__(self, tpl, visibility=None, weight=500): - super(Include, self).__init__(visibility, weight) - self.template = template.loader.get_template(tpl) - - def render(self, context): - if not isinstance(context, template.Context): - context = template.Context(context) - return self.template.render(context) - - -class LoopContext(LoopBase): - def __init__(self, loop_context, visibility=None, weight=500): - super(LoopContext, self).__init__(visibility, weight) - self.loop_context = self.Argument(loop_context) - - def update_context(self, context): - context.update(self.loop_context(context)) - - -class PageTab(LoopBase): - def __init__(self, tab_name, tab_title, url_getter, weight): - super(PageTab, self).__init__(weight=weight) - self.tab_name = tab_name - self.tab_title = tab_title - self.url_getter = url_getter - - def update_context(self, context): - context.update(dict( - tab_name=self.tab_name, - tab_title=self.tab_title, - tab_url=self.url_getter() - )) - - -class ProfileTab(LoopBase): - def __init__(self, name, title, description, url_getter, private=False, render_to=None, weight=500): - super(ProfileTab, self).__init__(weight=weight) - self.name = name - self.title = title - self.description = description - self.url_getter = url_getter - self.private = private - self.render_to = render_to - - def can_render(self, context): - return (not self.render_to or (self.render_to(context['view_user']))) and ( - not self.private or ( - context['view_user'] == context['request'].user or context['request'].user.is_superuser)) - - def update_context(self, context): - context.update(dict( - tab_name=self.name, - tab_title=self.title, - tab_description = self.description, - tab_url=self.url_getter(context['view_user']) - )) - - -class AjaxMenuItem(ObjectBase): - def __init__(self, label, url, a_attrs=None, span_label='', span_attrs=None, visibility=None, weight=500): - super(AjaxMenuItem, self).__init__(visibility, weight) - self.label = self.Argument(label) - self.url = self.Argument(url) - self.a_attrs = self.Argument(a_attrs or {}) - self.span_label = self.Argument(span_label) - self.span_attrs = self.Argument(span_attrs or {}) - - def render(self, context): - return html.buildtag('li', - html.buildtag('span', self.span_label(context), **self.span_attrs(context)) + \ - html.hyperlink(self.url(context), self.label(context), **self.a_attrs(context)), - **{'class': 'item'}) - -class AjaxMenuGroup(ObjectBase, Registry): - def __init__(self, label, items, visibility=None, weight=500): - super(AjaxMenuGroup, self).__init__(visibility, weight) - self.label = label - - for item in items: - self.add(item) - - def can_render(self, context): - if super(AjaxMenuGroup, self).can_render(context): - for item in self: - if item.can_render(context): return True - - return False - - def render(self, context): - return html.buildtag('li', self.label, **{'class': 'separator'}) + "".join([ - item.render(context) for item in self if item.can_render(context) - ]) - -class UserMenuItem(AjaxMenuItem): - def __init__(self, render_to=None, *args, **kwargs): - super(UserMenuItem, self).__init__(*args, **kwargs) - self.render_to = render_to - - def can_render(self, context): - return (not self.render_to or (self.render_to(context['user']))) and super(UserMenuItem, self)._visible_to(context['viewer']) diff --git a/forum/modules/template_loader.py/forum/registry.py b/forum/modules/template_loader.py/forum/registry.py deleted file mode 100644 index ff5a115..0000000 --- a/forum/modules/template_loader.py/forum/registry.py +++ /dev/null @@ -1,109 +0,0 @@ -from forum.modules import ui -from django.utils.translation import ugettext as _ -from django.core.urlresolvers import reverse -from django.template.defaultfilters import slugify -from forum.templatetags.extra_tags import get_score_badge -from forum.utils.html import cleanup_urls -from forum import settings - - -ui.register(ui.HEADER_LINKS, - ui.Link(_('faq'), ui.Url('faq'), weight=400), - ui.Link(_('about'), ui.Url('about'), weight=300), - - ui.Link( - text=lambda u, c: u.is_authenticated() and _('logout') or _('login'), - url=lambda u, c: u.is_authenticated() and reverse('logout') or reverse('auth_signin'), - weight=200), - - ui.Link( - visibility=ui.Visibility.AUTHENTICATED, - text=lambda u, c: u.username, - url=lambda u, c: u.get_profile_url(), - post_code=lambda u, c: get_score_badge(u), - weight=100), - - ui.Link( - visibility=ui.Visibility.SUPERUSER, - text=_('administration'), - url=lambda u, c: reverse('admin_index'), - weight=0) - -) - -class SupportLink(ui.Link): - def can_render(self, context): - return bool(settings.SUPPORT_URL) - - -ui.register(ui.FOOTER_LINKS, - ui.Link( - text=_('contact'), - url=lambda u, c: settings.CONTACT_URL and settings.CONTACT_URL or "%s?next=%s" % (reverse('feedback'), cleanup_urls( c['request'].path)), - weight=400), - SupportLink(_('support'), settings.SUPPORT_URL, attrs={'target': '_blank'}, weight=300), - ui.Link(_('privacy'), ui.Url('privacy'), weight=200), - ui.Link(_('faq'), ui.Url('faq'), weight=100), - ui.Link(_('about'), ui.Url('about'), weight=0), -) - -class ModerationMenuGroup(ui.AjaxMenuGroup): - def can_render(self, context): - return context['user'] != context['viewer'] and super(ModerationMenuGroup, self).can_render(context) - -class SuperUserSwitchMenuItem(ui.UserMenuItem): - def can_render(self, context): - return context['viewer'].is_siteowner or not context['user'].is_superuser - -ui.register(ui.USER_MENU, - ui.UserMenuItem( - label=_("edit profile"), - url=lambda u, c: reverse('edit_user', kwargs={'id': c['user'].id}), - span_attrs={'class': 'user-edit'}, - weight=0 - ), - ui.UserMenuItem( - label=_("authentication settings"), - url=lambda u, c: reverse('user_authsettings', kwargs={'id': c['user'].id}), - span_attrs={'class': 'user-auth'}, - weight=100 - ), - ui.UserMenuItem( - label=_("email notification settings"), - url=lambda u, c: reverse('user_subscriptions', kwargs={'id': c['user'].id, 'slug': slugify(c['user'].username)}), - span_attrs={'class': 'user-subscriptions'}, - weight=200 - ), - ui.UserMenuItem( - label=_("other preferences"), - url=lambda u, c: reverse('user_preferences', kwargs={'id': c['user'].id, 'slug': slugify(c['user'].username)}), - weight=200 - ), - ModerationMenuGroup(_("Moderation tools"), items=( - ui.UserMenuItem( - label=lambda u, c: c['user'].is_suspended() and _("withdraw suspension") or _("suspend this user"), - url=lambda u, c: reverse('user_suspend', kwargs={'id': c['user'].id}), - a_attrs=lambda u, c: {'class': c['user'].is_suspended() and 'ajax-command confirm' or 'ajax-command withprompt'}, - render_to=lambda u: not u.is_superuser, - ), - ui.UserMenuItem( - label=lambda u, c: _("give/take karma"), - url=lambda u, c: reverse('user_award_points', kwargs={'id': c['user'].id}), - a_attrs=lambda u, c: {'id': 'award-rep-points', 'class': 'ajax-command withprompt'}, - span_attrs={'class': 'user-award_rep'}, - render_to=lambda u: not u.is_suspended(), - ), - ui.UserMenuItem( - label=lambda u, c: c['user'].is_staff and _("remove moderator status") or _("grant moderator status"), - url=lambda u, c: reverse('user_powers', kwargs={'id': c['user'].id, 'action':c['user'].is_staff and 'remove' or 'grant', 'status': 'staff'}), - a_attrs=lambda u, c: {'class': 'ajax-command confirm'}, - span_attrs={'class': 'user-moderator'}, - ), - SuperUserSwitchMenuItem( - label=lambda u, c: c['user'].is_superuser and _("remove super user status") or _("grant super user status"), - url=lambda u, c: reverse('user_powers', kwargs={'id': c['user'].id, 'action':c['user'].is_superuser and 'remove' or 'grant', 'status': 'super'}), - a_attrs=lambda u, c: {'class': 'ajax-command confirm'}, - span_attrs={'class': 'user-superuser'}, - ), - ), visibility=ui.Visibility.SUPERUSER, weight=500) -) diff --git a/forum/modules/template_loader.py/forum/settings/__init__.py b/forum/modules/template_loader.py/forum/settings/__init__.py deleted file mode 100644 index e10fc76..0000000 --- a/forum/modules/template_loader.py/forum/settings/__init__.py +++ /dev/null @@ -1,48 +0,0 @@ -import os.path -from base import Setting, SettingSet - -from django.forms.widgets import Textarea -from django.utils.translation import ugettext_lazy as _ -from django.conf import settings as djsettings -from django.utils.version import get_svn_revision - -OSQA_VERSION = "Development Build" -SVN_REVISION = get_svn_revision(djsettings.SITE_SRC_ROOT) - -MAINTAINANCE_MODE = Setting('MAINTAINANCE_MODE', None) - -SETTINGS_PACK = Setting('SETTINGS_PACK', "default") -DJSTYLE_ADMIN_INTERFACE = Setting('DJSTYLE_ADMIN_INTERFACE', True) -NODE_MAN_FILTERS = Setting('NODE_MAN_FILTERS', []) - -APP_URL = djsettings.APP_URL -APP_BASE_URL = djsettings.APP_BASE_URL -FORCE_SCRIPT_NAME = djsettings.FORCE_SCRIPT_NAME -OSQA_SKIN = djsettings.OSQA_DEFAULT_SKIN -LANGUAGE_CODE = djsettings.LANGUAGE_CODE -ADMIN_MEDIA_PREFIX = djsettings.ADMIN_MEDIA_PREFIX -ONLINE_USERS = Setting('ONLINE_USERS', {}) - - -from basic import * -from sidebar import * -from email import * -from extkeys import * -from minrep import * -from repgain import * -from voting import * -from upload import * -from about import * -from faq import * -from form import * -from view import * -from moderation import * -from users import * -from static import * -from urls import * -from accept import * - -BADGES_SET = SettingSet('badges', _('Badges config'), _("Configure badges on your OSQA site."), 500) - -#__all__ = locals().keys() - diff --git a/forum/modules/template_loader.py/forum/settings/about.py b/forum/modules/template_loader.py/forum/settings/about.py deleted file mode 100644 index b4f1a64..0000000 --- a/forum/modules/template_loader.py/forum/settings/about.py +++ /dev/null @@ -1,28 +0,0 @@ -from base import Setting, SettingSet -from django.forms.widgets import Textarea - -PAGES_SET = SettingSet('about', 'About page', "Define the text in the about page. You can use markdown and some basic html tags.", 2000, True) - -ABOUT_PAGE_TEXT = Setting('ABOUT_PAGE_TEXT', -u""" -**Please customize this text in the administration area** - -Here you can **ask** and **answer** questions, **comment** -and **vote** for the questions of others and their answers. Both questions and answers -**can be revised** and improved. Questions can be **tagged** with -the relevant keywords to simplify future access and organize the accumulated material. - -This Q&A site is moderated by its members, hopefully - including yourself! -Moderation rights are gradually assigned to the site users based on the accumulated "**karma**" -points. These points are added to the users account when others vote for his/her questions or answers. -These points (very) roughly reflect the level of trust of the community. - -No points are necessary to ask or answer the questions - so please - join us! - -If you would like to find out more about this site - please see the **frequently asked questions** page. -""", PAGES_SET, dict( -label = "About page text", -help_text = """ -The about page. -""", -widget=Textarea(attrs={'rows': '20'}))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/accept.py b/forum/modules/template_loader.py/forum/settings/accept.py deleted file mode 100644 index aa29e09..0000000 --- a/forum/modules/template_loader.py/forum/settings/accept.py +++ /dev/null @@ -1,25 +0,0 @@ -from base import Setting, SettingSet -from django.forms.widgets import RadioSelect -from django.utils.translation import ugettext_lazy as _ - -ACCEPT_SET = SettingSet('accept', _('Accepting answers'), _("Settings to tweak the behaviour of accepting answers."), 500) - -DISABLE_ACCEPTING_FEATURE = Setting('DISABLE_ACCEPTING_FEATURE', False, ACCEPT_SET, dict( -label = _("Disallow answers to be accepted"), -help_text = _("Disable accepting answers feature. If you re-enable it in the future, currently accepted answers will still be marked as accepted."), -required=False)) - -MAXIMUM_ACCEPTED_ANSWERS = Setting('MAXIMUM_ACCEPTED_ANSWERS', 1, ACCEPT_SET, dict( -label = _("Maximum accepted answers per question"), -help_text = _("How many accepted answers are allowed per question. Use 0 for no limit."))) - -MAXIMUM_ACCEPTED_PER_USER = Setting('MAXIMUM_ACCEPTED_PER_USER', 1, ACCEPT_SET, dict( -label = _("Maximum accepted answers per user/question"), -help_text = _("If more than one accpeted answer is allowed, how many can be accepted per single user per question."))) - -USERS_CAN_ACCEPT_OWN = Setting('USERS_CAN_ACCEPT_OWN', False, ACCEPT_SET, dict( -label = _("Users an accept own answer"), -help_text = _("Are normal users allowed to accept their own answers.."), -required=False)) - - diff --git a/forum/modules/template_loader.py/forum/settings/base.py b/forum/modules/template_loader.py/forum/settings/base.py deleted file mode 100644 index 7436f46..0000000 --- a/forum/modules/template_loader.py/forum/settings/base.py +++ /dev/null @@ -1,128 +0,0 @@ -import django.dispatch -from django.utils.encoding import force_unicode -from datetime import datetime, timedelta -import logging - -TMP_MINICACHE_SECONDS = 5 - -class SettingSet(list): - def __init__(self, name, title, description, weight=1000, markdown=False, can_preview=False): - self.name = name - self.title = title - self.description = description - self.weight = weight - self.markdown = markdown - self.can_preview = can_preview - - -class BaseSetting(object): - @classmethod - def add_to_class(cls, name): - def wrapper(self, *args, **kwargs): - return self.value.__getattribute__(name)(*args, **kwargs) - - setattr(cls, name, wrapper) - - def __init__(self, name, default, set=None, field_context=None): - self.name = name - self.default = default - self.field_context = field_context or {} - - self._temp = None - - if set is not None: - self.set = set - - if not set.name in Setting.sets: - Setting.sets[set.name] = set - - Setting.sets[set.name].append(self) - - def __str__(self): - return str(self.value) - - def __unicode__(self): - return unicode(self.value) - - @property - def value(self): - if self._temp: - v, exp = self._temp - if exp + timedelta(seconds=TMP_MINICACHE_SECONDS) > datetime.now(): - return v - - from forum.models import KeyValue - - try: - kv = KeyValue.objects.get(key=self.name) - v = kv.value - self._temp = (v, datetime.now() + timedelta(seconds=TMP_MINICACHE_SECONDS)) - return v - except KeyValue.DoesNotExist: - self._temp = (self.default, datetime.now() + timedelta(seconds=TMP_MINICACHE_SECONDS)) - self.save(self.default) - except Exception, e: - logging.error("Error retrieving setting from database (%s): %s" % (self.name, str(e))) - - return self.default - - def set_value(self, new_value): - new_value = self._parse(new_value) - self._temp = None - self.save(new_value) - - def save(self, value): - from forum.models import KeyValue - - try: - kv = KeyValue.objects.get(key=self.name) - except KeyValue.DoesNotExist: - kv = KeyValue(key=self.name) - except Exception, e: - logging.error("Error savin setting to database (%s): %s" % (self.name, str(e))) - return - - kv.value = value - kv.save() - - def to_default(self): - self.set_value(self.default) - - def _parse(self, value): - if not isinstance(value, self.base_type): - try: - return self.base_type(value) - except: - pass - return value - -class AnyTypeSetting(BaseSetting): - def _parse(self, value): - return value - - -class Setting(object): - emulators = {} - sets = {} - - def __new__(cls, name, default, set=None, field_context=None): - if default is None: - return AnyTypeSetting(name, default, set, field_context) - - deftype = type(default) - - if deftype in Setting.emulators: - emul = Setting.emulators[deftype] - else: - emul = type(deftype.__name__ + cls.__name__, (BaseSetting,), {'base_type': deftype}) - - fns = [n for n, f in [(p, getattr(deftype, p)) for p in dir(deftype) if not p in dir(cls)] if callable(f)] - - for n in fns: - emul.add_to_class(n) - - Setting.emulators[deftype] = emul - - return emul(name, default, set, field_context) - - diff --git a/forum/modules/template_loader.py/forum/settings/basic.py b/forum/modules/template_loader.py/forum/settings/basic.py deleted file mode 100644 index a4efd6f..0000000 --- a/forum/modules/template_loader.py/forum/settings/basic.py +++ /dev/null @@ -1,52 +0,0 @@ -import os.path - -from base import Setting, SettingSet -from forms import ImageFormWidget - -from django.utils.translation import ugettext_lazy as _ -from django.forms.widgets import Textarea - -BASIC_SET = SettingSet('basic', _('Basic settings'), _("The basic settings for your application"), 1) - -APP_LOGO = Setting('APP_LOGO', '/upfiles/logo.png', BASIC_SET, dict( -label = _("Application logo"), -help_text = _("Your site main logo."), -widget=ImageFormWidget)) - -APP_FAVICON = Setting('APP_FAVICON', '/m/default/media/images/favicon.ico', BASIC_SET, dict( -label = _("Favicon"), -help_text = _("Your site favicon."), -widget=ImageFormWidget)) - -APP_TITLE = Setting('APP_TITLE', u'OSQA: Open Source Q&A Forum', BASIC_SET, dict( -label = _("Application title"), -help_text = _("The title of your application that will show in the browsers title bar"))) - -APP_SHORT_NAME = Setting(u'APP_SHORT_NAME', 'OSQA', BASIC_SET, dict( -label = _("Application short name"), -help_text = "The short name for your application that will show up in many places.")) - -APP_KEYWORDS = Setting('APP_KEYWORDS', u'OSQA,CNPROG,forum,community', BASIC_SET, dict( -label = _("Application keywords"), -help_text = _("The meta keywords that will be available through the HTML meta tags."))) - -APP_DESCRIPTION = Setting('APP_DESCRIPTION', u'Ask and answer questions.', BASIC_SET, dict( -label = _("Application description"), -help_text = _("The description of your application"), -widget=Textarea)) - -APP_COPYRIGHT = Setting('APP_COPYRIGHT', u'Copyright OSQA, 2010. Some rights reserved under creative commons license.', BASIC_SET, dict( -label = _("Copyright notice"), -help_text = _("The copyright notice visible at the footer of your page."))) - -SUPPORT_URL = Setting('SUPPORT_URL', '', BASIC_SET, dict( -label = _("Support URL"), -help_text = _("The URL provided for users to get support. It can be http: or mailto: or whatever your preferred support scheme is."), -required=False)) - -CONTACT_URL = Setting('CONTACT_URL', '', BASIC_SET, dict( -label = _("Contact URL"), -help_text = _("The URL provided for users to contact you. It can be http: or mailto: or whatever your preferred contact scheme is."), -required=False)) - - diff --git a/forum/modules/template_loader.py/forum/settings/email.py b/forum/modules/template_loader.py/forum/settings/email.py deleted file mode 100644 index 5e8bddf..0000000 --- a/forum/modules/template_loader.py/forum/settings/email.py +++ /dev/null @@ -1,78 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ -from django.forms.widgets import PasswordInput -from django.forms.widgets import RadioSelect - -EMAIL_SET = SettingSet('email', _('Email settings'), _("Email server and other email related settings."), 50) - -EMAIL_SUBSCRIBE_CHOICES = ( - ('y', _('Users are subscribed by default')), - ('n', _('Users are not subscribed by default')), -) - -INITIAL_EMAIL_SUBSCRIBE_OPTION = Setting('INITIAL_EMAIL_SUBSCRIBE_OPTION', 'y', EMAIL_SET, dict( -label = _("Default email subscription"), -widget=RadioSelect, -choices=EMAIL_SUBSCRIBE_CHOICES, -help_text = _("Choose what should be the default email subscription status while registering."), -required=False)) - -EMAIL_HOST = Setting('EMAIL_HOST', '', EMAIL_SET, dict( -label = _("Email Server"), -help_text = _("The SMTP server through which your application will be sending emails."), -required=False)) - -EMAIL_PORT = Setting('EMAIL_PORT', 25, EMAIL_SET, dict( -label = _("Email Port"), -help_text = _("The port on which your SMTP server is listening to. Usually this is 25, but can be something else."), -required=False)) - -EMAIL_HOST_USER = Setting('EMAIL_HOST_USER', '', EMAIL_SET, dict( -label = _("Email User"), -help_text = _("The username for your SMTP connection."), -required=False)) - -EMAIL_HOST_PASSWORD = Setting('EMAIL_HOST_PASSWORD', '', EMAIL_SET, dict( -label = _("Email Password"), -help_text = _("The password for your SMTP connection."), -required=False, -widget=PasswordInput)) - -EMAIL_USE_TLS = Setting('EMAIL_USE_TLS', False, EMAIL_SET, dict( -label = _("Use TLS"), -help_text = _("Whether to use TLS for authentication with your SMTP server."), -required=False)) - -DEFAULT_FROM_EMAIL = Setting('DEFAULT_FROM_EMAIL', '', EMAIL_SET, dict( -label = _("Site 'from' Email Address"), -help_text = _("The address that will show up on the 'from' field on emails sent by your website."), -required=False)) - -EMAIL_SUBJECT_PREFIX = Setting('EMAIL_SUBJECT_PREFIX', '', EMAIL_SET, dict( -label = _("Email Subject Prefix"), -help_text = _("Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easily set up a filter on theyr email clients."), -required=False)) - -EMAIL_FOOTER_TEXT = Setting(u'EMAIL_FOOTER_TEXT', '', EMAIL_SET, dict( -label = _("Email Footer Text"), -help_text = _("Email footer text, usually \"CAN SPAM\" compliance, or the physical address of the organization running the website. See this Wikipedia article for more info."), -required=False)) - -EMAIL_BORDER_COLOR = Setting('EMAIL_BORDER_COLOR', '#e5ebf8', EMAIL_SET, dict( -label = _("Email Border Color"), -help_text = _("The outter border color of the email base template"), -required=False)) - -EMAIL_PARAGRAPH_STYLE = Setting('EMAIL_PARAGRAPH_STYLE', "color:#333333;font-family:'helvetica neue', arial, Helvetica, sans-serif;line-height:18px;font-size:14px;margin-top:10px;", EMAIL_SET, dict( -label = _("Email Paragraph Style"), -help_text = _("A valid css string to be used to style email paragraphs (the P tag)."), -required=False)) - -EMAIL_ANCHOR_STYLE = Setting('EMAIL_ANCHOR_STYLE', "text-decoration:none;color:#3060a8;font-weight:bold;", EMAIL_SET, dict( -label = _("Email Link Style"), -help_text = _("A valid css string to be used to style email links (the A tag)."), -required=False)) - - - -EMAIL_DIGEST_FLAG = Setting('EMAIL_DIGEST_FLAG', None) diff --git a/forum/modules/template_loader.py/forum/settings/extkeys.py b/forum/modules/template_loader.py/forum/settings/extkeys.py deleted file mode 100644 index 9d439df..0000000 --- a/forum/modules/template_loader.py/forum/settings/extkeys.py +++ /dev/null @@ -1,15 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -EXT_KEYS_SET = SettingSet('extkeys', _('External Keys'), _("Keys for various external providers that your application may optionally use."), 100) - -GOOGLE_SITEMAP_CODE = Setting('GOOGLE_SITEMAP_CODE', '', EXT_KEYS_SET, dict( -label = _("Google sitemap code"), -help_text = _("This is the code you get when you register your site at Google webmaster central."), -required=False)) - -GOOGLE_ANALYTICS_KEY = Setting('GOOGLE_ANALYTICS_KEY', '', EXT_KEYS_SET, dict( -label = _("Google analytics key"), -help_text = _("Your Google analytics key. You can get one at the Google analytics official website"), -required=False)) - diff --git a/forum/modules/template_loader.py/forum/settings/faq.py b/forum/modules/template_loader.py/forum/settings/faq.py deleted file mode 100644 index 2be4a13..0000000 --- a/forum/modules/template_loader.py/forum/settings/faq.py +++ /dev/null @@ -1,61 +0,0 @@ -from base import Setting, SettingSet -from django.forms.widgets import Textarea - -FAQ_SET = SettingSet('faq', 'FAQ page', "Define the text in the about page. You can use markdown and some basic html tags.", 2000, True) - -FAQ_PAGE_TEXT = Setting('FAQ_PAGE_TEXT', -u""" -**Please customize this text in the administration area** - -**Frequently Asked Questions (FAQ)** - -**What kinds of questions can I ask here?** - -Most importantly - questions should be relevant to this community. Before you ask - please make sure to search for a similar question. You can search questions by their title or tags. - -**What kinds of questions should be avoided?** - -Please avoid asking questions that are not relevant to this community, too subjective and argumentative. - -**What should I avoid in my answers?** - -OSQA: Open Source Q&A Forum is a question and answer site - it is not a discussion group. Please avoid holding debates in your answers as they tend to dilute the essense of questions and answers. For the brief discussions please use commenting facility. - -**Who moderates this community?** - -The short answer is: you. This website is moderated by the users. Karma system allows users to earn rights to perform a variety of moderation tasks - -**How does the karma system work?** - -When a question or answer is upvoted, the user who posted them will gain some points, which are called "karma points". These points serve as a rough measure of the community trust to him/her. Various moderation tasks are gradually assigned to the users based on those points. - -For example, if you ask an interesting question or give a helpful answer, your input will be upvoted. On the other hand if the answer is misleading - it will be downvoted. Each vote in favor will generate |REP_GAIN_BY_UPVOTED| points, each vote against will subtract |REP_LOST_BY_DOWNVOTED| points. There is a limit of 200 points that can be accumulated per question or answer. The table below explains karma requirements for each type of moderation task. - -* add comments -> |REP_TO_COMMENT| -* delete comments -> |REP_TO_DELETE_COMMENTS| -* close own questions -> |REP_TO_CLOSE_OWN| -* reopen own questions -> |REP_TO_REOPEN_OWN| -* retag questions -> |REP_TO_RETAG| -* edit any answer -> |REP_TO_EDIT_OTHERS| -* open any closed question -> |REP_TO_CLOSE_OTHERS| -* delete any comment -> |REP_TO_DELETE_COMMENTS| - -**What is gravatar?** - -Gravatar means globally recognized avatar - your unique avatar image associated with your email address. It's simply a picture that shows next to your posts on the websites that support gravatar protocol. By default gravar appears as a square filled with a snowflake-like figure. You can set your image at gravatar.com - -**To register, do I need to create new password?** - -No, you don't have to. You can login through any service that supports OpenID, e.g. Google, Yahoo, AOL, etc. Login now! - -**Why can other people can edit my questions/answers?** - -Goal of this site is... So questions and answers can be edited like wiki pages by experienced users of this site and this improves the overall quality of the knowledge base content. If this approach is not for you, we respect your choice. - -**Still have questions?** - -Please ask your question, help make our community better! -""", FAQ_SET, dict( -label = "FAQ page text", -help_text = " The faq page. ", -widget=Textarea(attrs={'rows': '25'}))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/form.py b/forum/modules/template_loader.py/forum/settings/form.py deleted file mode 100644 index 5f770b3..0000000 --- a/forum/modules/template_loader.py/forum/settings/form.py +++ /dev/null @@ -1,87 +0,0 @@ -import os.path -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -FORUM_SET = SettingSet('form', _('Form settings'), _("General settings for the OSQA forms."), 10) - -WIKI_ON = Setting('WIKI_ON', True, FORUM_SET, dict( -label = _("Enable community wiki"), -help_text = _("Can questions or answers be marked as community wiki."), -required=False)) - -LIMIT_TAG_CREATION = Setting('LIMIT_TAG_CREATION', False, FORUM_SET, dict( -label = _("Limit tag creation"), -help_text = _("Limit tag creation to super users, staff or users with a minimum reputation."), -required=False)) - - -""" settings for questions """ -FORM_MIN_QUESTION_TITLE = Setting('FORM_MIN_QUESTION_TITLE', 10, FORUM_SET, dict( -label = _("Minimum number of characters for a question's title"), -help_text = _("The minimum number of characters a user must enter into the title field of a question."))) - -# FORM_MAX_QUESTION_TITLE = Setting('FORM_MAX_QUESTION_TITLE', 100, FORUM_SET, dict( -# label = _("Maximum number of characters for a question."), -# help_text = _("The maximum number of characters a user can enter into the description field to submit a question."))) - -FORM_MIN_QUESTION_BODY = Setting('FORM_MIN_QUESTION_BODY', 10, FORUM_SET, dict( -label = _("Minimum number of characters for a question's content"), -help_text = _("The minimum number of characters a user must enter into the content field of a question."))) - -# FORM_MAX_QUESTION_DESCRIPTION = Setting('FORM_MAX_QUESTION_DESCRIPTION', 600, FORUM_SET, dict( -# label = _("Maximum number of characters for a question."), -# help_text = _("The maximum number of characters a user can enter into the description field to submit a question."))) - -FORM_EMPTY_QUESTION_BODY = Setting('FORM_EMPTY_QUESTION_BODY', False, FORUM_SET, dict( -label = _("Empty question content"), -help_text = _("If a question's content can be empty."), -required=False)) - - - - -""" settings for tags """ -FORM_MIN_NUMBER_OF_TAGS = Setting('FORM_MIN_NUMBER_OF_TAGS', 1, FORUM_SET, dict( -label = _("Required number of tags per question"), -help_text = _("How many tags are required in questions."), -)) - -FORM_MAX_NUMBER_OF_TAGS = Setting('FORM_MAX_NUMBER_OF_TAGS', 5, FORUM_SET, dict( -label = _("Maximum number of tags per question"), -help_text = _("How many tags are allowed in questions."), -)) - -FORM_MIN_LENGTH_OF_TAG = Setting('FORM_MIN_LENGTH_OF_TAG', 1, FORUM_SET, dict( -label = _("Minimum length of a tag"), -help_text = _("How short a tag can be."), -)) - -FORM_MAX_LENGTH_OF_TAG = Setting('FORM_MAX_LENGTH_OF_TAG', 20, FORUM_SET, dict( -label = _("Maximum length of a tag"), -help_text = _("How long a tag can be."), -)) - - - - -""" settings for comments """ -FORM_MIN_COMMENT_BODY = Setting('FORM_MIN_COMMENT_BODY', 10, FORUM_SET, dict( -label = _("Minimum number of characters for a comment"), -help_text = _("The minimum number of characters a user must enter into the body of a comment."))) - -FORM_MAX_COMMENT_BODY = Setting('FORM_MAX_COMMENT_BODY', 600, FORUM_SET, dict( -label = _("Maximum length of comment"), -help_text = _("The maximum number of characters a user can enter into the body of a comment."))) - -FORM_ALLOW_MARKDOWN_IN_COMMENTS = Setting('FORM_ALLOW_MARKDOWN_IN_COMMENTS', True, FORUM_SET, dict( -label = _("Allow markdown in comments"), -help_text = _("Allow users to use markdown in comments."), -required=False)) - -FORM_GRAVATAR_IN_COMMENTS = Setting('FORM_GRAVATAR_IN_COMMENTS', False, FORUM_SET, dict( -label = _("Show author gravatar in comments"), -help_text = _("Show the gravatar image of a comment author."), -required=False)) - - - diff --git a/forum/modules/template_loader.py/forum/settings/forms.py b/forum/modules/template_loader.py/forum/settings/forms.py deleted file mode 100644 index 0c12301..0000000 --- a/forum/modules/template_loader.py/forum/settings/forms.py +++ /dev/null @@ -1,126 +0,0 @@ -import os -from string import strip -from django import forms -from forum.settings.base import Setting -from django.utils.translation import ugettext as _ -from django.core.files.storage import FileSystemStorage - -class DummySetting: - pass - -class UnfilteredField(forms.CharField): - def clean(self, value): - return value - - -class SettingsSetForm(forms.Form): - def __init__(self, set, data=None, unsaved=None, *args, **kwargs): - initial = dict([(setting.name, setting.value) for setting in set]) - - if unsaved: - initial.update(unsaved) - - super(SettingsSetForm, self).__init__(data, initial=initial, *args, **kwargs) - - for setting in set: - widget = setting.field_context.get('widget', None) - - if widget is forms.CheckboxSelectMultiple or widget is forms.SelectMultiple or isinstance(widget, forms.SelectMultiple): - field = forms.MultipleChoiceField(**setting.field_context) - elif widget is forms.RadioSelect or isinstance(widget, forms.RadioSelect): - field = forms.ChoiceField(**setting.field_context) - elif isinstance(setting, (Setting.emulators.get(str, DummySetting), Setting.emulators.get(unicode, DummySetting))): - if not setting.field_context.get('widget', None): - setting.field_context['widget'] = forms.TextInput(attrs={'class': 'longstring'}) - field = forms.CharField(**setting.field_context) - elif isinstance(setting, Setting.emulators.get(float, DummySetting)): - field = forms.FloatField(**setting.field_context) - elif isinstance(setting, Setting.emulators.get(int, DummySetting)): - field = forms.IntegerField(**setting.field_context) - elif isinstance(setting, Setting.emulators.get(bool, DummySetting)): - field = forms.BooleanField(**setting.field_context) - else: - field = UnfilteredField(**setting.field_context) - - self.fields[setting.name] = field - - self.set = set - - def as_table(self): - return self._html_output( - u'%(label)s' + ('
%s|%s' % ( - _('context'), _('default'))) + u'%(errors)s%(field)s%(help_text)s', - u'%s', '', u'
%s', False) - - def save(self): - for setting in self.set: - setting.set_value(self.cleaned_data[setting.name]) - -class ImageFormWidget(forms.Widget): - def render(self, name, value, attrs=None): - return """ -
- %(change)s: - - """ % {'name': name, 'value': value, 'change': _('Change this:')} - - def value_from_datadict(self, data, files, name): - if name in files: - f = files[name] - - # check file type - file_name_suffix = os.path.splitext(f.name)[1].lower() - - if not file_name_suffix in ('.jpg', '.jpeg', '.gif', '.png', '.bmp', '.tiff', '.ico'): - raise Exception('File type not allowed') - - from forum.settings import UPFILES_FOLDER, UPFILES_ALIAS - - storage = FileSystemStorage(str(UPFILES_FOLDER), str(UPFILES_ALIAS)) - new_file_name = storage.save(f.name, f) - return str(UPFILES_ALIAS) + new_file_name - else: - if "%s_old" % name in data: - return data["%s_old" % name] - elif name in data: - return data[name] - -class StringListWidget(forms.Widget): - def render(self, name, value, attrs=None): - ret = "" - for s in value: - ret += """ -
- - -
- """ % {'name': name, 'value': s} - - return """ -
- %(ret)s -
-
- """ % dict(name=name, ret=ret) - - def value_from_datadict(self, data, files, name): - if 'submit' in data: - return data.getlist(name) - else: - return data[name] - -class CommaStringListWidget(forms.Textarea): - def render(self, name, value, attrs=None): - return super(CommaStringListWidget, self).render(name, ', '.join(value), attrs) - - - def value_from_datadict(self, data, files, name): - if 'submit' in data: - return map(strip, data[name].split(',')) - else: - return ', '.join(data[name]) - - - - - diff --git a/forum/modules/template_loader.py/forum/settings/minrep.py b/forum/modules/template_loader.py/forum/settings/minrep.py deleted file mode 100644 index 8206823..0000000 --- a/forum/modules/template_loader.py/forum/settings/minrep.py +++ /dev/null @@ -1,90 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -MIN_REP_SET = SettingSet('minrep', _('Minimum reputation config'), _("Configure the minimum reputation required to perform certain actions on your site."), 300) - -CAPTCHA_IF_REP_LESS_THAN = Setting('CAPTCHA_IF_REP_LESS_THAN', 0, MIN_REP_SET, dict( -label = _("Show captcha if user with less reputation than"), -help_text = _("If the user has less reputation, captcha is used to when adding new content."))) - -REP_TO_VOTE_UP = Setting('REP_TO_VOTE_UP', 15, MIN_REP_SET, dict( -label = _("Minimum reputation to vote up"), -help_text = _("The minimum reputation an user must have to be allowed to vote up."))) - -REP_TO_VOTE_DOWN = Setting('REP_TO_VOTE_DOWN', 100, MIN_REP_SET, dict( -label = _("Minimum reputation to vote down"), -help_text = _("The minimum reputation an user must have to be allowed to vote down."))) - -REP_TO_FLAG = Setting('REP_TO_FLAG', 15, MIN_REP_SET, dict( -label = _("Minimum reputation to flag a post"), -help_text = _("The minimum reputation an user must have to be allowed to flag a post."))) - -REP_TO_COMMENT = Setting('REP_TO_COMMENT', 50, MIN_REP_SET, dict( -label = _("Minimum reputation to comment"), -help_text = _("The minimum reputation an user must have to be allowed to comment a post."))) - -REP_TO_LIKE_COMMENT = Setting('REP_TO_LIKE_COMMENT', 15, MIN_REP_SET, dict( -label = _("Minimum reputation to like a comment"), -help_text = _("The minimum reputation an user must have to be allowed to \"like\" a comment."))) - -REP_TO_UPLOAD = Setting('REP_TO_UPLOAD', 60, MIN_REP_SET, dict( -label = _("Minimum reputation to upload"), -help_text = _("The minimum reputation an user must have to be allowed to upload a file."))) - -REP_TO_CREATE_TAGS = Setting('REP_TO_CREATE_TAGS', 250, MIN_REP_SET, dict( -label = _("Minimum reputation to create tags"), -help_text = _("The minimum reputation an user must have to be allowed to create new tags."))) - -REP_TO_CLOSE_OWN = Setting('REP_TO_CLOSE_OWN', 250, MIN_REP_SET, dict( -label = _("Minimum reputation to close own question"), -help_text = _("The minimum reputation an user must have to be allowed to close his own question."))) - -REP_TO_REOPEN_OWN = Setting('REP_TO_REOPEN_OWN', 500, MIN_REP_SET, dict( -label = _("Minimum reputation to reopen own question"), -help_text = _("The minimum reputation an user must have to be allowed to reopen his own question."))) - -REP_TO_RETAG = Setting('REP_TO_RETAG', 500, MIN_REP_SET, dict( -label = _("Minimum reputation to retag others questions"), -help_text = _("The minimum reputation an user must have to be allowed to retag others questions."))) - -REP_TO_EDIT_WIKI = Setting('REP_TO_EDIT_WIKI', 750, MIN_REP_SET, dict( -label = _("Minimum reputation to edit wiki posts"), -help_text = _("The minimum reputation an user must have to be allowed to edit community wiki posts."))) - -REP_TO_WIKIFY = Setting('REP_TO_WIKIFY', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to mark post as community wiki"), -help_text = _("The minimum reputation an user must have to be allowed to mark a post as community wiki."))) - -REP_TO_EDIT_OTHERS = Setting('REP_TO_EDIT_OTHERS', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to edit others posts"), -help_text = _("The minimum reputation an user must have to be allowed to edit others posts."))) - -REP_TO_CLOSE_OTHERS = Setting('REP_TO_CLOSE_OTHERS', 3000, MIN_REP_SET, dict( -label = _("Minimum reputation to close others posts"), -help_text = _("The minimum reputation an user must have to be allowed to close others posts."))) - -REP_TO_DELETE_COMMENTS = Setting('REP_TO_DELETE_COMMENTS', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to delete comments"), -help_text = _("The minimum reputation an user must have to be allowed to delete comments."))) - -REP_TO_CONVERT_TO_COMMENT = Setting('REP_TO_CONVERT_TO_COMMENT', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to convert answers to comment"), -help_text = _("The minimum reputation an user must have to be allowed to convert an answer into a comment."))) - -REP_TO_CONVERT_COMMENTS_TO_ANSWERS = Setting('REP_TO_CONVERT_COMMENTS_TO_ANSWERS', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to convert comments to answers"), -help_text = _("The minimum reputation an user must have to be allowed to convert comments into an answer."))) - -REP_TO_CONVERT_TO_QUESTION = Setting('REP_TO_CONVERT_TO_QUESTION', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to convert answers to questions"), -help_text = _("The minimum reputation an user must have to be allowed to convert an answer into a question."))) - -REP_TO_VIEW_FLAGS = Setting('REP_TO_VIEW_FLAGS', 2000, MIN_REP_SET, dict( -label = _("Minimum reputation to view offensive flags"), -help_text = _("The minimum reputation an user must have to view offensive flags."))) - -#REP_TO_DISABLE_NOFOLLOW = Setting('REP_TO_DISABLE_NOFOLLOW', 2000, MIN_REP_SET, dict( -#label = _("Minimum reputation to disable nofollow"), -#help_text = _(""" -#The minimum reputation an user must have to be allowed to disable the nofollow attribute of a post link. -#"""))) diff --git a/forum/modules/template_loader.py/forum/settings/moderation.py b/forum/modules/template_loader.py/forum/settings/moderation.py deleted file mode 100644 index 6af5401..0000000 --- a/forum/modules/template_loader.py/forum/settings/moderation.py +++ /dev/null @@ -1,24 +0,0 @@ -from base import Setting, SettingSet -from forms import StringListWidget - -from django.utils.translation import ugettext_lazy as _ -from django.forms.widgets import Textarea - -MODERATION_SET = SettingSet('moderation', _('Moderation settings'), _("Define the moderation workflow of your site"), 100) - -FLAG_TYPES = Setting('FLAG_TYPES', -["Spam", "Advertising", "Offensive, Abusive, or Inappropriate", "Content violates terms of use", "Copyright Violation", - "Misleading", "Someone is not being nice", "Not relevant/off-topic", "Other"], -MODERATION_SET, dict( -label = _("Flag Reasons"), -help_text = _("Create some flag reasons to use in the flag post popup."), -widget=StringListWidget)) - - -CLOSE_TYPES = Setting('CLOSE_TYPES', -["Duplicate Question", "Question is off-topic or not relevant", "Too subjective and argumentative", - "The question is answered, right answer was accepted", "Problem is not reproducible or outdated", "Other"], -MODERATION_SET, dict( -label = _("Close Reasons"), -help_text = _("Create some close reasons to use in the close question popup."), -widget=StringListWidget)) diff --git a/forum/modules/template_loader.py/forum/settings/repgain.py b/forum/modules/template_loader.py/forum/settings/repgain.py deleted file mode 100644 index cfb566b..0000000 --- a/forum/modules/template_loader.py/forum/settings/repgain.py +++ /dev/null @@ -1,45 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -REP_GAIN_SET = SettingSet('repgain', _('Reputation gains and losses config'), _("Configure the reputation points a user may gain or lose upon certain actions."), 200) - -INITIAL_REP = Setting('INITIAL_REP', 1, REP_GAIN_SET, dict( -label = _("Initial reputation"), -help_text = _("The initial reputation an user gets when he first signs in."))) - -MAX_REP_BY_UPVOTE_DAY = Setting('MAX_REP_BY_UPVOTE_DAY', 200, REP_GAIN_SET, dict( -label = "Max rep by up votes / day", -help_text = _("Maximum reputation a user can gain in one day for being upvoted."))) - -REP_GAIN_BY_UPVOTED = Setting('REP_GAIN_BY_UPVOTED', 10, REP_GAIN_SET, dict( -label = _("Rep gain by upvoted"), -help_text = _("Reputation a user gains for having one of his posts up voted."))) - -REP_LOST_BY_DOWNVOTED = Setting('REP_LOST_BY_DOWNVOTED', 2, REP_GAIN_SET, dict( -label = _("Rep lost by downvoted"), -help_text = _("Reputation a user loses for having one of his posts down voted."))) - -REP_LOST_BY_DOWNVOTING = Setting('REP_LOST_BY_DOWNVOTING', 1, REP_GAIN_SET, dict( -label = _("Rep lost by downvoting"), -help_text = _("Reputation a user loses for down voting a post."))) - - -REP_GAIN_BY_ACCEPTED = Setting('REP_GAIN_BY_ACCEPTED', 15, REP_GAIN_SET, dict( -label = _("Rep gain by accepted answer"), -help_text = _("Reputation a user gains for having one of his answers accepted."))) - -REP_GAIN_BY_ACCEPTING = Setting('REP_GAIN_BY_ACCEPTING', 2, REP_GAIN_SET, dict( -label = _("Rep gain by accepting answer"), -help_text = _("Reputation a user gains for accepting an answer to one of his questions."))) - -REP_LOST_BY_FLAGGED = Setting('REP_LOST_BY_FLAGGED', 2, REP_GAIN_SET, dict( -label = _("Rep lost by post flagged"), -help_text = _("Reputation a user loses by having one of his posts flagged."))) - -REP_LOST_BY_FLAGGED_3_TIMES = Setting('REP_LOST_BY_FLAGGED_3_TIMES', 30, REP_GAIN_SET, dict( -label = _("Rep lost by post flagged and hidden"), -help_text = _("Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to hide the post."))) - -REP_LOST_BY_FLAGGED_5_TIMES = Setting('REP_LOST_BY_FLAGGED_5_TIMES', 100, REP_GAIN_SET, dict( -label = _("Rep lost by post flagged and deleted"), -help_text = _("Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to delete the post."))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/sidebar.py b/forum/modules/template_loader.py/forum/settings/sidebar.py deleted file mode 100644 index ee75293..0000000 --- a/forum/modules/template_loader.py/forum/settings/sidebar.py +++ /dev/null @@ -1,78 +0,0 @@ -from base import Setting, SettingSet -from django.forms.widgets import Textarea, Select -from django.utils.translation import ugettext_lazy as _ - -from static import RENDER_CHOICES - -SIDEBAR_SET = SettingSet('sidebar', 'Sidebar content', "Enter contents to display in the sidebar. You can use markdown and some basic html tags.", 10, True) - -SHOW_WELCOME_BOX = Setting('SHOW_WELCOME_BOX', True, SIDEBAR_SET, dict( -label = _("Show the Welcome box"), -help_text = _("Do you want to show the welcome box when a user first visits your site."), -required=False)) - -APP_INTRO = Setting('APP_INTRO', u'

Ask and answer questions, make the world better!

', SIDEBAR_SET, dict( -label = _("Application intro"), -help_text = _("The introductory page that is visible in the sidebar for anonymous users."), -widget=Textarea)) - - -SIDEBAR_UPPER_SHOW = Setting('SIDEBAR_UPPER_SHOW', True, SIDEBAR_SET, dict( -label = "Show Upper Block", -help_text = "Check if your pages should display the upper sidebar block.", -required=False)) - -SIDEBAR_UPPER_DONT_WRAP = Setting('SIDEBAR_UPPER_DONT_WRAP', False, SIDEBAR_SET, dict( -label = "Don't Wrap Upper Block", -help_text = "Don't wrap upper block with the standard style.", -required=False)) - -SIDEBAR_UPPER_TEXT = Setting('SIDEBAR_UPPER_TEXT', -u""" -[![WebFaction logo][2]][1] -## [Reliable OSQA Hosting][1] - -We recommend [**WebFaction**][1] for OSQA hosting. For \ -under $10/month their reliable servers get the job done. See our \ -[**step-by-step setup guide**](http://wiki.osqa.net/display/docs/Installing+OSQA+on+WebFaction). - -[1]: http://www.webfaction.com?affiliate=osqa -[2]: /m/default/media/images/webfaction.png""", SIDEBAR_SET, dict( -label = "Upper Block Content", -help_text = " The upper sidebar block. ", -widget=Textarea(attrs={'rows': '10'}))) - -SIDEBAR_UPPER_RENDER_MODE = Setting('SIDEBAR_UPPER_RENDER_MODE', 'markdown', SIDEBAR_SET, dict( -label = _("Upper block rendering mode"), -help_text = _("How to render your upper block code."), -widget=Select(choices=RENDER_CHOICES), -required=False)) - - -SIDEBAR_LOWER_SHOW = Setting('SIDEBAR_LOWER_SHOW', True, SIDEBAR_SET, dict( -label = "Show Lower Block", -help_text = "Check if your pages should display the lower sidebar block.", -required=False)) - -SIDEBAR_LOWER_DONT_WRAP = Setting('SIDEBAR_LOWER_DONT_WRAP', False, SIDEBAR_SET, dict( -label = "Don't Wrap Lower Block", -help_text = "Don't wrap lower block with the standard style.", -required=False)) - -SIDEBAR_LOWER_TEXT = Setting('SIDEBAR_LOWER_TEXT', -u""" -## Learn more about OSQA - -The [**OSQA website**](http://www.osqa.net/) and [**OSQA wiki**](http://wiki.osqa.net/) \ -are great resources to help you learn more about the OSQA open source Q&A system. \ -[**Join the OSQA chat!**](http://meta.osqa.net/question/79/is-there-an-online-chat-room-or-irc-channel-for-osqa#302) -""", SIDEBAR_SET, dict( -label = "Lower Block Content", -help_text = " The lower sidebar block. ", -widget=Textarea(attrs={'rows': '10'}))) - -SIDEBAR_LOWER_RENDER_MODE = Setting('SIDEBAR_LOWER_RENDER_MODE', 'markdown', SIDEBAR_SET, dict( -label = _("Lower block rendering mode"), -help_text = _("How to render your lower block code."), -widget=Select(choices=RENDER_CHOICES), -required=False)) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/static.py b/forum/modules/template_loader.py/forum/settings/static.py deleted file mode 100644 index 9eb5d39..0000000 --- a/forum/modules/template_loader.py/forum/settings/static.py +++ /dev/null @@ -1,106 +0,0 @@ -from base import Setting, SettingSet -from django.forms.widgets import Textarea, RadioSelect, Select -from django.utils.translation import ugettext_lazy as _ - -RENDER_CHOICES = ( -('markdown', _('Markdown')), -('html', _('HTML')), -('escape', _('Escaped')) -) - -STATIC_PAGE_REGISTRY = Setting('STATIC_PAGE_REGISTRY', {}) - -CSS_SET = SettingSet('css', 'Custom CSS', "Define some custom css you can use to override the default css.", 2000, - can_preview=True) - -USE_CUSTOM_CSS = Setting('USE_CUSTOM_CSS', False, CSS_SET, dict( - label = _("Use custom CSS"), - help_text = _("Do you want to use custom CSS."), - required=False)) - -CUSTOM_CSS = Setting('CUSTOM_CSS', '', CSS_SET, dict( - label = _("Custom CSS"), - help_text = _("Your custom CSS."), - widget=Textarea(attrs={'rows': '25'}), - required=False)) - -HEAD_AND_FOOT_SET = SettingSet('headandfoot', 'Header and Footer', "Adds a custom header and/or footer to your page", - 2000, can_preview=True) - -USE_CUSTOM_HEADER = Setting('USE_CUSTOM_HEADER', False, HEAD_AND_FOOT_SET, dict( - label = _("Use custom header"), - help_text = _("Do you want to use a custom header."), - required=False)) - -CUSTOM_HEADER = Setting('CUSTOM_HEADER', '', HEAD_AND_FOOT_SET, dict( - label = _("Custom Header"), - help_text = _("Your custom header."), - widget=Textarea(attrs={'rows': '25'}), - required=False)) - -CUSTOM_HEADER_RENDER_MODE = Setting('CUSTOM_HEADER_RENDER_MODE', 'markdown', HEAD_AND_FOOT_SET, dict( - label = _("Custom Header rendering mode"), - help_text = _("How to render your custom header code."), - widget=Select(choices=RENDER_CHOICES), - required=False)) - -USE_ANNOUNCEMENT_BAR = Setting('USE_ANNOUNCEMENT_BAR', False, HEAD_AND_FOOT_SET, dict( - label = _("Show announcement bar"), - help_text = _("Some piece of content that goes under the search bar and can be used for announcements, etc."), - required=False)) - -ANNOUNCEMENT_BAR = Setting('ANNOUNCEMENT_BAR', '', HEAD_AND_FOOT_SET, dict( - label = _("Announcement bar"), - help_text = _("The announcement bar content."), - widget=Textarea(attrs={'rows': '25'}), - required=False)) - -ANNOUNCEMENT_BAR_RENDER_MODE = Setting('ANNOUNCEMENT_BAR_RENDER_MODE', 'markdown', HEAD_AND_FOOT_SET, dict( - label = _("Announcement bar rendering mode"), - help_text = _("How to render your announcement bar code."), - widget=Select(choices=RENDER_CHOICES), - required=False)) - -USE_CUSTOM_FOOTER = Setting('USE_CUSTOM_FOOTER', False, HEAD_AND_FOOT_SET, dict( - label = _("Use custom footer"), - help_text = _("Do you want to use a custom footer."), - required=False)) - -CUSTOM_FOOTER = Setting('CUSTOM_FOOTER', '', HEAD_AND_FOOT_SET, dict( - label = _("Custom Footer"), - help_text = _("Your custom footer."), - widget=Textarea(attrs={'rows': '25'}), - required=False)) - -CUSTOM_FOOTER_RENDER_MODE = Setting('CUSTOM_FOOTER_RENDER_MODE', 'markdown', HEAD_AND_FOOT_SET, dict( - label = _("Custom footer rendering mode"), - help_text = _("How to render your custom footer code."), - widget=Select(choices=RENDER_CHOICES), - required=False)) - -CUSTOM_FOOTER_MODE_CHOICES = ( -('replace', _('Replace default footer')), -('above', _('Above default footer')), -('below', _('Below default footer')), -) - -CUSTOM_FOOTER_MODE = Setting('CUSTOM_FOOTER_MODE', 'replace', HEAD_AND_FOOT_SET, dict( - label = _("Custom Footer Mode"), - help_text = _("How your custom footer will appear."), - widget=RadioSelect, - choices=CUSTOM_FOOTER_MODE_CHOICES, - required=False)) - -HEAD_SET = SettingSet('head', '', "Define some custom elements to include in the head section of every page.", - 2000, can_preview=True) - -USE_CUSTOM_HEAD = Setting('USE_CUSTOM_HEAD', False, HEAD_SET, dict( - label = _("Use custom Head elements"), - help_text = _("Do you want to use custom head elements."), - required=False)) - -CUSTOM_HEAD = Setting('CUSTOM_HEAD', '', HEAD_SET, dict( - label = _("Custom Head"), - help_text = _("Your custom Head elements."), - widget=Textarea(attrs={'rows': '25'}), - required=False)) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/upload.py b/forum/modules/template_loader.py/forum/settings/upload.py deleted file mode 100644 index 6e66e00..0000000 --- a/forum/modules/template_loader.py/forum/settings/upload.py +++ /dev/null @@ -1,17 +0,0 @@ -import os.path -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -UPLOAD_SET = SettingSet('paths', _('File upload settings'), _("File uploads related settings."), 600) - -UPFILES_FOLDER = Setting('UPFILES_FOLDER', os.path.join(os.path.dirname(os.path.dirname(__file__)),'upfiles'), UPLOAD_SET, dict( -label = _("Uploaded files folder"), -help_text = _("The filesystem path where uploaded files will be stored. Please note that this folder must exist."))) - -UPFILES_ALIAS = Setting('UPFILES_ALIAS', '/upfiles/', UPLOAD_SET, dict( -label = _("Uploaded files alias"), -help_text = _("The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site."))) - -ALLOW_MAX_FILE_SIZE = Setting('ALLOW_MAX_FILE_SIZE', 2.5, UPLOAD_SET, dict( -label = _("Max file size"), -help_text = _("The maximum allowed file size for uploads in mb."))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/urls.py b/forum/modules/template_loader.py/forum/settings/urls.py deleted file mode 100644 index e532c55..0000000 --- a/forum/modules/template_loader.py/forum/settings/urls.py +++ /dev/null @@ -1,15 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext as _ - -URLS_SET = SettingSet('urls', _('URL settings'), _("Some settings to tweak behaviour of site urls (experimental).")) - -ALLOW_UNICODE_IN_SLUGS = Setting('ALLOW_UNICODE_IN_SLUGS', False, URLS_SET, dict( -label = _("Allow unicode in slugs"), -help_text = _("Allow unicode/non-latin characters in urls."), -required=False)) - -FORCE_SINGLE_URL = Setting('FORCE_SINGLE_URL', True, URLS_SET, dict( -label = _("Force single url"), -help_text = _("Redirect the request in case there is a mismatch between the slug in the url and the actual slug"), -required=False)) - diff --git a/forum/modules/template_loader.py/forum/settings/users.py b/forum/modules/template_loader.py/forum/settings/users.py deleted file mode 100644 index 040e8eb..0000000 --- a/forum/modules/template_loader.py/forum/settings/users.py +++ /dev/null @@ -1,86 +0,0 @@ -from forms import CommaStringListWidget -from django.forms import CheckboxSelectMultiple -from django.forms.widgets import RadioSelect -from base import Setting, SettingSet -from django.utils.translation import ugettext as _ - -USERS_SET = SettingSet('users', _('Users settings'), _("General settings for the OSQA users."), 20) - -EDITABLE_SCREEN_NAME = Setting('EDITABLE_SCREEN_NAME', False, USERS_SET, dict( -label = _("Editable screen name"), -help_text = _("Allow users to alter their screen name."), -required=False)) - -MIN_USERNAME_LENGTH = Setting('MIN_USERNAME_LENGTH', 3, USERS_SET, dict( -label = _("Minimum username length"), -help_text = _("The minimum length (in character) of a username."))) - -RESERVED_USERNAMES = Setting('RESERVED_USERNAMES', -[_('fuck'), _('shit'), _('ass'), _('sex'), _('add'), _('edit'), _('save'), _('delete'), _('manage'), _('update'), _('remove'), _('new')] -, USERS_SET, dict( -label = _("Disabled usernames"), -help_text = _("A comma separated list of disabled usernames (usernames not allowed during a new user registration)."), -widget=CommaStringListWidget)) - -SHOW_STATUS_DIAMONDS = Setting('SHOW_STATUS_DIAMONDS', True, USERS_SET, dict( -label=_("Show status diamonds"), -help_text = _("Show status \"diamonds\" next to moderators or superusers usernames."), -required=False, -)) - -EMAIL_UNIQUE = Setting('EMAIL_UNIQUE', True, USERS_SET, dict( -label = _("Force unique email"), -help_text = _("Should each user have an unique email."), -required=False)) - -REQUIRE_EMAIL_VALIDATION_TO = Setting('REQUIRE_EMAIL_VALIDATION_TO', [], USERS_SET, dict( -label = _("Require email validation to..."), -help_text = _("Which actions in this site, users without a valid email will be prevented from doing."), -widget=CheckboxSelectMultiple, -choices=(("ask", _("ask questions")), ("answer", _("provide answers")), ("comment", _("make comments")), ("flag", _("report posts"))), -required=False, -)) - -DONT_NOTIFY_UNVALIDATED = Setting('DONT_NOTIFY_UNVALIDATED', True, USERS_SET, dict( -label = _("Don't notify to invalid emails"), -help_text = _("Do not notify users with unvalidated emails."), -required=False)) - -HOLD_PENDING_POSTS_MINUTES = Setting('HOLD_PENDING_POSTS_MINUTES', 120, USERS_SET, dict( -label=_("Hold pending posts for X minutes"), -help_text=_("How much time in minutes a post should be kept in session until the user logs in or validates the email.") -)) - -WARN_PENDING_POSTS_MINUTES = Setting('WARN_PENDING_POSTS_MINUTES', 15, USERS_SET, dict( -label=_("Warn about pending posts afer X minutes"), -help_text=_("How much time in minutes a user that just logged in or validated his email should be warned about a pending post instead of publishing it automatically.") -)) - -GRAVATAR_RATING_CHOICES = ( - ('g', _('suitable for display on all websites with any audience type.')), - ('pg', _('may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence.')), - ('r', _('may contain such things as harsh profanity, intense violence, nudity, or hard drug use.')), - ('x', _('may contain hardcore sexual imagery or extremely disturbing violence.')), -) - -GRAVATAR_ALLOWED_RATING = Setting('GRAVATAR_ALLOWED_RATING', 'g', USERS_SET, dict( -label = _("Gravatar rating"), -help_text = _("Gravatar allows users to self-rate their images so that they can indicate if an image is appropriate for a certain audience."), -widget=RadioSelect, -choices=GRAVATAR_RATING_CHOICES, -required=False)) - -GRAVATAR_DEFAULT_CHOICES = ( - ('mm', _('(mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash)')), - ('identicon', _('a geometric pattern based on an email hash')), - ('monsterid', _('a generated "monster" with different colors, faces, etc')), - ('wavatar', _('generated faces with differing features and backgrounds')), -) - -GRAVATAR_DEFAULT_IMAGE = Setting('GRAVATAR_DEFAULT_IMAGE', 'identicon', USERS_SET, dict( -label = _("Gravatar default"), -help_text = _("Gravatar has a number of built in options which you can also use as defaults."), -widget=RadioSelect, -choices=GRAVATAR_DEFAULT_CHOICES, -required=False)) - diff --git a/forum/modules/template_loader.py/forum/settings/view.py b/forum/modules/template_loader.py/forum/settings/view.py deleted file mode 100644 index 1eb44b0..0000000 --- a/forum/modules/template_loader.py/forum/settings/view.py +++ /dev/null @@ -1,17 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -""" view settings """ -VIEW_SET = SettingSet('view', _('View settings'), _("Set up how certain parts of the site are displayed."), 20) - -RECENT_TAGS_SIZE = Setting('RECENT_TAGS_SIZE', 25, VIEW_SET, dict( -label = _("Recent tags block size"), -help_text = _("The number of tags to display in the recent tags block in the front page."))) - -RECENT_AWARD_SIZE = Setting('RECENT_AWARD_SIZE', 15, VIEW_SET, dict( -label = _("Recent awards block size"), -help_text = _("The number of awards to display in the recent awards block in the front page."))) - -LIMIT_RELATED_TAGS = Setting('LIMIT_RELATED_TAGS', 0, VIEW_SET, dict( -label = _("Limit related tags block"), -help_text = _("Limit related tags block size in questions list pages. Set to 0 to display all all tags."))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/settings/voting.py b/forum/modules/template_loader.py/forum/settings/voting.py deleted file mode 100644 index aea9153..0000000 --- a/forum/modules/template_loader.py/forum/settings/voting.py +++ /dev/null @@ -1,32 +0,0 @@ -from base import Setting, SettingSet -from django.utils.translation import ugettext_lazy as _ - -VOTE_RULES_SET = SettingSet('voting', _('Voting rules'), _("Configure the voting rules on your site."), 400) - -USER_REPUTATION_TO_MAX_VOTES = Setting('USER_REPUTATION_TO_MAX_VOTES', True, VOTE_RULES_SET, dict( -label = _("Add reputation to max votes per day"), required=False, -help_text = _("The user reputation is added to the static MAX_VOTES_PER_DAY option. Users with higher reputation can vote more."))) - -MAX_VOTES_PER_DAY = Setting('MAX_VOTES_PER_DAY', 30, VOTE_RULES_SET, dict( -label = _("Maximum votes per day"), -help_text = _("The maximum number of votes an user can cast per day."))) - -START_WARN_VOTES_LEFT = Setting('START_WARN_VOTES_LEFT', 10, VOTE_RULES_SET, dict( -label = _("Start warning about votes left"), -help_text = _("From how many votes left should an user start to be warned about it."))) - -MAX_FLAGS_PER_DAY = Setting('MAX_FLAGS_PER_DAY', 5, VOTE_RULES_SET, dict( -label = _("Maximum flags per day"), -help_text = _("The maximum number of times an can flag a post per day."))) - -FLAG_COUNT_TO_HIDE_POST = Setting('FLAG_COUNT_TO_HIDE_POST', 3, VOTE_RULES_SET, dict( -label = _("Flag count to hide post"), -help_text = _("How many times a post needs to be flagged to be hidden from the main page."))) - -FLAG_COUNT_TO_DELETE_POST = Setting('FLAG_COUNT_TO_DELETE_POST', 5, VOTE_RULES_SET, dict( -label = _("Flag count to delete post"), -help_text = _("How many times a post needs to be flagged to be deleted."))) - -DENY_UNVOTE_DAYS = Setting('DENY_UNVOTE_DAYS', 1, VOTE_RULES_SET, dict( -label = _("Days to cancel a vote"), -help_text = _("How many days an user can cancel a vote after he originaly casted it."))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/sitemap.py b/forum/modules/template_loader.py/forum/sitemap.py deleted file mode 100644 index edb3220..0000000 --- a/forum/modules/template_loader.py/forum/sitemap.py +++ /dev/null @@ -1,80 +0,0 @@ -from django.contrib.sitemaps import Sitemap -from forum.models import Question -from django.conf import settings -from django.http import HttpResponse, Http404 -from django.template import loader -from django.core import urlresolvers -from django.utils.encoding import smart_str -from django.core.paginator import EmptyPage, PageNotAnInteger - -def index(request, sitemaps): - sites = [] - for section, site in sitemaps.items(): - if callable(site): - pages = site().paginator.num_pages - else: - pages = site.paginator.num_pages - sitemap_url = urlresolvers.reverse('forum.sitemap.sitemap', kwargs={'section': section}) - sites.append('%s%s' % (settings.APP_URL, sitemap_url)) - if pages > 1: - for page in range(2, pages+1): - sites.append('%s%s?p=%s' % (settings.APP_URL, sitemap_url, page)) - xml = loader.render_to_string('sitemap_index.xml', {'sitemaps': sites}) - return HttpResponse(xml, mimetype='application/xml') - -def sitemap(request, sitemaps, section=None): - maps, urls = [], [] - if section is not None: - if section not in sitemaps: - raise Http404("No sitemap available for section: %r" % section) - maps.append(sitemaps[section]) - else: - maps = sitemaps.values() - page = request.GET.get("p", 1) - - for site in maps: - try: - if callable(site): - urls.extend(site().get_urls(page=page)) - else: - urls.extend(site.get_urls(page=page)) - except EmptyPage: - raise Http404("Page %s empty" % page) - except PageNotAnInteger: - raise Http404("No page '%s'" % page) - xml = smart_str(loader.render_to_string('sitemap.xml', {'urlset': urls})) - return HttpResponse(xml, mimetype='application/xml') - -class OsqaSitemap(Sitemap): - changefreq = 'daily' - priority = 0.5 - def items(self): - return Question.objects.filter_state(deleted=False) - - def lastmod(self, obj): - return obj.last_activity_at - - def location(self, obj): - return obj.get_absolute_url() - - def __get(self, name, obj, default=None): - try: - attr = getattr(self, name) - except AttributeError: - return default - if callable(attr): - return attr(obj) - return attr - - def get_urls(self, page=1): - urls = [] - for item in self.paginator.page(page).object_list: - loc = "%s%s" % (settings.APP_URL, self.__get('location', item)) - url_info = { - 'location': loc, - 'lastmod': self.__get('lastmod', item, None), - 'changefreq': self.__get('changefreq', item, None), - 'priority': self.__get('priority', item, None) - } - urls.append(url_info) - return urls \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/skins/README b/forum/modules/template_loader.py/forum/skins/README deleted file mode 100644 index 5565fa8..0000000 --- a/forum/modules/template_loader.py/forum/skins/README +++ /dev/null @@ -1,22 +0,0 @@ -this directory contains available skins - -1) default - default skin with templates -2) common - this directory is to media directory common to all or many templates - -to create a new skin just create another directory under skins/ -and start populating it with the directory structure as in -default/templates - templates must be named the same way - -NO NEED TO CREATE ALL TEMPLATES/MEDIA FILES AT ONCE - -templates are resolved in the following way: -* check in skin named as in settings.OSQA_DEFAULT_SKIN -* then skin named 'default' - -media is resolved with one extra option -* settings.OSQA_DEFAULT_SKIN -* 'default' -* 'common' - -media does not have to be composed of files named the same way as in default skin -whatever media you link to from your templates - will be in operation diff --git a/forum/modules/template_loader.py/forum/skins/__init__.py b/forum/modules/template_loader.py/forum/skins/__init__.py deleted file mode 100644 index 365ed9f..0000000 --- a/forum/modules/template_loader.py/forum/skins/__init__.py +++ /dev/null @@ -1,144 +0,0 @@ -from django.conf import settings -from django.template.loaders import filesystem -from django.template import TemplateDoesNotExist, Template as DJTemplate -from django.conf import settings as djsettings -import os.path -import logging - -UNEXISTENT_TEMPLATE = object() - -SKINS_FOLDER = os.path.dirname(__file__) -SKIN_TEMPLATES_FOLDER = 'templates' -DEFAULT_SKIN_NAME = 'default' - - -class Template(object): - - def __init__(self, file_name): - self._file_name = file_name - self._loaded = False - - def _get_mtime(self): - return os.path.getmtime(self._file_name) - - def _check_mtime(self): - if self._last_mtime is None: - return False - - return self._last_mtime == self._get_mtime() - - def _load(self): - try: - f = open(self._file_name, 'r') - self._source = DJTemplate(f.read()) - f.close() - self._loaded = True - - self._last_mtime = self._get_mtime() - except: - self._loaded = False - self._last_mtime = None - - raise - - def return_tuple(self): - if not (self._loaded and self._check_mtime()): - try: - self._load() - except: - raise TemplateDoesNotExist, self._file_name - - return self._source, self._file_name - -class BaseTemplateLoader(object): - is_usable = True - - def __init__(self): - self.cache = {} - - def __call__(self, name=None, dirs=None): - if name is None: - return self - - return self.load_template(name, dirs) - - def load_template(self, name, dirs=None): - if not djsettings.TEMPLATE_DEBUG: - if name in self.cache: - if self.cache[name] is UNEXISTENT_TEMPLATE: - raise TemplateDoesNotExist, name - - try: - return self.cache[name].return_tuple() - except: - del self.cache[name] - - template = self.load_template_source(name, dirs) - - if template is not None: - if not djsettings.DEBUG: - self.cache[name] = template - - return template.return_tuple() - else: - if not djsettings.DEBUG: - self.cache[name] = UNEXISTENT_TEMPLATE - - raise TemplateDoesNotExist, name - - def load_template_source(self, name, dirs=None): - raise NotImplementedError - - -class SkinsTemplateLoader(BaseTemplateLoader): - - def load_template_source(self, name, dirs=None): - file_name = os.path.join(SKINS_FOLDER, settings.OSQA_DEFAULT_SKIN, SKIN_TEMPLATES_FOLDER, name) - - if os.path.exists(file_name): - return Template(file_name) - - file_name = os.path.join(SKINS_FOLDER, DEFAULT_SKIN_NAME, SKIN_TEMPLATES_FOLDER, name) - - if os.path.exists(file_name): - return Template(file_name) - - return None - -load_template_source = SkinsTemplateLoader() - - -def find_media_source(url): - """returns url prefixed with the skin name - of the first skin that contains the file - directories are searched in this order: - settings.OSQA_DEFAULT_SKIN, then 'default', then 'commmon' - if file is not found - returns None - and logs an error message - """ - while url[0] == '/': url = url[1:] - d = os.path.dirname - n = os.path.normpath - j = os.path.join - f = os.path.isfile - skins = n(j(d(d(__file__)),'skins')) - try: - media = os.path.join(skins, settings.OSQA_DEFAULT_SKIN, url) - assert(f(media)) - use_skin = settings.OSQA_DEFAULT_SKIN - except: - try: - media = j(skins, 'default', url) - assert(f(media)) - use_skin = 'default' - except: - media = j(skins, 'common', url) - try: - assert(f(media)) - use_skin = 'common' - except: - logging.error('could not find media for %s' % url) - use_skin = '' - return None - return use_skin + '/' + url - diff --git a/forum/modules/template_loader.py/forum/skins/common/media/README b/forum/modules/template_loader.py/forum/skins/common/media/README deleted file mode 100644 index 3376e75..0000000 --- a/forum/modules/template_loader.py/forum/skins/common/media/README +++ /dev/null @@ -1 +0,0 @@ -directory for media common to all or many templates diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/blue-up-arrow-h18px.png b/forum/modules/template_loader.py/forum/skins/default/media/images/blue-up-arrow-h18px.png deleted file mode 100644 index e1f29e8..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/blue-up-arrow-h18px.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/box-arrow.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/box-arrow.gif deleted file mode 100644 index 89dcf5b..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/box-arrow.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/bullet_green.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/bullet_green.gif deleted file mode 100644 index fa53091..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/bullet_green.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/by-sa-88x31.png b/forum/modules/template_loader.py/forum/skins/default/media/images/by-sa-88x31.png deleted file mode 100644 index f0a944e..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/by-sa-88x31.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/cc-88x31.png b/forum/modules/template_loader.py/forum/skins/default/media/images/cc-88x31.png deleted file mode 100644 index 0f2a0f1..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/cc-88x31.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/cc-wiki.png b/forum/modules/template_loader.py/forum/skins/default/media/images/cc-wiki.png deleted file mode 100644 index 3e68053..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/cc-wiki.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/close-small-dark.png b/forum/modules/template_loader.py/forum/skins/default/media/images/close-small-dark.png deleted file mode 100644 index 280c1fc..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/close-small-dark.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/close-small-hover.png b/forum/modules/template_loader.py/forum/skins/default/media/images/close-small-hover.png deleted file mode 100644 index 7899aec..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/close-small-hover.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/close-small.png b/forum/modules/template_loader.py/forum/skins/default/media/images/close-small.png deleted file mode 100644 index 5a99d31..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/close-small.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-delete-hover.png b/forum/modules/template_loader.py/forum/skins/default/media/images/comment-delete-hover.png deleted file mode 100644 index e8c69f4..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-delete-hover.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-delete.png b/forum/modules/template_loader.py/forum/skins/default/media/images/comment-delete.png deleted file mode 100644 index e1c2d8a..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-delete.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-edit-hover.png b/forum/modules/template_loader.py/forum/skins/default/media/images/comment-edit-hover.png deleted file mode 100644 index 8291c56..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-edit-hover.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-edit.png b/forum/modules/template_loader.py/forum/skins/default/media/images/comment-edit.png deleted file mode 100644 index bad5c47..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-edit.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-like-on.png b/forum/modules/template_loader.py/forum/skins/default/media/images/comment-like-on.png deleted file mode 100644 index c2e497e..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-like-on.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-like.png b/forum/modules/template_loader.py/forum/skins/default/media/images/comment-like.png deleted file mode 100644 index 87a19b9..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/comment-like.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/convert-hover.png b/forum/modules/template_loader.py/forum/skins/default/media/images/convert-hover.png deleted file mode 100644 index 9e973ef..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/convert-hover.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/convert-off.png b/forum/modules/template_loader.py/forum/skins/default/media/images/convert-off.png deleted file mode 100644 index a10dddd..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/convert-off.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/dash.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/dash.gif deleted file mode 100644 index d1ddc50..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/dash.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/djangomade124x25_grey.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/djangomade124x25_grey.gif deleted file mode 100644 index d34bb31..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/djangomade124x25_grey.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/dot-g.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/dot-g.gif deleted file mode 100644 index 5d6bb28..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/dot-g.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/dot-list.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/dot-list.gif deleted file mode 100644 index f6a6b86..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/dot-list.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/edit.png b/forum/modules/template_loader.py/forum/skins/default/media/images/edit.png deleted file mode 100644 index dcb09be..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/edit.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/expander-arrow-hide.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/expander-arrow-hide.gif deleted file mode 100644 index feb6a61..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/expander-arrow-hide.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/expander-arrow-show.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/expander-arrow-show.gif deleted file mode 100644 index 6825c56..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/expander-arrow-show.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/favicon.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/favicon.gif deleted file mode 100644 index 910c266..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/favicon.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/favicon.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/favicon.ico deleted file mode 100644 index 35c9e14..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/favicon.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/feed-icon-small.png b/forum/modules/template_loader.py/forum/skins/default/media/images/feed-icon-small.png deleted file mode 100644 index b3c949d..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/feed-icon-small.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/gray-up-arrow-h18px.png b/forum/modules/template_loader.py/forum/skins/default/media/images/gray-up-arrow-h18px.png deleted file mode 100644 index 7876744..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/gray-up-arrow-h18px.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/grippie.png b/forum/modules/template_loader.py/forum/skins/default/media/images/grippie.png deleted file mode 100644 index 6524d41..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/grippie.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/indicator.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/indicator.gif deleted file mode 100644 index 1c72ebb..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/indicator.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/logo.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/logo.gif deleted file mode 100644 index ab690de..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/logo.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/logo.png b/forum/modules/template_loader.py/forum/skins/default/media/images/logo.png deleted file mode 100644 index 6a250e3..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/logo.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/logo1.png b/forum/modules/template_loader.py/forum/skins/default/media/images/logo1.png deleted file mode 100644 index d79a627..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/logo1.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/logo2.png b/forum/modules/template_loader.py/forum/skins/default/media/images/logo2.png deleted file mode 100644 index bd3cccd..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/logo2.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/medala.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/medala.gif deleted file mode 100644 index 93dd1a3..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/medala.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/medala_on.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/medala_on.gif deleted file mode 100644 index a18f9e8..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/medala_on.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/new.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/new.gif deleted file mode 100644 index 8a220b5..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/new.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/nophoto.png b/forum/modules/template_loader.py/forum/skins/default/media/images/nophoto.png deleted file mode 100644 index 2daf0ff..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/nophoto.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid.gif deleted file mode 100644 index 8540e12..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/aol.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/aol.gif deleted file mode 100644 index 92373d5..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/aol.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/aol.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/aol.png deleted file mode 100644 index e5a51a8..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/aol.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/blogger.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/blogger.ico deleted file mode 100644 index 1b9730b..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/blogger.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/blogger.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/blogger.png deleted file mode 100644 index 3c46818..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/blogger.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/claimid.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/claimid.ico deleted file mode 100644 index 2b80f49..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/claimid.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/claimid.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/claimid.png deleted file mode 100644 index 441c0ed..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/claimid.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/facebook.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/facebook.gif deleted file mode 100644 index 9a32529..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/facebook.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/flickr.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/flickr.ico deleted file mode 100644 index 11f6e07..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/flickr.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/flickr.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/flickr.png deleted file mode 100644 index 6c443e1..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/flickr.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/google.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/google.gif deleted file mode 100644 index be451e5..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/google.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/livejournal.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/livejournal.ico deleted file mode 100644 index f3d21ec..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/livejournal.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/livejournal.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/livejournal.png deleted file mode 100644 index 9f2f6dd..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/livejournal.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid.ico deleted file mode 100644 index ceb06e6..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid.png deleted file mode 100644 index e5df78d..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid_big.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid_big.png deleted file mode 100644 index 8c357cb..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/myopenid_big.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/openid-inputicon.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/openid-inputicon.gif deleted file mode 100644 index cde836c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/openid-inputicon.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/openid.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/openid.gif deleted file mode 100644 index c718b0e..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/openid.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/technorati.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/technorati.ico deleted file mode 100644 index fa1083c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/technorati.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/technorati.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/technorati.png deleted file mode 100644 index 7216641..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/technorati.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/twitter.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/twitter.png deleted file mode 100644 index 6178f9c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/twitter.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/verisign.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/verisign.ico deleted file mode 100644 index 3953af9..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/verisign.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/verisign.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/verisign.png deleted file mode 100644 index bc5c5f3..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/verisign.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/vidoop.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/vidoop.ico deleted file mode 100644 index bbd9a0d..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/vidoop.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/wordpress.ico b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/wordpress.ico deleted file mode 100644 index 31b7d2c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/wordpress.ico and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/wordpress.png b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/wordpress.png deleted file mode 100644 index f261705..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/wordpress.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/yahoo.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/openid/yahoo.gif deleted file mode 100644 index 1ebaa7f..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/openid/yahoo.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/quest-bg.gif b/forum/modules/template_loader.py/forum/skins/default/media/images/quest-bg.gif deleted file mode 100644 index b754023..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/quest-bg.gif and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/user-sprite.png b/forum/modules/template_loader.py/forum/skins/default/media/images/user-sprite.png deleted file mode 100644 index f437351..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/user-sprite.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-accepted-on.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-accepted-on.png deleted file mode 100644 index 2026f3b..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-accepted-on.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-accepted.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-accepted.png deleted file mode 100644 index ecd1855..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-accepted.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-down-on.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-down-on.png deleted file mode 100644 index 048dbb4..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-down-on.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-down.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-down.png deleted file mode 100644 index e4fdec0..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-down.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-up-on.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-up-on.png deleted file mode 100644 index 56ad0c2..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-up-on.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-up.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-up.png deleted file mode 100644 index 6e9a51c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-arrow-up.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-favorite-off.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-favorite-off.png deleted file mode 100644 index c1bef07..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-favorite-off.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-favorite-on.png b/forum/modules/template_loader.py/forum/skins/default/media/images/vote-favorite-on.png deleted file mode 100644 index 1f9c14a..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/vote-favorite-on.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/webfaction.png b/forum/modules/template_loader.py/forum/skins/default/media/images/webfaction.png deleted file mode 100644 index 7c19d6c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/webfaction.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/images/wiki.png b/forum/modules/template_loader.py/forum/skins/default/media/images/wiki.png deleted file mode 100644 index a6be558..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/images/wiki.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/compress.bat b/forum/modules/template_loader.py/forum/skins/default/media/js/compress.bat deleted file mode 100644 index f6f2a4f..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/compress.bat +++ /dev/null @@ -1 +0,0 @@ -java -jar yuicompressor-2.4.2.jar --type js --charset utf-8 osqa.main.js -o osqa.main.min.js diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/effects.core.min.js b/forum/modules/template_loader.py/forum/skins/default/media/js/effects.core.min.js deleted file mode 100644 index 0a1d6d4..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/effects.core.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * jQuery UI Effects 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/ - */ -jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h1){j--}if(6*j<1){return i+(Z-i)*6*j}else{if(2*j<1){return Z}else{if(3*j<2){return i+(Z-i)*(2/3-j)*6}else{return i}}}}function Y(Z){var AE,p=1;Z=String(Z);if(Z.charAt(0)=="#"){AE=Z}else{if(/^rgb/.test(Z)){var m=g(Z);var AE="#",AF;for(var j=0;j<3;j++){if(m[j].indexOf("%")!=-1){AF=Math.floor(C(m[j])*255)}else{AF=Number(m[j])}AE+=I[N(AF,0,255)]}p=m[3]}else{if(/^hsl/.test(Z)){var m=g(Z);AE=c(m);p=m[3]}else{AE=B[Z]||Z}}}return{color:AE,alpha:p}}var L={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var f={};function X(Z){if(f[Z]){return f[Z]}var m=document.createElement("div");var j=m.style;try{j.font=Z}catch(i){}return f[Z]={style:j.fontStyle||L.style,variant:j.fontVariant||L.variant,weight:j.fontWeight||L.weight,size:j.fontSize||L.size,family:j.fontFamily||L.family}}function P(j,i){var Z={};for(var AF in j){Z[AF]=j[AF]}var AE=parseFloat(i.currentStyle.fontSize),m=parseFloat(j.size);if(typeof j.size=="number"){Z.size=j.size}else{if(j.size.indexOf("px")!=-1){Z.size=m}else{if(j.size.indexOf("em")!=-1){Z.size=AE*m}else{if(j.size.indexOf("%")!=-1){Z.size=(AE/100)*m}else{if(j.size.indexOf("pt")!=-1){Z.size=m/0.75}else{Z.size=AE}}}}}Z.size*=0.981;return Z}function AA(Z){return Z.style+" "+Z.variant+" "+Z.weight+" "+Z.size+"px "+Z.family}function t(Z){switch(Z){case"butt":return"flat";case"round":return"round";case"square":default:return"square"}}function W(i){this.m_=V();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=D*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=i;var Z=i.ownerDocument.createElement("div");Z.style.width=i.clientWidth+"px";Z.style.height=i.clientHeight+"px";Z.style.overflow="hidden";Z.style.position="absolute";i.appendChild(Z);this.element_=Z;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var M=W.prototype;M.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};M.beginPath=function(){this.currentPath_=[]};M.moveTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"moveTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.lineTo=function(i,Z){var j=this.getCoords_(i,Z);this.currentPath_.push({type:"lineTo",x:j.x,y:j.y});this.currentX_=j.x;this.currentY_=j.y};M.bezierCurveTo=function(j,i,AI,AH,AG,AE){var Z=this.getCoords_(AG,AE);var AF=this.getCoords_(j,i);var m=this.getCoords_(AI,AH);e(this,AF,m,Z)};function e(Z,m,j,i){Z.currentPath_.push({type:"bezierCurveTo",cp1x:m.x,cp1y:m.y,cp2x:j.x,cp2y:j.y,x:i.x,y:i.y});Z.currentX_=i.x;Z.currentY_=i.y}M.quadraticCurveTo=function(AG,j,i,Z){var AF=this.getCoords_(AG,j);var AE=this.getCoords_(i,Z);var AH={x:this.currentX_+2/3*(AF.x-this.currentX_),y:this.currentY_+2/3*(AF.y-this.currentY_)};var m={x:AH.x+(AE.x-this.currentX_)/3,y:AH.y+(AE.y-this.currentY_)/3};e(this,AH,m,AE)};M.arc=function(AJ,AH,AI,AE,i,j){AI*=D;var AN=j?"at":"wa";var AK=AJ+U(AE)*AI-F;var AM=AH+J(AE)*AI-F;var Z=AJ+U(i)*AI-F;var AL=AH+J(i)*AI-F;if(AK==Z&&!j){AK+=0.125}var m=this.getCoords_(AJ,AH);var AG=this.getCoords_(AK,AM);var AF=this.getCoords_(Z,AL);this.currentPath_.push({type:AN,x:m.x,y:m.y,radius:AI,xStart:AG.x,yStart:AG.y,xEnd:AF.x,yEnd:AF.y})};M.rect=function(j,i,Z,m){this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath()};M.strokeRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.stroke();this.currentPath_=p};M.fillRect=function(j,i,Z,m){var p=this.currentPath_;this.beginPath();this.moveTo(j,i);this.lineTo(j+Z,i);this.lineTo(j+Z,i+m);this.lineTo(j,i+m);this.closePath();this.fill();this.currentPath_=p};M.createLinearGradient=function(i,m,Z,j){var p=new v("gradient");p.x0_=i;p.y0_=m;p.x1_=Z;p.y1_=j;return p};M.createRadialGradient=function(m,AE,j,i,p,Z){var AF=new v("gradientradial");AF.x0_=m;AF.y0_=AE;AF.r0_=j;AF.x1_=i;AF.y1_=p;AF.r1_=Z;return AF};M.drawImage=function(AO,j){var AH,AF,AJ,AV,AM,AK,AQ,AX;var AI=AO.runtimeStyle.width;var AN=AO.runtimeStyle.height;AO.runtimeStyle.width="auto";AO.runtimeStyle.height="auto";var AG=AO.width;var AT=AO.height;AO.runtimeStyle.width=AI;AO.runtimeStyle.height=AN;if(arguments.length==3){AH=arguments[1];AF=arguments[2];AM=AK=0;AQ=AJ=AG;AX=AV=AT}else{if(arguments.length==5){AH=arguments[1];AF=arguments[2];AJ=arguments[3];AV=arguments[4];AM=AK=0;AQ=AG;AX=AT}else{if(arguments.length==9){AM=arguments[1];AK=arguments[2];AQ=arguments[3];AX=arguments[4];AH=arguments[5];AF=arguments[6];AJ=arguments[7];AV=arguments[8]}else{throw Error("Invalid number of arguments")}}}var AW=this.getCoords_(AH,AF);var m=AQ/2;var i=AX/2;var AU=[];var Z=10;var AE=10;AU.push(" ','","");this.element_.insertAdjacentHTML("BeforeEnd",AU.join(""))};M.stroke=function(AM){var m=10;var AN=10;var AE=5000;var AG={x:null,y:null};var AL={x:null,y:null};for(var AH=0;AHAL.x){AL.x=Z.x}if(AG.y==null||Z.yAL.y){AL.y=Z.y}}}AK.push(' ">');if(!AM){R(this,AK)}else{a(this,AK,AG,AL)}AK.push("");this.element_.insertAdjacentHTML("beforeEnd",AK.join(""))}};function R(j,AE){var i=Y(j.strokeStyle);var m=i.color;var p=i.alpha*j.globalAlpha;var Z=j.lineScale_*j.lineWidth;if(Z<1){p*=Z}AE.push("')}function a(AO,AG,Ah,AP){var AH=AO.fillStyle;var AY=AO.arcScaleX_;var AX=AO.arcScaleY_;var Z=AP.x-Ah.x;var m=AP.y-Ah.y;if(AH instanceof v){var AL=0;var Ac={x:0,y:0};var AU=0;var AK=1;if(AH.type_=="gradient"){var AJ=AH.x0_/AY;var j=AH.y0_/AX;var AI=AH.x1_/AY;var Aj=AH.y1_/AX;var Ag=AO.getCoords_(AJ,j);var Af=AO.getCoords_(AI,Aj);var AE=Af.x-Ag.x;var p=Af.y-Ag.y;AL=Math.atan2(AE,p)*180/Math.PI;if(AL<0){AL+=360}if(AL<0.000001){AL=0}}else{var Ag=AO.getCoords_(AH.x0_,AH.y0_);Ac={x:(Ag.x-Ah.x)/Z,y:(Ag.y-Ah.y)/m};Z/=AY*D;m/=AX*D;var Aa=z.max(Z,m);AU=2*AH.r0_/Aa;AK=2*AH.r1_/Aa-AU}var AS=AH.colors_;AS.sort(function(Ak,i){return Ak.offset-i.offset});var AN=AS.length;var AR=AS[0].color;var AQ=AS[AN-1].color;var AW=AS[0].alpha*AO.globalAlpha;var AV=AS[AN-1].alpha*AO.globalAlpha;var Ab=[];for(var Ae=0;Ae')}else{if(AH instanceof u){if(Z&&m){var AF=-Ah.x;var AZ=-Ah.y;AG.push("')}}else{var Ai=Y(AO.fillStyle);var AT=Ai.color;var Ad=Ai.alpha*AO.globalAlpha;AG.push('')}}}M.fill=function(){this.stroke(true)};M.closePath=function(){this.currentPath_.push({type:"close"})};M.getCoords_=function(j,i){var Z=this.m_;return{x:D*(j*Z[0][0]+i*Z[1][0]+Z[2][0])-F,y:D*(j*Z[0][1]+i*Z[1][1]+Z[2][1])-F}};M.save=function(){var Z={};Q(this,Z);this.aStack_.push(Z);this.mStack_.push(this.m_);this.m_=d(V(),this.m_)};M.restore=function(){if(this.aStack_.length){Q(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function H(Z){return isFinite(Z[0][0])&&isFinite(Z[0][1])&&isFinite(Z[1][0])&&isFinite(Z[1][1])&&isFinite(Z[2][0])&&isFinite(Z[2][1])}function y(i,Z,j){if(!H(Z)){return }i.m_=Z;if(j){var p=Z[0][0]*Z[1][1]-Z[0][1]*Z[1][0];i.lineScale_=k(b(p))}}M.translate=function(j,i){var Z=[[1,0,0],[0,1,0],[j,i,1]];y(this,d(Z,this.m_),false)};M.rotate=function(i){var m=U(i);var j=J(i);var Z=[[m,j,0],[-j,m,0],[0,0,1]];y(this,d(Z,this.m_),false)};M.scale=function(j,i){this.arcScaleX_*=j;this.arcScaleY_*=i;var Z=[[j,0,0],[0,i,0],[0,0,1]];y(this,d(Z,this.m_),true)};M.transform=function(p,m,AF,AE,i,Z){var j=[[p,m,0],[AF,AE,0],[i,Z,1]];y(this,d(j,this.m_),true)};M.setTransform=function(AE,p,AG,AF,j,i){var Z=[[AE,p,0],[AG,AF,0],[j,i,1]];y(this,Z,true)};M.drawText_=function(AK,AI,AH,AN,AG){var AM=this.m_,AQ=1000,i=0,AP=AQ,AF={x:0,y:0},AE=[];var Z=P(X(this.font),this.element_);var j=AA(Z);var AR=this.element_.currentStyle;var p=this.textAlign.toLowerCase();switch(p){case"left":case"center":case"right":break;case"end":p=AR.direction=="ltr"?"right":"left";break;case"start":p=AR.direction=="rtl"?"right":"left";break;default:p="left"}switch(this.textBaseline){case"hanging":case"top":AF.y=Z.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":AF.y=-Z.size/2.25;break}switch(p){case"right":i=AQ;AP=0.05;break;case"center":i=AP=AQ/2;break}var AO=this.getCoords_(AI+AF.x,AH+AF.y);AE.push('');if(AG){R(this,AE)}else{a(this,AE,{x:-i,y:0},{x:AP,y:Z.size})}var AL=AM[0][0].toFixed(3)+","+AM[1][0].toFixed(3)+","+AM[0][1].toFixed(3)+","+AM[1][1].toFixed(3)+",0,0";var AJ=K(AO.x/D)+","+K(AO.y/D);AE.push('','','');this.element_.insertAdjacentHTML("beforeEnd",AE.join(""))};M.fillText=function(j,Z,m,i){this.drawText_(j,Z,m,i,false)};M.strokeText=function(j,Z,m,i){this.drawText_(j,Z,m,i,true)};M.measureText=function(j){if(!this.textMeasureEl_){var Z='';this.element_.insertAdjacentHTML("beforeEnd",Z);this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(i.createTextNode(j));return{width:this.textMeasureEl_.offsetWidth}};M.clip=function(){};M.arcTo=function(){};M.createPattern=function(i,Z){return new u(i,Z)};function v(Z){this.type_=Z;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}v.prototype.addColorStop=function(i,Z){Z=Y(Z);this.colors_.push({offset:i,color:Z.color,alpha:Z.alpha})};function u(i,Z){q(i);switch(Z){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=Z;break;default:n("SYNTAX_ERR")}this.src_=i.src;this.width_=i.width;this.height_=i.height}function n(Z){throw new o(Z)}function q(Z){if(!Z||Z.nodeType!=1||Z.tagName!="IMG"){n("TYPE_MISMATCH_ERR")}if(Z.readyState!="complete"){n("INVALID_STATE_ERR")}}function o(Z){this.code=this[Z];this.message=Z+": DOM Exception "+this.code}var x=o.prototype=new Error;x.INDEX_SIZE_ERR=1;x.DOMSTRING_SIZE_ERR=2;x.HIERARCHY_REQUEST_ERR=3;x.WRONG_DOCUMENT_ERR=4;x.INVALID_CHARACTER_ERR=5;x.NO_DATA_ALLOWED_ERR=6;x.NO_MODIFICATION_ALLOWED_ERR=7;x.NOT_FOUND_ERR=8;x.NOT_SUPPORTED_ERR=9;x.INUSE_ATTRIBUTE_ERR=10;x.INVALID_STATE_ERR=11;x.SYNTAX_ERR=12;x.INVALID_MODIFICATION_ERR=13;x.NAMESPACE_ERR=14;x.INVALID_ACCESS_ERR=15;x.VALIDATION_ERR=16;x.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=E;CanvasRenderingContext2D=W;CanvasGradient=v;CanvasPattern=u;DOMException=o})()}; \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/flot-build.bat b/forum/modules/template_loader.py/forum/skins/default/media/js/flot-build.bat deleted file mode 100644 index f9f32cb..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/flot-build.bat +++ /dev/null @@ -1,3 +0,0 @@ -java -jar yuicompressor-2.4.2.jar --type js --charset utf-8 jquery.flot.js -o jquery.flot.pack.js - -pause diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/jquery-1.2.6.js b/forum/modules/template_loader.py/forum/skins/default/media/js/jquery-1.2.6.js deleted file mode 100644 index 88e661e..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/jquery-1.2.6.js +++ /dev/null @@ -1,3549 +0,0 @@ -(function(){ -/* - * jQuery 1.2.6 - New Wave Javascript - * - * Copyright (c) 2008 John Resig (jquery.com) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $ - * $Rev: 5685 $ - */ - -// Map over jQuery in case of overwrite -var _jQuery = window.jQuery, -// Map over the $ in case of overwrite - _$ = window.$; - -var jQuery = window.jQuery = window.$ = function( selector, context ) { - // The jQuery object is actually just the init constructor 'enhanced' - return new jQuery.fn.init( selector, context ); -}; - -// A simple way to check for HTML strings or ID strings -// (both of which we optimize for) -var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/, - -// Is it a simple selector - isSimple = /^.[^:#\[\.]*$/, - -// Will speed up references to undefined, and allows munging its name. - undefined; - -jQuery.fn = jQuery.prototype = { - init: function( selector, context ) { - // Make sure that a selection was provided - selector = selector || document; - - // Handle $(DOMElement) - if ( selector.nodeType ) { - this[0] = selector; - this.length = 1; - return this; - } - // Handle HTML strings - if ( typeof selector == "string" ) { - // Are we dealing with HTML string or an ID? - var match = quickExpr.exec( selector ); - - // Verify a match, and that no context was specified for #id - if ( match && (match[1] || !context) ) { - - // HANDLE: $(html) -> $(array) - if ( match[1] ) - selector = jQuery.clean( [ match[1] ], context ); - - // HANDLE: $("#id") - else { - var elem = document.getElementById( match[3] ); - - // Make sure an element was located - if ( elem ){ - // Handle the case where IE and Opera return items - // by name instead of ID - if ( elem.id != match[3] ) - return jQuery().find( selector ); - - // Otherwise, we inject the element directly into the jQuery object - return jQuery( elem ); - } - selector = []; - } - - // HANDLE: $(expr, [context]) - // (which is just equivalent to: $(content).find(expr) - } else - return jQuery( context ).find( selector ); - - // HANDLE: $(function) - // Shortcut for document ready - } else if ( jQuery.isFunction( selector ) ) - return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector ); - - return this.setArray(jQuery.makeArray(selector)); - }, - - // The current version of jQuery being used - jquery: "1.2.6", - - // The number of elements contained in the matched element set - size: function() { - return this.length; - }, - - // The number of elements contained in the matched element set - length: 0, - - // Get the Nth element in the matched element set OR - // Get the whole matched element set as a clean array - get: function( num ) { - return num == undefined ? - - // Return a 'clean' array - jQuery.makeArray( this ) : - - // Return just the object - this[ num ]; - }, - - // Take an array of elements and push it onto the stack - // (returning the new matched element set) - pushStack: function( elems ) { - // Build a new jQuery matched element set - var ret = jQuery( elems ); - - // Add the old object onto the stack (as a reference) - ret.prevObject = this; - - // Return the newly-formed element set - return ret; - }, - - // Force the current matched set of elements to become - // the specified array of elements (destroying the stack in the process) - // You should use pushStack() in order to do this, but maintain the stack - setArray: function( elems ) { - // Resetting the length to 0, then using the native Array push - // is a super-fast way to populate an object with array-like properties - this.length = 0; - Array.prototype.push.apply( this, elems ); - - return this; - }, - - // Execute a callback for every element in the matched set. - // (You can seed the arguments with an array of args, but this is - // only used internally.) - each: function( callback, args ) { - return jQuery.each( this, callback, args ); - }, - - // Determine the position of an element within - // the matched set of elements - index: function( elem ) { - var ret = -1; - - // Locate the position of the desired element - return jQuery.inArray( - // If it receives a jQuery object, the first element is used - elem && elem.jquery ? elem[0] : elem - , this ); - }, - - attr: function( name, value, type ) { - var options = name; - - // Look for the case where we're accessing a style value - if ( name.constructor == String ) - if ( value === undefined ) - return this[0] && jQuery[ type || "attr" ]( this[0], name ); - - else { - options = {}; - options[ name ] = value; - } - - // Check to see if we're setting style values - return this.each(function(i){ - // Set all the styles - for ( name in options ) - jQuery.attr( - type ? - this.style : - this, - name, jQuery.prop( this, options[ name ], type, i, name ) - ); - }); - }, - - css: function( key, value ) { - // ignore negative width and height values - if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 ) - value = undefined; - return this.attr( key, value, "curCSS" ); - }, - - text: function( text ) { - if ( typeof text != "object" && text != null ) - return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) ); - - var ret = ""; - - jQuery.each( text || this, function(){ - jQuery.each( this.childNodes, function(){ - if ( this.nodeType != 8 ) - ret += this.nodeType != 1 ? - this.nodeValue : - jQuery.fn.text( [ this ] ); - }); - }); - - return ret; - }, - - wrapAll: function( html ) { - if ( this[0] ) - // The elements to wrap the target around - jQuery( html, this[0].ownerDocument ) - .clone() - .insertBefore( this[0] ) - .map(function(){ - var elem = this; - - while ( elem.firstChild ) - elem = elem.firstChild; - - return elem; - }) - .append(this); - - return this; - }, - - wrapInner: function( html ) { - return this.each(function(){ - jQuery( this ).contents().wrapAll( html ); - }); - }, - - wrap: function( html ) { - return this.each(function(){ - jQuery( this ).wrapAll( html ); - }); - }, - - append: function() { - return this.domManip(arguments, true, false, function(elem){ - if (this.nodeType == 1) - this.appendChild( elem ); - }); - }, - - prepend: function() { - return this.domManip(arguments, true, true, function(elem){ - if (this.nodeType == 1) - this.insertBefore( elem, this.firstChild ); - }); - }, - - before: function() { - return this.domManip(arguments, false, false, function(elem){ - this.parentNode.insertBefore( elem, this ); - }); - }, - - after: function() { - return this.domManip(arguments, false, true, function(elem){ - this.parentNode.insertBefore( elem, this.nextSibling ); - }); - }, - - end: function() { - return this.prevObject || jQuery( [] ); - }, - - find: function( selector ) { - var elems = jQuery.map(this, function(elem){ - return jQuery.find( selector, elem ); - }); - - return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ? - jQuery.unique( elems ) : - elems ); - }, - - clone: function( events ) { - // Do the clone - var ret = this.map(function(){ - if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) { - // IE copies events bound via attachEvent when - // using cloneNode. Calling detachEvent on the - // clone will also remove the events from the orignal - // In order to get around this, we use innerHTML. - // Unfortunately, this means some modifications to - // attributes in IE that are actually only stored - // as properties will not be copied (such as the - // the name attribute on an input). - var clone = this.cloneNode(true), - container = document.createElement("div"); - container.appendChild(clone); - return jQuery.clean([container.innerHTML])[0]; - } else - return this.cloneNode(true); - }); - - // Need to set the expando to null on the cloned set if it exists - // removeData doesn't work here, IE removes it from the original as well - // this is primarily for IE but the data expando shouldn't be copied over in any browser - var clone = ret.find("*").andSelf().each(function(){ - if ( this[ expando ] != undefined ) - this[ expando ] = null; - }); - - // Copy the events from the original to the clone - if ( events === true ) - this.find("*").andSelf().each(function(i){ - if (this.nodeType == 3) - return; - var events = jQuery.data( this, "events" ); - - for ( var type in events ) - for ( var handler in events[ type ] ) - jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data ); - }); - - // Return the cloned set - return ret; - }, - - filter: function( selector ) { - return this.pushStack( - jQuery.isFunction( selector ) && - jQuery.grep(this, function(elem, i){ - return selector.call( elem, i ); - }) || - - jQuery.multiFilter( selector, this ) ); - }, - - not: function( selector ) { - if ( selector.constructor == String ) - // test special case where just one selector is passed in - if ( isSimple.test( selector ) ) - return this.pushStack( jQuery.multiFilter( selector, this, true ) ); - else - selector = jQuery.multiFilter( selector, this ); - - var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType; - return this.filter(function() { - return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector; - }); - }, - - add: function( selector ) { - return this.pushStack( jQuery.unique( jQuery.merge( - this.get(), - typeof selector == 'string' ? - jQuery( selector ) : - jQuery.makeArray( selector ) - ))); - }, - - is: function( selector ) { - return !!selector && jQuery.multiFilter( selector, this ).length > 0; - }, - - hasClass: function( selector ) { - return this.is( "." + selector ); - }, - - val: function( value ) { - if ( value == undefined ) { - - if ( this.length ) { - var elem = this[0]; - - // We need to handle select boxes special - if ( jQuery.nodeName( elem, "select" ) ) { - var index = elem.selectedIndex, - values = [], - options = elem.options, - one = elem.type == "select-one"; - - // Nothing was selected - if ( index < 0 ) - return null; - - // Loop through all the selected options - for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) { - var option = options[ i ]; - - if ( option.selected ) { - // Get the specifc value for the option - value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value; - - // We don't need an array for one selects - if ( one ) - return value; - - // Multi-Selects return an array - values.push( value ); - } - } - - return values; - - // Everything else, we just grab the value - } else - return (this[0].value || "").replace(/\r/g, ""); - - } - - return undefined; - } - - if( value.constructor == Number ) - value += ''; - - return this.each(function(){ - if ( this.nodeType != 1 ) - return; - - if ( value.constructor == Array && /radio|checkbox/.test( this.type ) ) - this.checked = (jQuery.inArray(this.value, value) >= 0 || - jQuery.inArray(this.name, value) >= 0); - - else if ( jQuery.nodeName( this, "select" ) ) { - var values = jQuery.makeArray(value); - - jQuery( "option", this ).each(function(){ - this.selected = (jQuery.inArray( this.value, values ) >= 0 || - jQuery.inArray( this.text, values ) >= 0); - }); - - if ( !values.length ) - this.selectedIndex = -1; - - } else - this.value = value; - }); - }, - - html: function( value ) { - return value == undefined ? - (this[0] ? - this[0].innerHTML : - null) : - this.empty().append( value ); - }, - - replaceWith: function( value ) { - return this.after( value ).remove(); - }, - - eq: function( i ) { - return this.slice( i, i + 1 ); - }, - - slice: function() { - return this.pushStack( Array.prototype.slice.apply( this, arguments ) ); - }, - - map: function( callback ) { - return this.pushStack( jQuery.map(this, function(elem, i){ - return callback.call( elem, i, elem ); - })); - }, - - andSelf: function() { - return this.add( this.prevObject ); - }, - - data: function( key, value ){ - var parts = key.split("."); - parts[1] = parts[1] ? "." + parts[1] : ""; - - if ( value === undefined ) { - var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]); - - if ( data === undefined && this.length ) - data = jQuery.data( this[0], key ); - - return data === undefined && parts[1] ? - this.data( parts[0] ) : - data; - } else - return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){ - jQuery.data( this, key, value ); - }); - }, - - removeData: function( key ){ - return this.each(function(){ - jQuery.removeData( this, key ); - }); - }, - - domManip: function( args, table, reverse, callback ) { - var clone = this.length > 1, elems; - - return this.each(function(){ - if ( !elems ) { - elems = jQuery.clean( args, this.ownerDocument ); - - if ( reverse ) - elems.reverse(); - } - - var obj = this; - - if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) ) - obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") ); - - var scripts = jQuery( [] ); - - jQuery.each(elems, function(){ - var elem = clone ? - jQuery( this ).clone( true )[0] : - this; - - // execute all scripts after the elements have been injected - if ( jQuery.nodeName( elem, "script" ) ) - scripts = scripts.add( elem ); - else { - // Remove any inner scripts for later evaluation - if ( elem.nodeType == 1 ) - scripts = scripts.add( jQuery( "script", elem ).remove() ); - - // Inject the elements into the document - callback.call( obj, elem ); - } - }); - - scripts.each( evalScript ); - }); - } -}; - -// Give the init function the jQuery prototype for later instantiation -jQuery.fn.init.prototype = jQuery.fn; - -function evalScript( i, elem ) { - if ( elem.src ) - jQuery.ajax({ - url: elem.src, - async: false, - dataType: "script" - }); - - else - jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" ); - - if ( elem.parentNode ) - elem.parentNode.removeChild( elem ); -} - -function now(){ - return +new Date; -} - -jQuery.extend = jQuery.fn.extend = function() { - // copy reference to target object - var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options; - - // Handle a deep copy situation - if ( target.constructor == Boolean ) { - deep = target; - target = arguments[1] || {}; - // skip the boolean and the target - i = 2; - } - - // Handle case when target is a string or something (possible in deep copy) - if ( typeof target != "object" && typeof target != "function" ) - target = {}; - - // extend jQuery itself if only one argument is passed - if ( length == i ) { - target = this; - --i; - } - - for ( ; i < length; i++ ) - // Only deal with non-null/undefined values - if ( (options = arguments[ i ]) != null ) - // Extend the base object - for ( var name in options ) { - var src = target[ name ], copy = options[ name ]; - - // Prevent never-ending loop - if ( target === copy ) - continue; - - // Recurse if we're merging object values - if ( deep && copy && typeof copy == "object" && !copy.nodeType ) - target[ name ] = jQuery.extend( deep, - // Never move original objects, clone them - src || ( copy.length != null ? [ ] : { } ) - , copy ); - - // Don't bring in undefined values - else if ( copy !== undefined ) - target[ name ] = copy; - - } - - // Return the modified object - return target; -}; - -var expando = "jQuery" + now(), uuid = 0, windowData = {}, - // exclude the following css properties to add px - exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i, - // cache defaultView - defaultView = document.defaultView || {}; - -jQuery.extend({ - noConflict: function( deep ) { - window.$ = _$; - - if ( deep ) - window.jQuery = _jQuery; - - return jQuery; - }, - - // See test/unit/core.js for details concerning this function. - isFunction: function( fn ) { - return !!fn && typeof fn != "string" && !fn.nodeName && - fn.constructor != Array && /^[\s[]?function/.test( fn + "" ); - }, - - // check if an element is in a (or is an) XML document - isXMLDoc: function( elem ) { - return elem.documentElement && !elem.body || - elem.tagName && elem.ownerDocument && !elem.ownerDocument.body; - }, - - // Evalulates a script in a global context - globalEval: function( data ) { - data = jQuery.trim( data ); - - if ( data ) { - // Inspired by code by Andrea Giammarchi - // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html - var head = document.getElementsByTagName("head")[0] || document.documentElement, - script = document.createElement("script"); - - script.type = "text/javascript"; - if ( jQuery.browser.msie ) - script.text = data; - else - script.appendChild( document.createTextNode( data ) ); - - // Use insertBefore instead of appendChild to circumvent an IE6 bug. - // This arises when a base node is used (#2709). - head.insertBefore( script, head.firstChild ); - head.removeChild( script ); - } - }, - - nodeName: function( elem, name ) { - return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase(); - }, - - cache: {}, - - data: function( elem, name, data ) { - elem = elem == window ? - windowData : - elem; - - var id = elem[ expando ]; - - // Compute a unique ID for the element - if ( !id ) - id = elem[ expando ] = ++uuid; - - // Only generate the data cache if we're - // trying to access or manipulate it - if ( name && !jQuery.cache[ id ] ) - jQuery.cache[ id ] = {}; - - // Prevent overriding the named cache with undefined values - if ( data !== undefined ) - jQuery.cache[ id ][ name ] = data; - - // Return the named cache data, or the ID for the element - return name ? - jQuery.cache[ id ][ name ] : - id; - }, - - removeData: function( elem, name ) { - elem = elem == window ? - windowData : - elem; - - var id = elem[ expando ]; - - // If we want to remove a specific section of the element's data - if ( name ) { - if ( jQuery.cache[ id ] ) { - // Remove the section of cache data - delete jQuery.cache[ id ][ name ]; - - // If we've removed all the data, remove the element's cache - name = ""; - - for ( name in jQuery.cache[ id ] ) - break; - - if ( !name ) - jQuery.removeData( elem ); - } - - // Otherwise, we want to remove all of the element's data - } else { - // Clean up the element expando - try { - delete elem[ expando ]; - } catch(e){ - // IE has trouble directly removing the expando - // but it's ok with using removeAttribute - if ( elem.removeAttribute ) - elem.removeAttribute( expando ); - } - - // Completely remove the data cache - delete jQuery.cache[ id ]; - } - }, - - // args is for internal usage only - each: function( object, callback, args ) { - var name, i = 0, length = object.length; - - if ( args ) { - if ( length == undefined ) { - for ( name in object ) - if ( callback.apply( object[ name ], args ) === false ) - break; - } else - for ( ; i < length; ) - if ( callback.apply( object[ i++ ], args ) === false ) - break; - - // A special, fast, case for the most common use of each - } else { - if ( length == undefined ) { - for ( name in object ) - if ( callback.call( object[ name ], name, object[ name ] ) === false ) - break; - } else - for ( var value = object[0]; - i < length && callback.call( value, i, value ) !== false; value = object[++i] ){} - } - - return object; - }, - - prop: function( elem, value, type, i, name ) { - // Handle executable functions - if ( jQuery.isFunction( value ) ) - value = value.call( elem, i ); - - // Handle passing in a number to a CSS property - return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ? - value + "px" : - value; - }, - - className: { - // internal only, use addClass("class") - add: function( elem, classNames ) { - jQuery.each((classNames || "").split(/\s+/), function(i, className){ - if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) ) - elem.className += (elem.className ? " " : "") + className; - }); - }, - - // internal only, use removeClass("class") - remove: function( elem, classNames ) { - if (elem.nodeType == 1) - elem.className = classNames != undefined ? - jQuery.grep(elem.className.split(/\s+/), function(className){ - return !jQuery.className.has( classNames, className ); - }).join(" ") : - ""; - }, - - // internal only, use hasClass("class") - has: function( elem, className ) { - return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1; - } - }, - - // A method for quickly swapping in/out CSS properties to get correct calculations - swap: function( elem, options, callback ) { - var old = {}; - // Remember the old values, and insert the new ones - for ( var name in options ) { - old[ name ] = elem.style[ name ]; - elem.style[ name ] = options[ name ]; - } - - callback.call( elem ); - - // Revert the old values - for ( var name in options ) - elem.style[ name ] = old[ name ]; - }, - - css: function( elem, name, force ) { - if ( name == "width" || name == "height" ) { - var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ]; - - function getWH() { - val = name == "width" ? elem.offsetWidth : elem.offsetHeight; - var padding = 0, border = 0; - jQuery.each( which, function() { - padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0; - border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0; - }); - val -= Math.round(padding + border); - } - - if ( jQuery(elem).is(":visible") ) - getWH(); - else - jQuery.swap( elem, props, getWH ); - - return Math.max(0, val); - } - - return jQuery.curCSS( elem, name, force ); - }, - - curCSS: function( elem, name, force ) { - var ret, style = elem.style; - - // A helper method for determining if an element's values are broken - function color( elem ) { - if ( !jQuery.browser.safari ) - return false; - - // defaultView is cached - var ret = defaultView.getComputedStyle( elem, null ); - return !ret || ret.getPropertyValue("color") == ""; - } - - // We need to handle opacity special in IE - if ( name == "opacity" && jQuery.browser.msie ) { - ret = jQuery.attr( style, "opacity" ); - - return ret == "" ? - "1" : - ret; - } - // Opera sometimes will give the wrong display answer, this fixes it, see #2037 - if ( jQuery.browser.opera && name == "display" ) { - var save = style.outline; - style.outline = "0 solid black"; - style.outline = save; - } - - // Make sure we're using the right name for getting the float value - if ( name.match( /float/i ) ) - name = styleFloat; - - if ( !force && style && style[ name ] ) - ret = style[ name ]; - - else if ( defaultView.getComputedStyle ) { - - // Only "float" is needed here - if ( name.match( /float/i ) ) - name = "float"; - - name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); - - var computedStyle = defaultView.getComputedStyle( elem, null ); - - if ( computedStyle && !color( elem ) ) - ret = computedStyle.getPropertyValue( name ); - - // If the element isn't reporting its values properly in Safari - // then some display: none elements are involved - else { - var swap = [], stack = [], a = elem, i = 0; - - // Locate all of the parent display: none elements - for ( ; a && color(a); a = a.parentNode ) - stack.unshift(a); - - // Go through and make them visible, but in reverse - // (It would be better if we knew the exact display type that they had) - for ( ; i < stack.length; i++ ) - if ( color( stack[ i ] ) ) { - swap[ i ] = stack[ i ].style.display; - stack[ i ].style.display = "block"; - } - - // Since we flip the display style, we have to handle that - // one special, otherwise get the value - ret = name == "display" && swap[ stack.length - 1 ] != null ? - "none" : - ( computedStyle && computedStyle.getPropertyValue( name ) ) || ""; - - // Finally, revert the display styles back - for ( i = 0; i < swap.length; i++ ) - if ( swap[ i ] != null ) - stack[ i ].style.display = swap[ i ]; - } - - // We should always get a number back from opacity - if ( name == "opacity" && ret == "" ) - ret = "1"; - - } else if ( elem.currentStyle ) { - var camelCase = name.replace(/\-(\w)/g, function(all, letter){ - return letter.toUpperCase(); - }); - - ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ]; - - // From the awesome hack by Dean Edwards - // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291 - - // If we're not dealing with a regular pixel number - // but a number that has a weird ending, we need to convert it to pixels - if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) { - // Remember the original values - var left = style.left, rsLeft = elem.runtimeStyle.left; - - // Put in the new values to get a computed value out - elem.runtimeStyle.left = elem.currentStyle.left; - style.left = ret || 0; - ret = style.pixelLeft + "px"; - - // Revert the changed values - style.left = left; - elem.runtimeStyle.left = rsLeft; - } - } - - return ret; - }, - - clean: function( elems, context ) { - var ret = []; - context = context || document; - // !context.createElement fails in IE with an error but returns typeof 'object' - if (typeof context.createElement == 'undefined') - context = context.ownerDocument || context[0] && context[0].ownerDocument || document; - - jQuery.each(elems, function(i, elem){ - if ( !elem ) - return; - - if ( elem.constructor == Number ) - elem += ''; - - // Convert html string into DOM nodes - if ( typeof elem == "string" ) { - // Fix "XHTML"-style tags in all browsers - elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){ - return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? - all : - front + ">"; - }); - - // Trim whitespace, otherwise indexOf won't work as expected - var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div"); - - var wrap = - // option or optgroup - !tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - tags.match(/^<(thead|tbody|tfoot|colg|cap)/) && - [ 1, "", "
" ] || - - !tags.indexOf("", "" ] || - - // matched above - (!tags.indexOf("", "" ] || - - !tags.indexOf("", "" ] || - - // IE can't serialize and - * - * In CSS, define the following style: - * - * .hilite { background-color: #ff0; } - * - * If Hilite.style_name_suffix is true, then define the follow styles: - * - * .hilite1 { background-color: #ff0; } - * .hilite2 { background-color: #f0f; } - * .hilite3 { background-color: #0ff; } - * .hilite4 ... - * - * @author Scott Yang - * @version 1.5 - */ - -// Configuration: -Hilite = { - /** - * Element ID to be highlighted. If set, then only content inside this DOM - * element will be highlighted, otherwise everything inside document.body - * will be searched. - */ - elementid: 'content', - - /** - * Whether we are matching an exact word. For example, searching for - * "highlight" will only match "highlight" but not "highlighting" if exact - * is set to true. - */ - exact: true, - - /** - * Maximum number of DOM nodes to test, before handing the control back to - * the GUI thread. This prevents locking up the UI when parsing and - * replacing inside a large document. - */ - max_nodes: 1000, - - /** - * Whether to automatically hilite a section of the HTML document, by - * binding the "Hilite.hilite()" to window.onload() event. If this - * attribute is set to false, you can still manually trigger the hilite by - * calling Hilite.hilite() in Javascript after document has been fully - * loaded. - */ - onload: true, - - /** - * Name of the style to be used. Default to 'hilite'. - */ - style_name: 'hilite', - - /** - * Whether to use different style names for different search keywords by - * appending a number starting from 1, i.e. hilite1, hilite2, etc. - */ - style_name_suffix: true, - - /** - * Set it to override the document.referrer string. Used for debugging - * only. - */ - debug_referrer: '' -}; - -Hilite.search_engines = [ - ['google\\.', 'q'], // Google - ['search\\.yahoo\\.', 'p'], // Yahoo - ['search\\.msn\\.', 'q'], // MSN - ['search\\.live\\.', 'query'], // MSN Live - ['search\\.aol\\.', 'userQuery'], // AOL - ['ask\\.com', 'q'], // Ask.com - ['altavista\\.', 'q'], // AltaVista - ['feedster\\.', 'q'], // Feedster - ['search\\.lycos\\.', 'q'], // Lycos - ['alltheweb\\.', 'q'], // AllTheWeb - ['technorati\\.com/search/([^\\?/]+)', 1], // Technorati - ['dogpile\\.com/info\\.dogpl/search/web/([^\\?/]+)', 1, true] // DogPile -]; - -/** - * Decode the referrer string and return a list of search keywords. - */ -Hilite.decodeReferrer = function(referrer) { - var query = null; - var regex = new RegExp(''); - - for (var i = 0; i < Hilite.search_engines.length; i ++) { - var se = Hilite.search_engines[i]; - regex.compile('^http://(www\\.)?' + se[0], 'i'); - var match = referrer.match(regex); - if (match) { - var result; - if (isNaN(se[1])) { - result = Hilite.decodeReferrerQS(referrer, se[1]); - } else { - result = match[se[1] + 1]; - } - if (result) { - result = decodeURIComponent(result); - // XXX: DogPile's URI requires decoding twice. - if (se.length > 2 && se[2]) - result = decodeURIComponent(result); - result = result.replace(/\'|"/g, ''); - result = result.split(/[\s,\+\.]+/); - return result; - } - break; - } - } - return null; -}; - -Hilite.decodeReferrerQS = function(referrer, match) { - var idx = referrer.indexOf('?'); - var idx2; - if (idx >= 0) { - var qs = new String(referrer.substring(idx + 1)); - idx = 0; - idx2 = 0; - while ((idx >= 0) && ((idx2 = qs.indexOf('=', idx)) >= 0)) { - var key, val; - key = qs.substring(idx, idx2); - idx = qs.indexOf('&', idx2) + 1; - if (key == match) { - if (idx <= 0) { - return qs.substring(idx2+1); - } else { - return qs.substring(idx2+1, idx - 1); - } - } - else if (idx <=0) { - return null; - } - } - } - return null; -}; - -/** - * Highlight a DOM element with a list of keywords. - */ -Hilite.hiliteElement = function(elm, query) { - if (!query || elm.childNodes.length == 0) - return; - - var qre = new Array(); - for (var i = 0; i < query.length; i ++) { - query[i] = query[i].toLowerCase(); - if (Hilite.exact) - qre.push('\\b'+query[i]+'\\b'); - else - qre.push(query[i]); - } - - qre = new RegExp(qre.join("|"), "i"); - - var stylemapper = {}; - for (var i = 0; i < query.length; i ++) { - if (Hilite.style_name_suffix) - stylemapper[query[i]] = Hilite.style_name+(i+1); - else - stylemapper[query[i]] = Hilite.style_name; - } - - var textproc = function(node) { - var match = qre.exec(node.data); - if (match) { - var val = match[0]; - var k = ''; - var node2 = node.splitText(match.index); - var node3 = node2.splitText(val.length); - var span = node.ownerDocument.createElement('SPAN'); - node.parentNode.replaceChild(span, node2); - span.className = stylemapper[val.toLowerCase()]; - span.appendChild(node2); - return span; - } else { - return node; - } - }; - Hilite.walkElements(elm.childNodes[0], 1, textproc); -}; - -/** - * Highlight a HTML document using keywords extracted from document.referrer. - * This is the main function to be called to perform search engine highlight - * on a document. - * - * Currently it would check for DOM element 'content', element 'container' and - * then document.body in that order, so it only highlights appropriate section - * on WordPress and Movable Type pages. - */ -Hilite.hilite = function() { - // If 'debug_referrer' then we will use that as our referrer string - // instead. - var q = Hilite.debug_referrer ? Hilite.debug_referrer : document.referrer; - var e = null; - q = Hilite.decodeReferrer(q); - if (q && ((Hilite.elementid && - (e = document.getElementById(Hilite.elementid))) || - (e = document.body))) - { - Hilite.hiliteElement(e, q); - } -}; - -Hilite.walkElements = function(node, depth, textproc) { - var skipre = /^(script|style|textarea)/i; - var count = 0; - while (node && depth > 0) { - count ++; - if (count >= Hilite.max_nodes) { - var handler = function() { - Hilite.walkElements(node, depth, textproc); - }; - setTimeout(handler, 50); - return; - } - - if (node.nodeType == 1) { // ELEMENT_NODE - if (!skipre.test(node.tagName) && node.childNodes.length > 0) { - node = node.childNodes[0]; - depth ++; - continue; - } - } else if (node.nodeType == 3) { // TEXT_NODE - node = textproc(node); - } - - if (node.nextSibling) { - node = node.nextSibling; - } else { - while (depth > 0) { - node = node.parentNode; - depth --; - if (node.nextSibling) { - node = node.nextSibling; - break; - } - } - } - } -}; - -// Trigger the highlight using the onload handler. -if (Hilite.onload) { - if (window.attachEvent) { - window.attachEvent('onload', Hilite.hilite); - } else if (window.addEventListener) { - window.addEventListener('load', Hilite.hilite, false); - } else { - var __onload = window.onload; - window.onload = function() { - Hilite.hilite(); - __onload(); - }; - } -} diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.core.js b/forum/modules/template_loader.py/forum/skins/default/media/js/ui.core.js deleted file mode 100644 index 5493e0a..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.core.js +++ /dev/null @@ -1,519 +0,0 @@ -/* - * jQuery UI 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - */ -;jQuery.ui || (function($) { - -var _remove = $.fn.remove, - isFF2 = $.browser.mozilla && (parseFloat($.browser.version) < 1.9); - -//Helper functions and ui object -$.ui = { - version: "1.7.2", - - // $.ui.plugin is deprecated. Use the proxy pattern instead. - plugin: { - add: function(module, option, set) { - var proto = $.ui[module].prototype; - for(var i in set) { - proto.plugins[i] = proto.plugins[i] || []; - proto.plugins[i].push([option, set[i]]); - } - }, - call: function(instance, name, args) { - var set = instance.plugins[name]; - if(!set || !instance.element[0].parentNode) { return; } - - for (var i = 0; i < set.length; i++) { - if (instance.options[set[i][0]]) { - set[i][1].apply(instance.element, args); - } - } - } - }, - - contains: function(a, b) { - return document.compareDocumentPosition - ? a.compareDocumentPosition(b) & 16 - : a !== b && a.contains(b); - }, - - hasScroll: function(el, a) { - - //If overflow is hidden, the element might have extra content, but the user wants to hide it - if ($(el).css('overflow') == 'hidden') { return false; } - - var scroll = (a && a == 'left') ? 'scrollLeft' : 'scrollTop', - has = false; - - if (el[scroll] > 0) { return true; } - - // TODO: determine which cases actually cause this to happen - // if the element doesn't have the scroll set, see if it's possible to - // set the scroll - el[scroll] = 1; - has = (el[scroll] > 0); - el[scroll] = 0; - return has; - }, - - isOverAxis: function(x, reference, size) { - //Determines when x coordinate is over "b" element axis - return (x > reference) && (x < (reference + size)); - }, - - isOver: function(y, x, top, left, height, width) { - //Determines when x, y coordinates is over "b" element - return $.ui.isOverAxis(y, top, height) && $.ui.isOverAxis(x, left, width); - }, - - keyCode: { - BACKSPACE: 8, - CAPS_LOCK: 20, - COMMA: 188, - CONTROL: 17, - DELETE: 46, - DOWN: 40, - END: 35, - ENTER: 13, - ESCAPE: 27, - HOME: 36, - INSERT: 45, - LEFT: 37, - NUMPAD_ADD: 107, - NUMPAD_DECIMAL: 110, - NUMPAD_DIVIDE: 111, - NUMPAD_ENTER: 108, - NUMPAD_MULTIPLY: 106, - NUMPAD_SUBTRACT: 109, - PAGE_DOWN: 34, - PAGE_UP: 33, - PERIOD: 190, - RIGHT: 39, - SHIFT: 16, - SPACE: 32, - TAB: 9, - UP: 38 - } -}; - -// WAI-ARIA normalization -if (isFF2) { - var attr = $.attr, - removeAttr = $.fn.removeAttr, - ariaNS = "http://www.w3.org/2005/07/aaa", - ariaState = /^aria-/, - ariaRole = /^wairole:/; - - $.attr = function(elem, name, value) { - var set = value !== undefined; - - return (name == 'role' - ? (set - ? attr.call(this, elem, name, "wairole:" + value) - : (attr.apply(this, arguments) || "").replace(ariaRole, "")) - : (ariaState.test(name) - ? (set - ? elem.setAttributeNS(ariaNS, - name.replace(ariaState, "aaa:"), value) - : attr.call(this, elem, name.replace(ariaState, "aaa:"))) - : attr.apply(this, arguments))); - }; - - $.fn.removeAttr = function(name) { - return (ariaState.test(name) - ? this.each(function() { - this.removeAttributeNS(ariaNS, name.replace(ariaState, "")); - }) : removeAttr.call(this, name)); - }; -} - -//jQuery plugins -$.fn.extend({ - remove: function() { - // Safari has a native remove event which actually removes DOM elements, - // so we have to use triggerHandler instead of trigger (#3037). - $("*", this).add(this).each(function() { - $(this).triggerHandler("remove"); - }); - return _remove.apply(this, arguments ); - }, - - enableSelection: function() { - return this - .attr('unselectable', 'off') - .css('MozUserSelect', '') - .unbind('selectstart.ui'); - }, - - disableSelection: function() { - return this - .attr('unselectable', 'on') - .css('MozUserSelect', 'none') - .bind('selectstart.ui', function() { return false; }); - }, - - scrollParent: function() { - var scrollParent; - if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { - scrollParent = this.parents().filter(function() { - return (/(relative|absolute|fixed)/).test($.curCSS(this,'position',1)) && (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); - }).eq(0); - } else { - scrollParent = this.parents().filter(function() { - return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); - }).eq(0); - } - - return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; - } -}); - - -//Additional selectors -$.extend($.expr[':'], { - data: function(elem, i, match) { - return !!$.data(elem, match[3]); - }, - - focusable: function(element) { - var nodeName = element.nodeName.toLowerCase(), - tabIndex = $.attr(element, 'tabindex'); - return (/input|select|textarea|button|object/.test(nodeName) - ? !element.disabled - : 'a' == nodeName || 'area' == nodeName - ? element.href || !isNaN(tabIndex) - : !isNaN(tabIndex)) - // the element and all of its ancestors must be visible - // the browser may report that the area is hidden - && !$(element)['area' == nodeName ? 'parents' : 'closest'](':hidden').length; - }, - - tabbable: function(element) { - var tabIndex = $.attr(element, 'tabindex'); - return (isNaN(tabIndex) || tabIndex >= 0) && $(element).is(':focusable'); - } -}); - - -// $.widget is a factory to create jQuery plugins -// taking some boilerplate code out of the plugin code -function getter(namespace, plugin, method, args) { - function getMethods(type) { - var methods = $[namespace][plugin][type] || []; - return (typeof methods == 'string' ? methods.split(/,?\s+/) : methods); - } - - var methods = getMethods('getter'); - if (args.length == 1 && typeof args[0] == 'string') { - methods = methods.concat(getMethods('getterSetter')); - } - return ($.inArray(method, methods) != -1); -} - -$.widget = function(name, prototype) { - var namespace = name.split(".")[0]; - name = name.split(".")[1]; - - // create plugin method - $.fn[name] = function(options) { - var isMethodCall = (typeof options == 'string'), - args = Array.prototype.slice.call(arguments, 1); - - // prevent calls to internal methods - if (isMethodCall && options.substring(0, 1) == '_') { - return this; - } - - // handle getter methods - if (isMethodCall && getter(namespace, name, options, args)) { - var instance = $.data(this[0], name); - return (instance ? instance[options].apply(instance, args) - : undefined); - } - - // handle initialization and non-getter methods - return this.each(function() { - var instance = $.data(this, name); - - // constructor - (!instance && !isMethodCall && - $.data(this, name, new $[namespace][name](this, options))._init()); - - // method call - (instance && isMethodCall && $.isFunction(instance[options]) && - instance[options].apply(instance, args)); - }); - }; - - // create widget constructor - $[namespace] = $[namespace] || {}; - $[namespace][name] = function(element, options) { - var self = this; - - this.namespace = namespace; - this.widgetName = name; - this.widgetEventPrefix = $[namespace][name].eventPrefix || name; - this.widgetBaseClass = namespace + '-' + name; - - this.options = $.extend({}, - $.widget.defaults, - $[namespace][name].defaults, - $.metadata && $.metadata.get(element)[name], - options); - - this.element = $(element) - .bind('setData.' + name, function(event, key, value) { - if (event.target == element) { - return self._setData(key, value); - } - }) - .bind('getData.' + name, function(event, key) { - if (event.target == element) { - return self._getData(key); - } - }) - .bind('remove', function() { - return self.destroy(); - }); - }; - - // add widget prototype - $[namespace][name].prototype = $.extend({}, $.widget.prototype, prototype); - - // TODO: merge getter and getterSetter properties from widget prototype - // and plugin prototype - $[namespace][name].getterSetter = 'option'; -}; - -$.widget.prototype = { - _init: function() {}, - destroy: function() { - this.element.removeData(this.widgetName) - .removeClass(this.widgetBaseClass + '-disabled' + ' ' + this.namespace + '-state-disabled') - .removeAttr('aria-disabled'); - }, - - option: function(key, value) { - var options = key, - self = this; - - if (typeof key == "string") { - if (value === undefined) { - return this._getData(key); - } - options = {}; - options[key] = value; - } - - $.each(options, function(key, value) { - self._setData(key, value); - }); - }, - _getData: function(key) { - return this.options[key]; - }, - _setData: function(key, value) { - this.options[key] = value; - - if (key == 'disabled') { - this.element - [value ? 'addClass' : 'removeClass']( - this.widgetBaseClass + '-disabled' + ' ' + - this.namespace + '-state-disabled') - .attr("aria-disabled", value); - } - }, - - enable: function() { - this._setData('disabled', false); - }, - disable: function() { - this._setData('disabled', true); - }, - - _trigger: function(type, event, data) { - var callback = this.options[type], - eventName = (type == this.widgetEventPrefix - ? type : this.widgetEventPrefix + type); - - event = $.Event(event); - event.type = eventName; - - // copy original event properties over to the new event - // this would happen if we could call $.event.fix instead of $.Event - // but we don't have a way to force an event to be fixed multiple times - if (event.originalEvent) { - for (var i = $.event.props.length, prop; i;) { - prop = $.event.props[--i]; - event[prop] = event.originalEvent[prop]; - } - } - - this.element.trigger(event, data); - - return !($.isFunction(callback) && callback.call(this.element[0], event, data) === false - || event.isDefaultPrevented()); - } -}; - -$.widget.defaults = { - disabled: false -}; - - -/** Mouse Interaction Plugin **/ - -$.ui.mouse = { - _mouseInit: function() { - var self = this; - - this.element - .bind('mousedown.'+this.widgetName, function(event) { - return self._mouseDown(event); - }) - .bind('click.'+this.widgetName, function(event) { - if(self._preventClickEvent) { - self._preventClickEvent = false; - event.stopImmediatePropagation(); - return false; - } - }); - - // Prevent text selection in IE - if ($.browser.msie) { - this._mouseUnselectable = this.element.attr('unselectable'); - this.element.attr('unselectable', 'on'); - } - - this.started = false; - }, - - // TODO: make sure destroying one instance of mouse doesn't mess with - // other instances of mouse - _mouseDestroy: function() { - this.element.unbind('.'+this.widgetName); - - // Restore text selection in IE - ($.browser.msie - && this.element.attr('unselectable', this._mouseUnselectable)); - }, - - _mouseDown: function(event) { - // don't let more than one widget handle mouseStart - // TODO: figure out why we have to use originalEvent - event.originalEvent = event.originalEvent || {}; - if (event.originalEvent.mouseHandled) { return; } - - // we may have missed mouseup (out of window) - (this._mouseStarted && this._mouseUp(event)); - - this._mouseDownEvent = event; - - var self = this, - btnIsLeft = (event.which == 1), - elIsCancel = (typeof this.options.cancel == "string" ? $(event.target).parents().add(event.target).filter(this.options.cancel).length : false); - if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) { - return true; - } - - this.mouseDelayMet = !this.options.delay; - if (!this.mouseDelayMet) { - this._mouseDelayTimer = setTimeout(function() { - self.mouseDelayMet = true; - }, this.options.delay); - } - - if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { - this._mouseStarted = (this._mouseStart(event) !== false); - if (!this._mouseStarted) { - event.preventDefault(); - return true; - } - } - - // these delegates are required to keep context - this._mouseMoveDelegate = function(event) { - return self._mouseMove(event); - }; - this._mouseUpDelegate = function(event) { - return self._mouseUp(event); - }; - $(document) - .bind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .bind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - // preventDefault() is used to prevent the selection of text here - - // however, in Safari, this causes select boxes not to be selectable - // anymore, so this fix is needed - ($.browser.safari || event.preventDefault()); - - event.originalEvent.mouseHandled = true; - return true; - }, - - _mouseMove: function(event) { - // IE mouseup check - mouseup happened when mouse was out of window - if ($.browser.msie && !event.button) { - return this._mouseUp(event); - } - - if (this._mouseStarted) { - this._mouseDrag(event); - return event.preventDefault(); - } - - if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) { - this._mouseStarted = - (this._mouseStart(this._mouseDownEvent, event) !== false); - (this._mouseStarted ? this._mouseDrag(event) : this._mouseUp(event)); - } - - return !this._mouseStarted; - }, - - _mouseUp: function(event) { - $(document) - .unbind('mousemove.'+this.widgetName, this._mouseMoveDelegate) - .unbind('mouseup.'+this.widgetName, this._mouseUpDelegate); - - if (this._mouseStarted) { - this._mouseStarted = false; - this._preventClickEvent = (event.target == this._mouseDownEvent.target); - this._mouseStop(event); - } - - return false; - }, - - _mouseDistanceMet: function(event) { - return (Math.max( - Math.abs(this._mouseDownEvent.pageX - event.pageX), - Math.abs(this._mouseDownEvent.pageY - event.pageY) - ) >= this.options.distance - ); - }, - - _mouseDelayMet: function(event) { - return this.mouseDelayMet; - }, - - // These are placeholder methods, to be overriden by extending plugin - _mouseStart: function(event) {}, - _mouseDrag: function(event) {}, - _mouseStop: function(event) {}, - _mouseCapture: function(event) { return true; } -}; - -$.ui.mouse.defaults = { - cancel: null, - distance: 1, - delay: 0 -}; - -})(jQuery); diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.core.min.js b/forum/modules/template_loader.py/forum/skins/default/media/js/ui.core.min.js deleted file mode 100644 index d6bd405..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.core.min.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * jQuery UI 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - */ -jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery); \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.datepicker.js b/forum/modules/template_loader.py/forum/skins/default/media/js/ui.datepicker.js deleted file mode 100644 index 0ce166e..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.datepicker.js +++ /dev/null @@ -1,1636 +0,0 @@ -/* - * jQuery UI Datepicker 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Datepicker - * - * Depends: - * ui.core.js - */ - -(function($) { // hide the namespace - -$.extend($.ui, { datepicker: { version: "1.7.2" } }); - -var PROP_NAME = 'datepicker'; - -/* Date picker manager. - Use the singleton instance of this class, $.datepicker, to interact with the date picker. - Settings for (groups of) date pickers are maintained in an instance object, - allowing multiple different settings on the same page. */ - -function Datepicker() { - this.debug = false; // Change this to true to start debugging - this._curInst = null; // The current instance in use - this._keyEvent = false; // If the last event was a key event - this._disabledInputs = []; // List of date picker inputs that have been disabled - this._datepickerShowing = false; // True if the popup picker is showing , false if not - this._inDialog = false; // True if showing within a "dialog", false if not - this._mainDivId = 'ui-datepicker-div'; // The ID of the main datepicker division - this._inlineClass = 'ui-datepicker-inline'; // The name of the inline marker class - this._appendClass = 'ui-datepicker-append'; // The name of the append marker class - this._triggerClass = 'ui-datepicker-trigger'; // The name of the trigger marker class - this._dialogClass = 'ui-datepicker-dialog'; // The name of the dialog marker class - this._disableClass = 'ui-datepicker-disabled'; // The name of the disabled covering marker class - this._unselectableClass = 'ui-datepicker-unselectable'; // The name of the unselectable cell marker class - this._currentClass = 'ui-datepicker-current-day'; // The name of the current day marker class - this._dayOverClass = 'ui-datepicker-days-cell-over'; // The name of the day hover marker class - this.regional = []; // Available regional settings, indexed by language code - this.regional[''] = { // Default regional settings - closeText: 'Done', // Display text for close link - prevText: 'Prev', // Display text for previous month link - nextText: 'Next', // Display text for next month link - currentText: 'Today', // Display text for current month link - monthNames: ['January','February','March','April','May','June', - 'July','August','September','October','November','December'], // Names of months for drop-down and formatting - monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting - dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting - dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting - dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday - dateFormat: 'mm/dd/yy', // See format options on parseDate - firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ... - isRTL: false // True if right-to-left language, false if left-to-right - }; - this._defaults = { // Global defaults for all the date picker instances - showOn: 'focus', // 'focus' for popup on focus, - // 'button' for trigger button, or 'both' for either - showAnim: 'show', // Name of jQuery animation for popup - showOptions: {}, // Options for enhanced animations - defaultDate: null, // Used when field is blank: actual date, - // +/-number for offset from today, null for today - appendText: '', // Display text following the input box, e.g. showing the format - buttonText: '...', // Text for trigger button - buttonImage: '', // URL for trigger button image - buttonImageOnly: false, // True if the image appears alone, false if it appears on a button - hideIfNoPrevNext: false, // True to hide next/previous month links - // if not applicable, false to just disable them - navigationAsDateFormat: false, // True if date formatting applied to prev/today/next links - gotoCurrent: false, // True if today link goes back to current selection instead - changeMonth: false, // True if month can be selected directly, false if only prev/next - changeYear: false, // True if year can be selected directly, false if only prev/next - showMonthAfterYear: false, // True if the year select precedes month, false for month then year - yearRange: '-10:+10', // Range of years to display in drop-down, - // either relative to current year (-nn:+nn) or absolute (nnnn:nnnn) - showOtherMonths: false, // True to show dates in other months, false to leave blank - calculateWeek: this.iso8601Week, // How to calculate the week of the year, - // takes a Date and returns the number of the week for it - shortYearCutoff: '+10', // Short year values < this are in the current century, - // > this are in the previous century, - // string value starting with '+' for current year + value - minDate: null, // The earliest selectable date, or null for no limit - maxDate: null, // The latest selectable date, or null for no limit - duration: 'normal', // Duration of display/closure - beforeShowDay: null, // Function that takes a date and returns an array with - // [0] = true if selectable, false if not, [1] = custom CSS class name(s) or '', - // [2] = cell title (optional), e.g. $.datepicker.noWeekends - beforeShow: null, // Function that takes an input field and - // returns a set of custom settings for the date picker - onSelect: null, // Define a callback function when a date is selected - onChangeMonthYear: null, // Define a callback function when the month or year is changed - onClose: null, // Define a callback function when the datepicker is closed - numberOfMonths: 1, // Number of months to show at a time - showCurrentAtPos: 0, // The position in multipe months at which to show the current month (starting at 0) - stepMonths: 1, // Number of months to step back/forward - stepBigMonths: 12, // Number of months to step back/forward for the big links - altField: '', // Selector for an alternate field to store selected dates into - altFormat: '', // The date format to use for the alternate field - constrainInput: true, // The input is constrained by the current date format - showButtonPanel: false // True to show button panel, false to not show it - }; - $.extend(this._defaults, this.regional['']); - this.dpDiv = $('
'); -} - -$.extend(Datepicker.prototype, { - /* Class name added to elements to indicate already configured with a date picker. */ - markerClassName: 'hasDatepicker', - - /* Debug logging (if enabled). */ - log: function () { - if (this.debug) - console.log.apply('', arguments); - }, - - /* Override the default settings for all instances of the date picker. - @param settings object - the new settings to use as defaults (anonymous object) - @return the manager object */ - setDefaults: function(settings) { - extendRemove(this._defaults, settings || {}); - return this; - }, - - /* Attach the date picker to a jQuery selection. - @param target element - the target input field or division or span - @param settings object - the new settings to use for this date picker instance (anonymous) */ - _attachDatepicker: function(target, settings) { - // check for settings on the control itself - in namespace 'date:' - var inlineSettings = null; - for (var attrName in this._defaults) { - var attrValue = target.getAttribute('date:' + attrName); - if (attrValue) { - inlineSettings = inlineSettings || {}; - try { - inlineSettings[attrName] = eval(attrValue); - } catch (err) { - inlineSettings[attrName] = attrValue; - } - } - } - var nodeName = target.nodeName.toLowerCase(); - var inline = (nodeName == 'div' || nodeName == 'span'); - if (!target.id) - target.id = 'dp' + (++this.uuid); - var inst = this._newInst($(target), inline); - inst.settings = $.extend({}, settings || {}, inlineSettings || {}); - if (nodeName == 'input') { - this._connectDatepicker(target, inst); - } else if (inline) { - this._inlineDatepicker(target, inst); - } - }, - - /* Create a new instance object. */ - _newInst: function(target, inline) { - var id = target[0].id.replace(/([:\[\]\.])/g, '\\\\$1'); // escape jQuery meta chars - return {id: id, input: target, // associated target - selectedDay: 0, selectedMonth: 0, selectedYear: 0, // current selection - drawMonth: 0, drawYear: 0, // month being drawn - inline: inline, // is datepicker inline or not - dpDiv: (!inline ? this.dpDiv : // presentation div - $('
'))}; - }, - - /* Attach the date picker to an input field. */ - _connectDatepicker: function(target, inst) { - var input = $(target); - inst.append = $([]); - inst.trigger = $([]); - if (input.hasClass(this.markerClassName)) - return; - var appendText = this._get(inst, 'appendText'); - var isRTL = this._get(inst, 'isRTL'); - if (appendText) { - inst.append = $('' + appendText + ''); - input[isRTL ? 'before' : 'after'](inst.append); - } - var showOn = this._get(inst, 'showOn'); - if (showOn == 'focus' || showOn == 'both') // pop-up date picker when in the marked field - input.focus(this._showDatepicker); - if (showOn == 'button' || showOn == 'both') { // pop-up date picker when button clicked - var buttonText = this._get(inst, 'buttonText'); - var buttonImage = this._get(inst, 'buttonImage'); - inst.trigger = $(this._get(inst, 'buttonImageOnly') ? - $('').addClass(this._triggerClass). - attr({ src: buttonImage, alt: buttonText, title: buttonText }) : - $('').addClass(this._triggerClass). - html(buttonImage == '' ? buttonText : $('').attr( - { src:buttonImage, alt:buttonText, title:buttonText }))); - input[isRTL ? 'before' : 'after'](inst.trigger); - inst.trigger.click(function() { - if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target) - $.datepicker._hideDatepicker(); - else - $.datepicker._showDatepicker(target); - return false; - }); - } - input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress). - bind("setData.datepicker", function(event, key, value) { - inst.settings[key] = value; - }).bind("getData.datepicker", function(event, key) { - return this._get(inst, key); - }); - $.data(target, PROP_NAME, inst); - }, - - /* Attach an inline date picker to a div. */ - _inlineDatepicker: function(target, inst) { - var divSpan = $(target); - if (divSpan.hasClass(this.markerClassName)) - return; - divSpan.addClass(this.markerClassName).append(inst.dpDiv). - bind("setData.datepicker", function(event, key, value){ - inst.settings[key] = value; - }).bind("getData.datepicker", function(event, key){ - return this._get(inst, key); - }); - $.data(target, PROP_NAME, inst); - this._setDate(inst, this._getDefaultDate(inst)); - this._updateDatepicker(inst); - this._updateAlternate(inst); - }, - - /* Pop-up the date picker in a "dialog" box. - @param input element - ignored - @param dateText string - the initial date to display (in the current format) - @param onSelect function - the function(dateText) to call when a date is selected - @param settings object - update the dialog date picker instance's settings (anonymous object) - @param pos int[2] - coordinates for the dialog's position within the screen or - event - with x/y coordinates or - leave empty for default (screen centre) - @return the manager object */ - _dialogDatepicker: function(input, dateText, onSelect, settings, pos) { - var inst = this._dialogInst; // internal instance - if (!inst) { - var id = 'dp' + (++this.uuid); - this._dialogInput = $(''); - this._dialogInput.keydown(this._doKeyDown); - $('body').append(this._dialogInput); - inst = this._dialogInst = this._newInst(this._dialogInput, false); - inst.settings = {}; - $.data(this._dialogInput[0], PROP_NAME, inst); - } - extendRemove(inst.settings, settings || {}); - this._dialogInput.val(dateText); - - this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null); - if (!this._pos) { - var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; - var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; - var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; - var scrollY = document.documentElement.scrollTop || document.body.scrollTop; - this._pos = // should use actual width/height below - [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY]; - } - - // move input on screen for focus, but hidden behind dialog - this._dialogInput.css('left', this._pos[0] + 'px').css('top', this._pos[1] + 'px'); - inst.settings.onSelect = onSelect; - this._inDialog = true; - this.dpDiv.addClass(this._dialogClass); - this._showDatepicker(this._dialogInput[0]); - if ($.blockUI) - $.blockUI(this.dpDiv); - $.data(this._dialogInput[0], PROP_NAME, inst); - return this; - }, - - /* Detach a datepicker from its control. - @param target element - the target input field or division or span */ - _destroyDatepicker: function(target) { - var $target = $(target); - var inst = $.data(target, PROP_NAME); - if (!$target.hasClass(this.markerClassName)) { - return; - } - var nodeName = target.nodeName.toLowerCase(); - $.removeData(target, PROP_NAME); - if (nodeName == 'input') { - inst.append.remove(); - inst.trigger.remove(); - $target.removeClass(this.markerClassName). - unbind('focus', this._showDatepicker). - unbind('keydown', this._doKeyDown). - unbind('keypress', this._doKeyPress); - } else if (nodeName == 'div' || nodeName == 'span') - $target.removeClass(this.markerClassName).empty(); - }, - - /* Enable the date picker to a jQuery selection. - @param target element - the target input field or division or span */ - _enableDatepicker: function(target) { - var $target = $(target); - var inst = $.data(target, PROP_NAME); - if (!$target.hasClass(this.markerClassName)) { - return; - } - var nodeName = target.nodeName.toLowerCase(); - if (nodeName == 'input') { - target.disabled = false; - inst.trigger.filter('button'). - each(function() { this.disabled = false; }).end(). - filter('img').css({opacity: '1.0', cursor: ''}); - } - else if (nodeName == 'div' || nodeName == 'span') { - var inline = $target.children('.' + this._inlineClass); - inline.children().removeClass('ui-state-disabled'); - } - this._disabledInputs = $.map(this._disabledInputs, - function(value) { return (value == target ? null : value); }); // delete entry - }, - - /* Disable the date picker to a jQuery selection. - @param target element - the target input field or division or span */ - _disableDatepicker: function(target) { - var $target = $(target); - var inst = $.data(target, PROP_NAME); - if (!$target.hasClass(this.markerClassName)) { - return; - } - var nodeName = target.nodeName.toLowerCase(); - if (nodeName == 'input') { - target.disabled = true; - inst.trigger.filter('button'). - each(function() { this.disabled = true; }).end(). - filter('img').css({opacity: '0.5', cursor: 'default'}); - } - else if (nodeName == 'div' || nodeName == 'span') { - var inline = $target.children('.' + this._inlineClass); - inline.children().addClass('ui-state-disabled'); - } - this._disabledInputs = $.map(this._disabledInputs, - function(value) { return (value == target ? null : value); }); // delete entry - this._disabledInputs[this._disabledInputs.length] = target; - }, - - /* Is the first field in a jQuery collection disabled as a datepicker? - @param target element - the target input field or division or span - @return boolean - true if disabled, false if enabled */ - _isDisabledDatepicker: function(target) { - if (!target) { - return false; - } - for (var i = 0; i < this._disabledInputs.length; i++) { - if (this._disabledInputs[i] == target) - return true; - } - return false; - }, - - /* Retrieve the instance data for the target control. - @param target element - the target input field or division or span - @return object - the associated instance data - @throws error if a jQuery problem getting data */ - _getInst: function(target) { - try { - return $.data(target, PROP_NAME); - } - catch (err) { - throw 'Missing instance data for this datepicker'; - } - }, - - /* Update or retrieve the settings for a date picker attached to an input field or division. - @param target element - the target input field or division or span - @param name object - the new settings to update or - string - the name of the setting to change or retrieve, - when retrieving also 'all' for all instance settings or - 'defaults' for all global defaults - @param value any - the new value for the setting - (omit if above is an object or to retrieve a value) */ - _optionDatepicker: function(target, name, value) { - var inst = this._getInst(target); - if (arguments.length == 2 && typeof name == 'string') { - return (name == 'defaults' ? $.extend({}, $.datepicker._defaults) : - (inst ? (name == 'all' ? $.extend({}, inst.settings) : - this._get(inst, name)) : null)); - } - var settings = name || {}; - if (typeof name == 'string') { - settings = {}; - settings[name] = value; - } - if (inst) { - if (this._curInst == inst) { - this._hideDatepicker(null); - } - var date = this._getDateDatepicker(target); - extendRemove(inst.settings, settings); - this._setDateDatepicker(target, date); - this._updateDatepicker(inst); - } - }, - - // change method deprecated - _changeDatepicker: function(target, name, value) { - this._optionDatepicker(target, name, value); - }, - - /* Redraw the date picker attached to an input field or division. - @param target element - the target input field or division or span */ - _refreshDatepicker: function(target) { - var inst = this._getInst(target); - if (inst) { - this._updateDatepicker(inst); - } - }, - - /* Set the dates for a jQuery selection. - @param target element - the target input field or division or span - @param date Date - the new date - @param endDate Date - the new end date for a range (optional) */ - _setDateDatepicker: function(target, date, endDate) { - var inst = this._getInst(target); - if (inst) { - this._setDate(inst, date, endDate); - this._updateDatepicker(inst); - this._updateAlternate(inst); - } - }, - - /* Get the date(s) for the first entry in a jQuery selection. - @param target element - the target input field or division or span - @return Date - the current date or - Date[2] - the current dates for a range */ - _getDateDatepicker: function(target) { - var inst = this._getInst(target); - if (inst && !inst.inline) - this._setDateFromField(inst); - return (inst ? this._getDate(inst) : null); - }, - - /* Handle keystrokes. */ - _doKeyDown: function(event) { - var inst = $.datepicker._getInst(event.target); - var handled = true; - var isRTL = inst.dpDiv.is('.ui-datepicker-rtl'); - inst._keyEvent = true; - if ($.datepicker._datepickerShowing) - switch (event.keyCode) { - case 9: $.datepicker._hideDatepicker(null, ''); - break; // hide on tab out - case 13: var sel = $('td.' + $.datepicker._dayOverClass + - ', td.' + $.datepicker._currentClass, inst.dpDiv); - if (sel[0]) - $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]); - else - $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration')); - return false; // don't submit the form - break; // select the value on enter - case 27: $.datepicker._hideDatepicker(null, $.datepicker._get(inst, 'duration')); - break; // hide on escape - case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ? - -$.datepicker._get(inst, 'stepBigMonths') : - -$.datepicker._get(inst, 'stepMonths')), 'M'); - break; // previous month/year on page up/+ ctrl - case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ? - +$.datepicker._get(inst, 'stepBigMonths') : - +$.datepicker._get(inst, 'stepMonths')), 'M'); - break; // next month/year on page down/+ ctrl - case 35: if (event.ctrlKey || event.metaKey) $.datepicker._clearDate(event.target); - handled = event.ctrlKey || event.metaKey; - break; // clear on ctrl or command +end - case 36: if (event.ctrlKey || event.metaKey) $.datepicker._gotoToday(event.target); - handled = event.ctrlKey || event.metaKey; - break; // current on ctrl or command +home - case 37: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), 'D'); - handled = event.ctrlKey || event.metaKey; - // -1 day on ctrl or command +left - if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? - -$.datepicker._get(inst, 'stepBigMonths') : - -$.datepicker._get(inst, 'stepMonths')), 'M'); - // next month/year on alt +left on Mac - break; - case 38: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, -7, 'D'); - handled = event.ctrlKey || event.metaKey; - break; // -1 week on ctrl or command +up - case 39: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), 'D'); - handled = event.ctrlKey || event.metaKey; - // +1 day on ctrl or command +right - if (event.originalEvent.altKey) $.datepicker._adjustDate(event.target, (event.ctrlKey ? - +$.datepicker._get(inst, 'stepBigMonths') : - +$.datepicker._get(inst, 'stepMonths')), 'M'); - // next month/year on alt +right - break; - case 40: if (event.ctrlKey || event.metaKey) $.datepicker._adjustDate(event.target, +7, 'D'); - handled = event.ctrlKey || event.metaKey; - break; // +1 week on ctrl or command +down - default: handled = false; - } - else if (event.keyCode == 36 && event.ctrlKey) // display the date picker on ctrl+home - $.datepicker._showDatepicker(this); - else { - handled = false; - } - if (handled) { - event.preventDefault(); - event.stopPropagation(); - } - }, - - /* Filter entered characters - based on date format. */ - _doKeyPress: function(event) { - var inst = $.datepicker._getInst(event.target); - if ($.datepicker._get(inst, 'constrainInput')) { - var chars = $.datepicker._possibleChars($.datepicker._get(inst, 'dateFormat')); - var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode); - return event.ctrlKey || (chr < ' ' || !chars || chars.indexOf(chr) > -1); - } - }, - - /* Pop-up the date picker for a given input field. - @param input element - the input field attached to the date picker or - event - if triggered by focus */ - _showDatepicker: function(input) { - input = input.target || input; - if (input.nodeName.toLowerCase() != 'input') // find from button/image trigger - input = $('input', input.parentNode)[0]; - if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) // already here - return; - var inst = $.datepicker._getInst(input); - var beforeShow = $.datepicker._get(inst, 'beforeShow'); - extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {})); - $.datepicker._hideDatepicker(null, ''); - $.datepicker._lastInput = input; - $.datepicker._setDateFromField(inst); - if ($.datepicker._inDialog) // hide cursor - input.value = ''; - if (!$.datepicker._pos) { // position below input - $.datepicker._pos = $.datepicker._findPos(input); - $.datepicker._pos[1] += input.offsetHeight; // add the height - } - var isFixed = false; - $(input).parents().each(function() { - isFixed |= $(this).css('position') == 'fixed'; - return !isFixed; - }); - if (isFixed && $.browser.opera) { // correction for Opera when fixed and scrolled - $.datepicker._pos[0] -= document.documentElement.scrollLeft; - $.datepicker._pos[1] -= document.documentElement.scrollTop; - } - var offset = {left: $.datepicker._pos[0], top: $.datepicker._pos[1]}; - $.datepicker._pos = null; - inst.rangeStart = null; - // determine sizing offscreen - inst.dpDiv.css({position: 'absolute', display: 'block', top: '-1000px'}); - $.datepicker._updateDatepicker(inst); - // fix width for dynamic number of date pickers - // and adjust position before showing - offset = $.datepicker._checkOffset(inst, offset, isFixed); - inst.dpDiv.css({position: ($.datepicker._inDialog && $.blockUI ? - 'static' : (isFixed ? 'fixed' : 'absolute')), display: 'none', - left: offset.left + 'px', top: offset.top + 'px'}); - if (!inst.inline) { - var showAnim = $.datepicker._get(inst, 'showAnim') || 'show'; - var duration = $.datepicker._get(inst, 'duration'); - var postProcess = function() { - $.datepicker._datepickerShowing = true; - if ($.browser.msie && parseInt($.browser.version,10) < 7) // fix IE < 7 select problems - $('iframe.ui-datepicker-cover').css({width: inst.dpDiv.width() + 4, - height: inst.dpDiv.height() + 4}); - }; - if ($.effects && $.effects[showAnim]) - inst.dpDiv.show(showAnim, $.datepicker._get(inst, 'showOptions'), duration, postProcess); - else - inst.dpDiv[showAnim](duration, postProcess); - if (duration == '') - postProcess(); - if (inst.input[0].type != 'hidden') - inst.input[0].focus(); - $.datepicker._curInst = inst; - } - }, - - /* Generate the date picker content. */ - _updateDatepicker: function(inst) { - var dims = {width: inst.dpDiv.width() + 4, - height: inst.dpDiv.height() + 4}; - var self = this; - inst.dpDiv.empty().append(this._generateHTML(inst)) - .find('iframe.ui-datepicker-cover'). - css({width: dims.width, height: dims.height}) - .end() - .find('button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a') - .bind('mouseout', function(){ - $(this).removeClass('ui-state-hover'); - if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).removeClass('ui-datepicker-prev-hover'); - if(this.className.indexOf('ui-datepicker-next') != -1) $(this).removeClass('ui-datepicker-next-hover'); - }) - .bind('mouseover', function(){ - if (!self._isDisabledDatepicker( inst.inline ? inst.dpDiv.parent()[0] : inst.input[0])) { - $(this).parents('.ui-datepicker-calendar').find('a').removeClass('ui-state-hover'); - $(this).addClass('ui-state-hover'); - if(this.className.indexOf('ui-datepicker-prev') != -1) $(this).addClass('ui-datepicker-prev-hover'); - if(this.className.indexOf('ui-datepicker-next') != -1) $(this).addClass('ui-datepicker-next-hover'); - } - }) - .end() - .find('.' + this._dayOverClass + ' a') - .trigger('mouseover') - .end(); - var numMonths = this._getNumberOfMonths(inst); - var cols = numMonths[1]; - var width = 17; - if (cols > 1) { - inst.dpDiv.addClass('ui-datepicker-multi-' + cols).css('width', (width * cols) + 'em'); - } else { - inst.dpDiv.removeClass('ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4').width(''); - } - inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? 'add' : 'remove') + - 'Class']('ui-datepicker-multi'); - inst.dpDiv[(this._get(inst, 'isRTL') ? 'add' : 'remove') + - 'Class']('ui-datepicker-rtl'); - if (inst.input && inst.input[0].type != 'hidden' && inst == $.datepicker._curInst) - $(inst.input[0]).focus(); - }, - - /* Check positioning to remain on screen. */ - _checkOffset: function(inst, offset, isFixed) { - var dpWidth = inst.dpDiv.outerWidth(); - var dpHeight = inst.dpDiv.outerHeight(); - var inputWidth = inst.input ? inst.input.outerWidth() : 0; - var inputHeight = inst.input ? inst.input.outerHeight() : 0; - var viewWidth = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) + $(document).scrollLeft(); - var viewHeight = (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight) + $(document).scrollTop(); - - offset.left -= (this._get(inst, 'isRTL') ? (dpWidth - inputWidth) : 0); - offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0; - offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0; - - // now check if datepicker is showing outside window viewport - move to a better place if so. - offset.left -= (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ? Math.abs(offset.left + dpWidth - viewWidth) : 0; - offset.top -= (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ? Math.abs(offset.top + dpHeight + inputHeight*2 - viewHeight) : 0; - - return offset; - }, - - /* Find an object's position on the screen. */ - _findPos: function(obj) { - while (obj && (obj.type == 'hidden' || obj.nodeType != 1)) { - obj = obj.nextSibling; - } - var position = $(obj).offset(); - return [position.left, position.top]; - }, - - /* Hide the date picker from view. - @param input element - the input field attached to the date picker - @param duration string - the duration over which to close the date picker */ - _hideDatepicker: function(input, duration) { - var inst = this._curInst; - if (!inst || (input && inst != $.data(input, PROP_NAME))) - return; - if (inst.stayOpen) - this._selectDate('#' + inst.id, this._formatDate(inst, - inst.currentDay, inst.currentMonth, inst.currentYear)); - inst.stayOpen = false; - if (this._datepickerShowing) { - duration = (duration != null ? duration : this._get(inst, 'duration')); - var showAnim = this._get(inst, 'showAnim'); - var postProcess = function() { - $.datepicker._tidyDialog(inst); - }; - if (duration != '' && $.effects && $.effects[showAnim]) - inst.dpDiv.hide(showAnim, $.datepicker._get(inst, 'showOptions'), - duration, postProcess); - else - inst.dpDiv[(duration == '' ? 'hide' : (showAnim == 'slideDown' ? 'slideUp' : - (showAnim == 'fadeIn' ? 'fadeOut' : 'hide')))](duration, postProcess); - if (duration == '') - this._tidyDialog(inst); - var onClose = this._get(inst, 'onClose'); - if (onClose) - onClose.apply((inst.input ? inst.input[0] : null), - [(inst.input ? inst.input.val() : ''), inst]); // trigger custom callback - this._datepickerShowing = false; - this._lastInput = null; - if (this._inDialog) { - this._dialogInput.css({ position: 'absolute', left: '0', top: '-100px' }); - if ($.blockUI) { - $.unblockUI(); - $('body').append(this.dpDiv); - } - } - this._inDialog = false; - } - this._curInst = null; - }, - - /* Tidy up after a dialog display. */ - _tidyDialog: function(inst) { - inst.dpDiv.removeClass(this._dialogClass).unbind('.ui-datepicker-calendar'); - }, - - /* Close date picker if clicked elsewhere. */ - _checkExternalClick: function(event) { - if (!$.datepicker._curInst) - return; - var $target = $(event.target); - if (($target.parents('#' + $.datepicker._mainDivId).length == 0) && - !$target.hasClass($.datepicker.markerClassName) && - !$target.hasClass($.datepicker._triggerClass) && - $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) - $.datepicker._hideDatepicker(null, ''); - }, - - /* Adjust one of the date sub-fields. */ - _adjustDate: function(id, offset, period) { - var target = $(id); - var inst = this._getInst(target[0]); - if (this._isDisabledDatepicker(target[0])) { - return; - } - this._adjustInstDate(inst, offset + - (period == 'M' ? this._get(inst, 'showCurrentAtPos') : 0), // undo positioning - period); - this._updateDatepicker(inst); - }, - - /* Action for current link. */ - _gotoToday: function(id) { - var target = $(id); - var inst = this._getInst(target[0]); - if (this._get(inst, 'gotoCurrent') && inst.currentDay) { - inst.selectedDay = inst.currentDay; - inst.drawMonth = inst.selectedMonth = inst.currentMonth; - inst.drawYear = inst.selectedYear = inst.currentYear; - } - else { - var date = new Date(); - inst.selectedDay = date.getDate(); - inst.drawMonth = inst.selectedMonth = date.getMonth(); - inst.drawYear = inst.selectedYear = date.getFullYear(); - } - this._notifyChange(inst); - this._adjustDate(target); - }, - - /* Action for selecting a new month/year. */ - _selectMonthYear: function(id, select, period) { - var target = $(id); - var inst = this._getInst(target[0]); - inst._selectingMonthYear = false; - inst['selected' + (period == 'M' ? 'Month' : 'Year')] = - inst['draw' + (period == 'M' ? 'Month' : 'Year')] = - parseInt(select.options[select.selectedIndex].value,10); - this._notifyChange(inst); - this._adjustDate(target); - }, - - /* Restore input focus after not changing month/year. */ - _clickMonthYear: function(id) { - var target = $(id); - var inst = this._getInst(target[0]); - if (inst.input && inst._selectingMonthYear && !$.browser.msie) - inst.input[0].focus(); - inst._selectingMonthYear = !inst._selectingMonthYear; - }, - - /* Action for selecting a day. */ - _selectDay: function(id, month, year, td) { - var target = $(id); - if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) { - return; - } - var inst = this._getInst(target[0]); - inst.selectedDay = inst.currentDay = $('a', td).html(); - inst.selectedMonth = inst.currentMonth = month; - inst.selectedYear = inst.currentYear = year; - if (inst.stayOpen) { - inst.endDay = inst.endMonth = inst.endYear = null; - } - this._selectDate(id, this._formatDate(inst, - inst.currentDay, inst.currentMonth, inst.currentYear)); - if (inst.stayOpen) { - inst.rangeStart = this._daylightSavingAdjust( - new Date(inst.currentYear, inst.currentMonth, inst.currentDay)); - this._updateDatepicker(inst); - } - }, - - /* Erase the input field and hide the date picker. */ - _clearDate: function(id) { - var target = $(id); - var inst = this._getInst(target[0]); - inst.stayOpen = false; - inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null; - this._selectDate(target, ''); - }, - - /* Update the input field with the selected date. */ - _selectDate: function(id, dateStr) { - var target = $(id); - var inst = this._getInst(target[0]); - dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); - if (inst.input) - inst.input.val(dateStr); - this._updateAlternate(inst); - var onSelect = this._get(inst, 'onSelect'); - if (onSelect) - onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]); // trigger custom callback - else if (inst.input) - inst.input.trigger('change'); // fire the change event - if (inst.inline) - this._updateDatepicker(inst); - else if (!inst.stayOpen) { - this._hideDatepicker(null, this._get(inst, 'duration')); - this._lastInput = inst.input[0]; - if (typeof(inst.input[0]) != 'object') - inst.input[0].focus(); // restore focus - this._lastInput = null; - } - }, - - /* Update any alternate field to synchronise with the main field. */ - _updateAlternate: function(inst) { - var altField = this._get(inst, 'altField'); - if (altField) { // update alternate field too - var altFormat = this._get(inst, 'altFormat') || this._get(inst, 'dateFormat'); - var date = this._getDate(inst); - dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst)); - $(altField).each(function() { $(this).val(dateStr); }); - } - }, - - /* Set as beforeShowDay function to prevent selection of weekends. - @param date Date - the date to customise - @return [boolean, string] - is this date selectable?, what is its CSS class? */ - noWeekends: function(date) { - var day = date.getDay(); - return [(day > 0 && day < 6), '']; - }, - - /* Set as calculateWeek to determine the week of the year based on the ISO 8601 definition. - @param date Date - the date to get the week for - @return number - the number of the week within the year that contains this date */ - iso8601Week: function(date) { - var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate()); - var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); // First week always contains 4 Jan - var firstDay = firstMon.getDay() || 7; // Day of week: Mon = 1, ..., Sun = 7 - firstMon.setDate(firstMon.getDate() + 1 - firstDay); // Preceding Monday - if (firstDay < 4 && checkDate < firstMon) { // Adjust first three days in year if necessary - checkDate.setDate(checkDate.getDate() - 3); // Generate for previous year - return $.datepicker.iso8601Week(checkDate); - } else if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { // Check last three days in year - firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7; - if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { // Adjust if necessary - return 1; - } - } - return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date - }, - - /* Parse a string value into a date object. - See formatDate below for the possible formats. - - @param format string - the expected format of the date - @param value string - the date in the above format - @param settings Object - attributes include: - shortYearCutoff number - the cutoff year for determining the century (optional) - dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) - dayNames string[7] - names of the days from Sunday (optional) - monthNamesShort string[12] - abbreviated names of the months (optional) - monthNames string[12] - names of the months (optional) - @return Date - the extracted date value or null if value is blank */ - parseDate: function (format, value, settings) { - if (format == null || value == null) - throw 'Invalid arguments'; - value = (typeof value == 'object' ? value.toString() : value + ''); - if (value == '') - return null; - var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff; - var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; - var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; - var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; - var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; - var year = -1; - var month = -1; - var day = -1; - var doy = -1; - var literal = false; - // Check whether a format character is doubled - var lookAhead = function(match) { - var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); - if (matches) - iFormat++; - return matches; - }; - // Extract a number from the string value - var getNumber = function(match) { - lookAhead(match); - var origSize = (match == '@' ? 14 : (match == 'y' ? 4 : (match == 'o' ? 3 : 2))); - var size = origSize; - var num = 0; - while (size > 0 && iValue < value.length && - value.charAt(iValue) >= '0' && value.charAt(iValue) <= '9') { - num = num * 10 + parseInt(value.charAt(iValue++),10); - size--; - } - if (size == origSize) - throw 'Missing number at position ' + iValue; - return num; - }; - // Extract a name from the string value and convert to an index - var getName = function(match, shortNames, longNames) { - var names = (lookAhead(match) ? longNames : shortNames); - var size = 0; - for (var j = 0; j < names.length; j++) - size = Math.max(size, names[j].length); - var name = ''; - var iInit = iValue; - while (size > 0 && iValue < value.length) { - name += value.charAt(iValue++); - for (var i = 0; i < names.length; i++) - if (name == names[i]) - return i + 1; - size--; - } - throw 'Unknown name at position ' + iInit; - }; - // Confirm that a literal character matches the string value - var checkLiteral = function() { - if (value.charAt(iValue) != format.charAt(iFormat)) - throw 'Unexpected literal at position ' + iValue; - iValue++; - }; - var iValue = 0; - for (var iFormat = 0; iFormat < format.length; iFormat++) { - if (literal) - if (format.charAt(iFormat) == "'" && !lookAhead("'")) - literal = false; - else - checkLiteral(); - else - switch (format.charAt(iFormat)) { - case 'd': - day = getNumber('d'); - break; - case 'D': - getName('D', dayNamesShort, dayNames); - break; - case 'o': - doy = getNumber('o'); - break; - case 'm': - month = getNumber('m'); - break; - case 'M': - month = getName('M', monthNamesShort, monthNames); - break; - case 'y': - year = getNumber('y'); - break; - case '@': - var date = new Date(getNumber('@')); - year = date.getFullYear(); - month = date.getMonth() + 1; - day = date.getDate(); - break; - case "'": - if (lookAhead("'")) - checkLiteral(); - else - literal = true; - break; - default: - checkLiteral(); - } - } - if (year == -1) - year = new Date().getFullYear(); - else if (year < 100) - year += new Date().getFullYear() - new Date().getFullYear() % 100 + - (year <= shortYearCutoff ? 0 : -100); - if (doy > -1) { - month = 1; - day = doy; - do { - var dim = this._getDaysInMonth(year, month - 1); - if (day <= dim) - break; - month++; - day -= dim; - } while (true); - } - var date = this._daylightSavingAdjust(new Date(year, month - 1, day)); - if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) - throw 'Invalid date'; // E.g. 31/02/* - return date; - }, - - /* Standard date formats. */ - ATOM: 'yy-mm-dd', // RFC 3339 (ISO 8601) - COOKIE: 'D, dd M yy', - ISO_8601: 'yy-mm-dd', - RFC_822: 'D, d M y', - RFC_850: 'DD, dd-M-y', - RFC_1036: 'D, d M y', - RFC_1123: 'D, d M yy', - RFC_2822: 'D, d M yy', - RSS: 'D, d M y', // RFC 822 - TIMESTAMP: '@', - W3C: 'yy-mm-dd', // ISO 8601 - - /* Format a date object into a string value. - The format can be combinations of the following: - d - day of month (no leading zero) - dd - day of month (two digit) - o - day of year (no leading zeros) - oo - day of year (three digit) - D - day name short - DD - day name long - m - month of year (no leading zero) - mm - month of year (two digit) - M - month name short - MM - month name long - y - year (two digit) - yy - year (four digit) - @ - Unix timestamp (ms since 01/01/1970) - '...' - literal text - '' - single quote - - @param format string - the desired format of the date - @param date Date - the date value to format - @param settings Object - attributes include: - dayNamesShort string[7] - abbreviated names of the days from Sunday (optional) - dayNames string[7] - names of the days from Sunday (optional) - monthNamesShort string[12] - abbreviated names of the months (optional) - monthNames string[12] - names of the months (optional) - @return string - the date in the above format */ - formatDate: function (format, date, settings) { - if (!date) - return ''; - var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; - var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; - var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; - var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; - // Check whether a format character is doubled - var lookAhead = function(match) { - var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); - if (matches) - iFormat++; - return matches; - }; - // Format a number, with leading zero if necessary - var formatNumber = function(match, value, len) { - var num = '' + value; - if (lookAhead(match)) - while (num.length < len) - num = '0' + num; - return num; - }; - // Format a name, short or long as requested - var formatName = function(match, value, shortNames, longNames) { - return (lookAhead(match) ? longNames[value] : shortNames[value]); - }; - var output = ''; - var literal = false; - if (date) - for (var iFormat = 0; iFormat < format.length; iFormat++) { - if (literal) - if (format.charAt(iFormat) == "'" && !lookAhead("'")) - literal = false; - else - output += format.charAt(iFormat); - else - switch (format.charAt(iFormat)) { - case 'd': - output += formatNumber('d', date.getDate(), 2); - break; - case 'D': - output += formatName('D', date.getDay(), dayNamesShort, dayNames); - break; - case 'o': - var doy = date.getDate(); - for (var m = date.getMonth() - 1; m >= 0; m--) - doy += this._getDaysInMonth(date.getFullYear(), m); - output += formatNumber('o', doy, 3); - break; - case 'm': - output += formatNumber('m', date.getMonth() + 1, 2); - break; - case 'M': - output += formatName('M', date.getMonth(), monthNamesShort, monthNames); - break; - case 'y': - output += (lookAhead('y') ? date.getFullYear() : - (date.getYear() % 100 < 10 ? '0' : '') + date.getYear() % 100); - break; - case '@': - output += date.getTime(); - break; - case "'": - if (lookAhead("'")) - output += "'"; - else - literal = true; - break; - default: - output += format.charAt(iFormat); - } - } - return output; - }, - - /* Extract all possible characters from the date format. */ - _possibleChars: function (format) { - var chars = ''; - var literal = false; - for (var iFormat = 0; iFormat < format.length; iFormat++) - if (literal) - if (format.charAt(iFormat) == "'" && !lookAhead("'")) - literal = false; - else - chars += format.charAt(iFormat); - else - switch (format.charAt(iFormat)) { - case 'd': case 'm': case 'y': case '@': - chars += '0123456789'; - break; - case 'D': case 'M': - return null; // Accept anything - case "'": - if (lookAhead("'")) - chars += "'"; - else - literal = true; - break; - default: - chars += format.charAt(iFormat); - } - return chars; - }, - - /* Get a setting value, defaulting if necessary. */ - _get: function(inst, name) { - return inst.settings[name] !== undefined ? - inst.settings[name] : this._defaults[name]; - }, - - /* Parse existing date and initialise date picker. */ - _setDateFromField: function(inst) { - var dateFormat = this._get(inst, 'dateFormat'); - var dates = inst.input ? inst.input.val() : null; - inst.endDay = inst.endMonth = inst.endYear = null; - var date = defaultDate = this._getDefaultDate(inst); - var settings = this._getFormatConfig(inst); - try { - date = this.parseDate(dateFormat, dates, settings) || defaultDate; - } catch (event) { - this.log(event); - date = defaultDate; - } - inst.selectedDay = date.getDate(); - inst.drawMonth = inst.selectedMonth = date.getMonth(); - inst.drawYear = inst.selectedYear = date.getFullYear(); - inst.currentDay = (dates ? date.getDate() : 0); - inst.currentMonth = (dates ? date.getMonth() : 0); - inst.currentYear = (dates ? date.getFullYear() : 0); - this._adjustInstDate(inst); - }, - - /* Retrieve the default date shown on opening. */ - _getDefaultDate: function(inst) { - var date = this._determineDate(this._get(inst, 'defaultDate'), new Date()); - var minDate = this._getMinMaxDate(inst, 'min', true); - var maxDate = this._getMinMaxDate(inst, 'max'); - date = (minDate && date < minDate ? minDate : date); - date = (maxDate && date > maxDate ? maxDate : date); - return date; - }, - - /* A date may be specified as an exact value or a relative one. */ - _determineDate: function(date, defaultDate) { - var offsetNumeric = function(offset) { - var date = new Date(); - date.setDate(date.getDate() + offset); - return date; - }; - var offsetString = function(offset, getDaysInMonth) { - var date = new Date(); - var year = date.getFullYear(); - var month = date.getMonth(); - var day = date.getDate(); - var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g; - var matches = pattern.exec(offset); - while (matches) { - switch (matches[2] || 'd') { - case 'd' : case 'D' : - day += parseInt(matches[1],10); break; - case 'w' : case 'W' : - day += parseInt(matches[1],10) * 7; break; - case 'm' : case 'M' : - month += parseInt(matches[1],10); - day = Math.min(day, getDaysInMonth(year, month)); - break; - case 'y': case 'Y' : - year += parseInt(matches[1],10); - day = Math.min(day, getDaysInMonth(year, month)); - break; - } - matches = pattern.exec(offset); - } - return new Date(year, month, day); - }; - date = (date == null ? defaultDate : - (typeof date == 'string' ? offsetString(date, this._getDaysInMonth) : - (typeof date == 'number' ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date))); - date = (date && date.toString() == 'Invalid Date' ? defaultDate : date); - if (date) { - date.setHours(0); - date.setMinutes(0); - date.setSeconds(0); - date.setMilliseconds(0); - } - return this._daylightSavingAdjust(date); - }, - - /* Handle switch to/from daylight saving. - Hours may be non-zero on daylight saving cut-over: - > 12 when midnight changeover, but then cannot generate - midnight datetime, so jump to 1AM, otherwise reset. - @param date (Date) the date to check - @return (Date) the corrected date */ - _daylightSavingAdjust: function(date) { - if (!date) return null; - date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); - return date; - }, - - /* Set the date(s) directly. */ - _setDate: function(inst, date, endDate) { - var clear = !(date); - var origMonth = inst.selectedMonth; - var origYear = inst.selectedYear; - date = this._determineDate(date, new Date()); - inst.selectedDay = inst.currentDay = date.getDate(); - inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth(); - inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear(); - if (origMonth != inst.selectedMonth || origYear != inst.selectedYear) - this._notifyChange(inst); - this._adjustInstDate(inst); - if (inst.input) { - inst.input.val(clear ? '' : this._formatDate(inst)); - } - }, - - /* Retrieve the date(s) directly. */ - _getDate: function(inst) { - var startDate = (!inst.currentYear || (inst.input && inst.input.val() == '') ? null : - this._daylightSavingAdjust(new Date( - inst.currentYear, inst.currentMonth, inst.currentDay))); - return startDate; - }, - - /* Generate the HTML for the current state of the date picker. */ - _generateHTML: function(inst) { - var today = new Date(); - today = this._daylightSavingAdjust( - new Date(today.getFullYear(), today.getMonth(), today.getDate())); // clear time - var isRTL = this._get(inst, 'isRTL'); - var showButtonPanel = this._get(inst, 'showButtonPanel'); - var hideIfNoPrevNext = this._get(inst, 'hideIfNoPrevNext'); - var navigationAsDateFormat = this._get(inst, 'navigationAsDateFormat'); - var numMonths = this._getNumberOfMonths(inst); - var showCurrentAtPos = this._get(inst, 'showCurrentAtPos'); - var stepMonths = this._get(inst, 'stepMonths'); - var stepBigMonths = this._get(inst, 'stepBigMonths'); - var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1); - var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : - new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); - var minDate = this._getMinMaxDate(inst, 'min', true); - var maxDate = this._getMinMaxDate(inst, 'max'); - var drawMonth = inst.drawMonth - showCurrentAtPos; - var drawYear = inst.drawYear; - if (drawMonth < 0) { - drawMonth += 12; - drawYear--; - } - if (maxDate) { - var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), - maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate())); - maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw); - while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) { - drawMonth--; - if (drawMonth < 0) { - drawMonth = 11; - drawYear--; - } - } - } - inst.drawMonth = drawMonth; - inst.drawYear = drawYear; - var prevText = this._get(inst, 'prevText'); - prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, - this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), - this._getFormatConfig(inst))); - var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? - '' + prevText + '' : - (hideIfNoPrevNext ? '' : '' + prevText + '')); - var nextText = this._get(inst, 'nextText'); - nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, - this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), - this._getFormatConfig(inst))); - var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? - '' + nextText + '' : - (hideIfNoPrevNext ? '' : '' + nextText + '')); - var currentText = this._get(inst, 'currentText'); - var gotoDate = (this._get(inst, 'gotoCurrent') && inst.currentDay ? currentDate : today); - currentText = (!navigationAsDateFormat ? currentText : - this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); - var controls = (!inst.inline ? '' : ''); - var buttonPanel = (showButtonPanel) ? '
' + (isRTL ? controls : '') + - (this._isInRange(inst, gotoDate) ? '' : '') + (isRTL ? '' : controls) + '
' : ''; - var firstDay = parseInt(this._get(inst, 'firstDay'),10); - firstDay = (isNaN(firstDay) ? 0 : firstDay); - var dayNames = this._get(inst, 'dayNames'); - var dayNamesShort = this._get(inst, 'dayNamesShort'); - var dayNamesMin = this._get(inst, 'dayNamesMin'); - var monthNames = this._get(inst, 'monthNames'); - var monthNamesShort = this._get(inst, 'monthNamesShort'); - var beforeShowDay = this._get(inst, 'beforeShowDay'); - var showOtherMonths = this._get(inst, 'showOtherMonths'); - var calculateWeek = this._get(inst, 'calculateWeek') || this.iso8601Week; - var endDate = inst.endDay ? this._daylightSavingAdjust( - new Date(inst.endYear, inst.endMonth, inst.endDay)) : currentDate; - var defaultDate = this._getDefaultDate(inst); - var html = ''; - for (var row = 0; row < numMonths[0]; row++) { - var group = ''; - for (var col = 0; col < numMonths[1]; col++) { - var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); - var cornerClass = ' ui-corner-all'; - var calender = ''; - if (isMultiMonth) { - calender += '
'; - } - calender += '
' + - (/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : '') + - (/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : '') + - this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, - selectedDate, row > 0 || col > 0, monthNames, monthNamesShort) + // draw month headers - '
' + - ''; - var thead = ''; - for (var dow = 0; dow < 7; dow++) { // days of the week - var day = (dow + firstDay) % 7; - thead += '= 5 ? ' class="ui-datepicker-week-end"' : '') + '>' + - '' + dayNamesMin[day] + ''; - } - calender += thead + ''; - var daysInMonth = this._getDaysInMonth(drawYear, drawMonth); - if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) - inst.selectedDay = Math.min(inst.selectedDay, daysInMonth); - var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; - var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); // calculate the number of rows to generate - var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); - for (var dRow = 0; dRow < numRows; dRow++) { // create date picker rows - calender += ''; - var tbody = ''; - for (var dow = 0; dow < 7; dow++) { // create date picker days - var daySettings = (beforeShowDay ? - beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, '']); - var otherMonth = (printDate.getMonth() != drawMonth); - var unselectable = otherMonth || !daySettings[0] || - (minDate && printDate < minDate) || (maxDate && printDate > maxDate); - tbody += ''; // display for this month - printDate.setDate(printDate.getDate() + 1); - printDate = this._daylightSavingAdjust(printDate); - } - calender += tbody + ''; - } - drawMonth++; - if (drawMonth > 11) { - drawMonth = 0; - drawYear++; - } - calender += '
' + // actions - (otherMonth ? (showOtherMonths ? printDate.getDate() : ' ') : // display for other months - (unselectable ? '' + printDate.getDate() + '' : '' + printDate.getDate() + '')) + '
' + (isMultiMonth ? '
' + - ((numMonths[0] > 0 && col == numMonths[1]-1) ? '
' : '') : ''); - group += calender; - } - html += group; - } - html += buttonPanel + ($.browser.msie && parseInt($.browser.version,10) < 7 && !inst.inline ? - '' : ''); - inst._keyEvent = false; - return html; - }, - - /* Generate the month and year header. */ - _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, - selectedDate, secondary, monthNames, monthNamesShort) { - minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate); - var changeMonth = this._get(inst, 'changeMonth'); - var changeYear = this._get(inst, 'changeYear'); - var showMonthAfterYear = this._get(inst, 'showMonthAfterYear'); - var html = '
'; - var monthHtml = ''; - // month selection - if (secondary || !changeMonth) - monthHtml += '' + monthNames[drawMonth] + ' '; - else { - var inMinYear = (minDate && minDate.getFullYear() == drawYear); - var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear); - monthHtml += ''; - } - if (!showMonthAfterYear) - html += monthHtml + ((secondary || changeMonth || changeYear) && (!(changeMonth && changeYear)) ? ' ' : ''); - // year selection - if (secondary || !changeYear) - html += '' + drawYear + ''; - else { - // determine range of years to display - var years = this._get(inst, 'yearRange').split(':'); - var year = 0; - var endYear = 0; - if (years.length != 2) { - year = drawYear - 10; - endYear = drawYear + 10; - } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') { - year = drawYear + parseInt(years[0], 10); - endYear = drawYear + parseInt(years[1], 10); - } else { - year = parseInt(years[0], 10); - endYear = parseInt(years[1], 10); - } - year = (minDate ? Math.max(year, minDate.getFullYear()) : year); - endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear); - html += ''; - } - if (showMonthAfterYear) - html += (secondary || changeMonth || changeYear ? ' ' : '') + monthHtml; - html += '
'; // Close datepicker_header - return html; - }, - - /* Adjust one of the date sub-fields. */ - _adjustInstDate: function(inst, offset, period) { - var year = inst.drawYear + (period == 'Y' ? offset : 0); - var month = inst.drawMonth + (period == 'M' ? offset : 0); - var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + - (period == 'D' ? offset : 0); - var date = this._daylightSavingAdjust(new Date(year, month, day)); - // ensure it is within the bounds set - var minDate = this._getMinMaxDate(inst, 'min', true); - var maxDate = this._getMinMaxDate(inst, 'max'); - date = (minDate && date < minDate ? minDate : date); - date = (maxDate && date > maxDate ? maxDate : date); - inst.selectedDay = date.getDate(); - inst.drawMonth = inst.selectedMonth = date.getMonth(); - inst.drawYear = inst.selectedYear = date.getFullYear(); - if (period == 'M' || period == 'Y') - this._notifyChange(inst); - }, - - /* Notify change of month/year. */ - _notifyChange: function(inst) { - var onChange = this._get(inst, 'onChangeMonthYear'); - if (onChange) - onChange.apply((inst.input ? inst.input[0] : null), - [inst.selectedYear, inst.selectedMonth + 1, inst]); - }, - - /* Determine the number of months to show. */ - _getNumberOfMonths: function(inst) { - var numMonths = this._get(inst, 'numberOfMonths'); - return (numMonths == null ? [1, 1] : (typeof numMonths == 'number' ? [1, numMonths] : numMonths)); - }, - - /* Determine the current maximum date - ensure no time components are set - may be overridden for a range. */ - _getMinMaxDate: function(inst, minMax, checkRange) { - var date = this._determineDate(this._get(inst, minMax + 'Date'), null); - return (!checkRange || !inst.rangeStart ? date : - (!date || inst.rangeStart > date ? inst.rangeStart : date)); - }, - - /* Find the number of days in a given month. */ - _getDaysInMonth: function(year, month) { - return 32 - new Date(year, month, 32).getDate(); - }, - - /* Find the day of the week of the first of a month. */ - _getFirstDayOfMonth: function(year, month) { - return new Date(year, month, 1).getDay(); - }, - - /* Determines if we should allow a "next/prev" month display change. */ - _canAdjustMonth: function(inst, offset, curYear, curMonth) { - var numMonths = this._getNumberOfMonths(inst); - var date = this._daylightSavingAdjust(new Date( - curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1)); - if (offset < 0) - date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth())); - return this._isInRange(inst, date); - }, - - /* Is the given date in the accepted range? */ - _isInRange: function(inst, date) { - // during range selection, use minimum of selected date and range start - var newMinDate = (!inst.rangeStart ? null : this._daylightSavingAdjust( - new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay))); - newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate); - var minDate = newMinDate || this._getMinMaxDate(inst, 'min'); - var maxDate = this._getMinMaxDate(inst, 'max'); - return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate)); - }, - - /* Provide the configuration settings for formatting/parsing. */ - _getFormatConfig: function(inst) { - var shortYearCutoff = this._get(inst, 'shortYearCutoff'); - shortYearCutoff = (typeof shortYearCutoff != 'string' ? shortYearCutoff : - new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); - return {shortYearCutoff: shortYearCutoff, - dayNamesShort: this._get(inst, 'dayNamesShort'), dayNames: this._get(inst, 'dayNames'), - monthNamesShort: this._get(inst, 'monthNamesShort'), monthNames: this._get(inst, 'monthNames')}; - }, - - /* Format the given date for display. */ - _formatDate: function(inst, day, month, year) { - if (!day) { - inst.currentDay = inst.selectedDay; - inst.currentMonth = inst.selectedMonth; - inst.currentYear = inst.selectedYear; - } - var date = (day ? (typeof day == 'object' ? day : - this._daylightSavingAdjust(new Date(year, month, day))) : - this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); - return this.formatDate(this._get(inst, 'dateFormat'), date, this._getFormatConfig(inst)); - } -}); - -/* jQuery extend now ignores nulls! */ -function extendRemove(target, props) { - $.extend(target, props); - for (var name in props) - if (props[name] == null || props[name] == undefined) - target[name] = props[name]; - return target; -}; - -/* Determine whether an object is an array. */ -function isArray(a) { - return (a && (($.browser.safari && typeof a == 'object' && a.length) || - (a.constructor && a.constructor.toString().match(/\Array\(\)/)))); -}; - -/* Invoke the datepicker functionality. - @param options string - a command, optionally followed by additional parameters or - Object - settings for attaching new datepicker functionality - @return jQuery object */ -$.fn.datepicker = function(options){ - - /* Initialise the date picker. */ - if (!$.datepicker.initialized) { - $(document).mousedown($.datepicker._checkExternalClick). - find('body').append($.datepicker.dpDiv); - $.datepicker.initialized = true; - } - - var otherArgs = Array.prototype.slice.call(arguments, 1); - if (typeof options == 'string' && (options == 'isDisabled' || options == 'getDate')) - return $.datepicker['_' + options + 'Datepicker']. - apply($.datepicker, [this[0]].concat(otherArgs)); - if (options == 'option' && arguments.length == 2 && typeof arguments[1] == 'string') - return $.datepicker['_' + options + 'Datepicker']. - apply($.datepicker, [this[0]].concat(otherArgs)); - return this.each(function() { - typeof options == 'string' ? - $.datepicker['_' + options + 'Datepicker']. - apply($.datepicker, [this].concat(otherArgs)) : - $.datepicker._attachDatepicker(this, options); - }); -}; - -$.datepicker = new Datepicker(); // singleton instance -$.datepicker.initialized = false; -$.datepicker.uuid = new Date().getTime(); -$.datepicker.version = "1.7.2"; - -// Workaround for #4055 -// Add another global to avoid noConflict issues with inline event handlers -window.DP_jQuery = $; - -})(jQuery); diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.datepicker.min.js b/forum/modules/template_loader.py/forum/skins/default/media/js/ui.datepicker.min.js deleted file mode 100644 index 8427ef7..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/ui.datepicker.min.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - * jQuery UI Datepicker 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Datepicker - * - * Depends: - * ui.core.js - */ -(function($){$.extend($.ui,{datepicker:{version:"1.7.2"}});var PROP_NAME="datepicker";function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dateFormat:"mm/dd/yy",firstDay:0,isRTL:false};this._defaults={showOn:"focus",showAnim:"show",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,showMonthAfterYear:false,yearRange:"-10:+10",showOtherMonths:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"normal",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('
')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('
'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$(''+appendText+"");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDatenew Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)0&&iValue="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j0&&iValue-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormatmaxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDrawmaxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?''+prevText+"":(hideIfNoPrevNext?"":''+prevText+""));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?''+nextText+"":(hideIfNoPrevNext?"":''+nextText+""));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'":"");var buttonPanel=(showButtonPanel)?'
'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'":"")+(isRTL?"":controls)+"
":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="=5?' class="ui-datepicker-week-end"':"")+'>'+dayNamesMin[day]+""}calender+=thead+"";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDatemaxDate);tbody+='";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+""}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="
=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():" "):(unselectable?''+printDate.getDate()+"":'=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+""))+"
"+(isMultiMonth?""+((numMonths[0]>0&&col==numMonths[1]-1)?'
':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?" ":"")}if(secondary||!changeYear){html+=''+drawYear+""}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?" ":"")+monthHtml}html+="";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&datemaxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery); \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bg-fill.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bg-fill.png deleted file mode 100644 index ec503ce..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bg-fill.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bg.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bg.png deleted file mode 100644 index bcaed31..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bg.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/blockquote.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/blockquote.png deleted file mode 100644 index 537864a..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/blockquote.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bold.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bold.png deleted file mode 100644 index eac2763..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/bold.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/code.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/code.png deleted file mode 100644 index dc1011c..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/code.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/h1.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/h1.png deleted file mode 100644 index 96baecb..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/h1.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/hr.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/hr.png deleted file mode 100644 index 08be8e5..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/hr.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/img.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/img.png deleted file mode 100644 index 596b989..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/img.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/italic.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/italic.png deleted file mode 100644 index 412b0fc..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/italic.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/link.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/link.png deleted file mode 100644 index 1e11500..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/link.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/ol.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/ol.png deleted file mode 100644 index 3df2b9b..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/ol.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/redo.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/redo.png deleted file mode 100644 index 736a78b..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/redo.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/separator.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/separator.png deleted file mode 100644 index 9cb87b9..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/separator.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/ul.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/ul.png deleted file mode 100644 index 978be7e..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/ul.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/undo.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/undo.png deleted file mode 100644 index 533faaf..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/undo.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-buttons.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-buttons.png deleted file mode 100644 index 50b3709..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-buttons.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-buttons.psd b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-buttons.psd deleted file mode 100644 index e61ff37..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-buttons.psd and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-on.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-on.png deleted file mode 100644 index 4844ae9..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd-on.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd.png b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd.png deleted file mode 100644 index 04177fb..0000000 Binary files a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/images/wmd.png and /dev/null differ diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/showdown-min.js b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/showdown-min.js deleted file mode 100644 index 073613b..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/showdown-min.js +++ /dev/null @@ -1 +0,0 @@ -var Attacklab=Attacklab||{};Attacklab.showdown=Attacklab.showdown||{};Attacklab.showdown.converter=function(){var a;var j;var A;var i=0;this.makeHtml=function(H){a=new Array();j=new Array();A=new Array();H=H.replace(/~/g,"~T");H=H.replace(/\$/g,"~D");H=H.replace(/\r\n/g,"\n");H=H.replace(/\r/g,"\n");H="\n\n"+H+"\n\n";H=z(H);H=H.replace(/^[ \t]+$/mg,"");H=m(H);H=d(H);H=G(H);H=q(H);H=H.replace(/~D/g,"$$");H=H.replace(/~T/g,"~");return H};var d=function(H){var H=H.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|\Z)/gm,function(K,M,L,J,I){M=M.toLowerCase();a[M]=h(L);if(J){return J+I}else{if(I){j[M]=I.replace(/"/g,""")}}return""});return H};var m=function(J){J=J.replace(/\n/g,"\n\n");var I="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del";var H="p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math";J=J.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,x);J=J.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,x);J=J.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,x);J=J.replace(/(\n\n[ ]{0,3}[ \t]*(?=\n{2,}))/g,x);J=J.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,x);J=J.replace(/\n\n/g,"\n");return J};var x=function(H,I){var J=I;J=J.replace(/\n\n/g,"\n");J=J.replace(/^\n/,"");J=J.replace(/\n+$/g,"");J="\n\n~K"+(A.push(J)-1)+"K\n\n";return J};var G=function(I){I=f(I);var H=o("
");I=I.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,H);I=I.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,H);I=I.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,H);I=E(I);I=b(I);I=u(I);I=m(I);I=g(I);return I};var r=function(H){H=C(H);H=l(H);H=e(H);H=F(H);H=y(H);H=n(H);H=h(H);H=c(H);H=H.replace(/ +\n/g,"
\n");return H};var l=function(I){var H=/(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi;I=I.replace(H,function(K){var J=K.replace(/(.)<\/?code>(?=.)/g,"$1`");J=w(J,"\\`*_");return J});return I};var y=function(H){H=H.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,D);H=H.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,D);H=H.replace(/(\[([^\[\]]+)\])()()()()()/g,D);return H};var D=function(N,T,S,R,Q,P,M,L){if(L==undefined){L=""}var K=T;var I=S;var J=R.toLowerCase();var H=Q;var O=L;if(H==""){if(J==""){J=I.toLowerCase().replace(/ ?\n/g," ")}H="#"+J;if(a[J]!=undefined){H=a[J];if(j[J]!=undefined){O=j[J]}}else{if(K.search(/\(\s*\)$/m)>-1){H=""}else{return K}}}H=w(H,"*_");var U='";return U};var F=function(H){H=H.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,t);H=H.replace(/(!\[(.*?)\]\s?\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,t);return H};var t=function(N,T,S,R,Q,P,M,L){var K=T;var J=S;var I=R.toLowerCase();var H=Q;var O=L;if(!O){O=""}if(H==""){if(I==""){I=J.toLowerCase().replace(/ ?\n/g," ")}H="#"+I;if(a[I]!=undefined){H=a[I];if(j[I]!=undefined){O=j[I]}}else{return K}}J=J.replace(/"/g,""");H=w(H,"*_");var U=''+J+'"+r(J)+"")});H=H.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm,function(J,I){return o("

"+r(I)+"

")});H=H.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm,function(I,L,K){var J=L.length;return o(""+r(K)+"")});return H};var p;var E=function(I){I+="~0";var H=/^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm;if(i){I=I.replace(H,function(K,N,M){var O=N;var L=(M.search(/[*+-]/g)>-1)?"ul":"ol";O=O.replace(/\n{2,}/g,"\n\n\n");var J=p(O);J=J.replace(/\s+$/,"");J="<"+L+">"+J+"\n";return J})}else{H=/(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g;I=I.replace(H,function(L,P,N,K){var O=P;var Q=N;var M=(K.search(/[*+-]/g)>-1)?"ul":"ol";var Q=Q.replace(/\n{2,}/g,"\n\n\n");var J=p(Q);J=O+"<"+M+">\n"+J+"\n";return J})}I=I.replace(/~0/,"");return I};p=function(H){i++;H=H.replace(/\n{2,}$/,"\n");H+="~0";H=H.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm,function(K,M,L,J,I){var O=I;var N=M;var P=L;if(N||(O.search(/\n{2,}/)>-1)){O=G(s(O))}else{O=E(s(O));O=O.replace(/\n$/,"");O=r(O)}return"
  • "+O+"
  • \n"});H=H.replace(/~0/g,"");i--;return H};var b=function(H){H+="~0";H=H.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,function(I,K,J){var L=K;var M=J;L=v(s(L));L=z(L);L=L.replace(/^\n+/g,"");L=L.replace(/\n+$/g,"");L="
    "+L+"\n
    ";return o(L)+M});H=H.replace(/~0/,"");return H};var o=function(H){H=H.replace(/(^\n+|\n+$)/g,"");return"\n\n~K"+(A.push(H)-1)+"K\n\n"};var C=function(H){H=H.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(K,M,L,J,I){var N=J;N=N.replace(/^([ \t]*)/g,"");N=N.replace(/[ \t]*$/g,"");N=v(N);return M+""+N+""});return H};var v=function(H){H=H.replace(/&/g,"&");H=H.replace(//g,">");H=w(H,"*_{}[]\\",false);return H};var c=function(H){H=H.replace(/(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\1/g,"$2");H=H.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g,"$2");return H};var u=function(H){H=H.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm,function(I,J){var K=J;K=K.replace(/^[ \t]*>[ \t]?/gm,"~0");K=K.replace(/~0/g,"");K=K.replace(/^[ \t]+$/gm,"");K=G(K);K=K.replace(/(^|\n)/g,"$1 ");K=K.replace(/(\s*
    [^\r]+?<\/pre>)/gm,function(L,M){var N=M;N=N.replace(/^  /mg,"~0");N=N.replace(/~0/g,"");return N});return o("
    \n"+K+"\n
    ")});return H};var g=function(N){N=N.replace(/^\n+/g,"");N=N.replace(/\n+$/g,"");var M=N.split(/\n{2,}/g);var J=new Array();var H=M.length;for(var I=0;I=0){J.push(L)}else{if(L.search(/\S/)>=0){L=r(L);L=L.replace(/^([ \t]*)/g,"

    ");L+="

    ";J.push(L)}}}H=J.length;for(var I=0;I=0){var K=A[RegExp.$1];K=K.replace(/\$/g,"$$$$");J[I]=J[I].replace(/~K\d+K/,K)}}return J.join("\n\n")};var h=function(H){H=H.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&");H=H.replace(/<(?![a-z\/?\$!])/gi,"<");return H};var e=function(H){H=H.replace(/\\(\\)/g,k);H=H.replace(/\\([`*_{}\[\]()>#+-.!])/g,k);return H};var n=function(H){H=H.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,'
    $1');H=H.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,function(I,J){return B(q(J))});return H};var B=function(J){function I(L){var K="0123456789ABCDEF";var M=L.charCodeAt(0);return(K.charAt(M>>4)+K.charAt(M&15))}var H=[function(K){return"&#"+K.charCodeAt(0)+";"},function(K){return"&#x"+I(K)+";"},function(K){return K}];J="mailto:"+J;J=J.replace(/./g,function(K){if(K=="@"){K=H[Math.floor(Math.random()*2)](K)}else{if(K!=":"){var L=Math.random();K=(L>0.9?H[2](K):L>0.45?H[1](K):H[0](K))}}return K});J=''+J+"";J=J.replace(/">.+:/g,'">');return J};var q=function(H){H=H.replace(/~E(\d+)E/g,function(I,K){var J=parseInt(K);return String.fromCharCode(J)});return H};var s=function(H){H=H.replace(/^(\t|[ ]{1,4})/gm,"~0");H=H.replace(/~0/g,"");return H};var z=function(H){H=H.replace(/\t(?=\t)/g," ");H=H.replace(/\t/g,"~A~B");H=H.replace(/~B(.+?)~A/g,function(I,L,K){var N=L;var J=4-N.length%4;for(var M=0;M -// -// The full source distribution is at: -// -// A A L -// T C A -// T K B -// -// -// - -// -// Wherever possible, Showdown is a straight, line-by-line port -// of the Perl version of Markdown. -// -// This is not a normal parser design; it's basically just a -// series of string substitutions. It's hard to read and -// maintain this way, but keeping Showdown close to the original -// design makes it easier to port new features. -// -// More importantly, Showdown behaves like markdown.pl in most -// edge cases. So web applications can do client-side preview -// in Javascript, and then build identical HTML on the server. -// -// This port needs the new RegExp functionality of ECMA 262, -// 3rd Edition (i.e. Javascript 1.5). Most modern web browsers -// should do fine. Even with the new regular expression features, -// We do a lot of work to emulate Perl's regex functionality. -// The tricky changes in this file mostly have the "attacklab:" -// label. Major or self-explanatory changes don't. -// -// Smart diff tools like Araxis Merge will be able to match up -// this file with markdown.pl in a useful way. A little tweaking -// helps: in a copy of markdown.pl, replace "#" with "//" and -// replace "$text" with "text". Be sure to ignore whitespace -// and line endings. -// - - -// -// Showdown usage: -// -// var text = "Markdown *rocks*."; -// -// var converter = new Attacklab.showdown.converter(); -// var html = converter.makeHtml(text); -// -// alert(html); -// -// Note: move the sample code to the bottom of this -// file before uncommenting it. -// - - -// -// Attacklab namespace -// -var Attacklab = Attacklab || {} - -// -// Showdown namespace -// -Attacklab.showdown = Attacklab.showdown || {} - -// -// converter -// -// Wraps all "globals" so that the only thing -// exposed is makeHtml(). -// -Attacklab.showdown.converter = function() { - -// -// Globals: -// - -// Global hashes, used by various utility routines -var g_urls; -var g_titles; -var g_html_blocks; - -// Used to track when we're inside an ordered or unordered list -// (see _ProcessListItems() for details): -var g_list_level = 0; - - -this.makeHtml = function(text) { -// -// Main function. The order in which other subs are called here is -// essential. Link and image substitutions need to happen before -// _EscapeSpecialCharsWithinTagAttributes(), so that any *'s or _'s in the -// and tags get encoded. -// - - // Clear the global hashes. If we don't clear these, you get conflicts - // from other articles when generating a page which contains more than - // one article (e.g. an index page that shows the N most recent - // articles): - g_urls = new Array(); - g_titles = new Array(); - g_html_blocks = new Array(); - - // attacklab: Replace ~ with ~T - // This lets us use tilde as an escape char to avoid md5 hashes - // The choice of character is arbitray; anything that isn't - // magic in Markdown will work. - text = text.replace(/~/g,"~T"); - - // attacklab: Replace $ with ~D - // RegExp interprets $ as a special character - // when it's in a replacement string - text = text.replace(/\$/g,"~D"); - - // Standardize line endings - text = text.replace(/\r\n/g,"\n"); // DOS to Unix - text = text.replace(/\r/g,"\n"); // Mac to Unix - - // Make sure text begins and ends with a couple of newlines: - text = "\n\n" + text + "\n\n"; - - // Convert all tabs to spaces. - text = _Detab(text); - - // Strip any lines consisting only of spaces and tabs. - // This makes subsequent regexen easier to write, because we can - // match consecutive blank lines with /\n+/ instead of something - // contorted like /[ \t]*\n+/ . - text = text.replace(/^[ \t]+$/mg,""); - - // Turn block-level HTML blocks into hash entries - text = _HashHTMLBlocks(text); - - // Strip link definitions, store in hashes. - text = _StripLinkDefinitions(text); - - text = _RunBlockGamut(text); - - text = _UnescapeSpecialChars(text); - - // attacklab: Restore dollar signs - text = text.replace(/~D/g,"$$"); - - // attacklab: Restore tildes - text = text.replace(/~T/g,"~"); - - return text; -} - -var _StripLinkDefinitions = function(text) { -// -// Strips link definitions from text, stores the URLs and titles in -// hash references. -// - - // Link defs are in the form: ^[id]: url "optional title" - - /* - var text = text.replace(/ - ^[ ]{0,3}\[(.+)\]: // id = $1 attacklab: g_tab_width - 1 - [ \t]* - \n? // maybe *one* newline - [ \t]* - ? // url = $2 - [ \t]* - \n? // maybe one newline - [ \t]* - (?: - (\n*) // any lines skipped = $3 attacklab: lookbehind removed - ["(] - (.+?) // title = $4 - [")] - [ \t]* - )? // title is optional - (?:\n+|$) - /gm, - function(){...}); - */ - var text = text.replace(/^[ ]{0,3}\[(.+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+)/gm, - function (wholeMatch,m1,m2,m3,m4) { - m1 = m1.toLowerCase(); - g_urls[m1] = _EncodeAmpsAndAngles(m2); // Link IDs are case-insensitive - if (m3) { - // Oops, found blank lines, so it's not a title. - // Put back the parenthetical statement we stole. - return m3+m4; - } else if (m4) { - g_titles[m1] = m4.replace(/"/g,"""); - } - - // Completely remove the definition from the text - return ""; - } - ); - - return text; -} - -var _HashHTMLBlocks = function(text) { - // attacklab: Double up blank lines to reduce lookaround - text = text.replace(/\n/g,"\n\n"); - - // Hashify HTML blocks: - // We only want to do this for block-level HTML tags, such as headers, - // lists, and tables. That's because we still want to wrap

    s around - // "paragraphs" that are wrapped in non-block-level tags, such as anchors, - // phrase emphasis, and spans. The list of tags we're looking for is - // hard-coded: - var block_tags_a = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del" - var block_tags_b = "p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math" - - // First, look for nested blocks, e.g.: - //

    - //
    - // tags for inner block must be indented. - //
    - //
    - // - // The outermost tags must start at the left margin for this to match, and - // the inner nested divs must be indented. - // We need to do this before the next, more liberal match, because the next - // match will start at the first `
    ` and stop at the first `
    `. - - // attacklab: This regex can be expensive when it fails. - /* - var text = text.replace(/ - ( // save in $1 - ^ // start of line (with /m) - <($block_tags_a) // start tag = $2 - \b // word break - // attacklab: hack around khtml/pcre bug... - [^\r]*?\n // any number of lines, minimally matching - // the matching end tag - [ \t]* // trailing spaces/tabs - (?=\n+) // followed by a newline - ) // attacklab: there are sentinel newlines at end of document - /gm,function(){...}}; - */ - text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math|ins|del)\b[^\r]*?\n<\/\2>[ \t]*(?=\n+))/gm,hashElement); - - // - // Now match more liberally, simply from `\n` to `\n` - // - - /* - var text = text.replace(/ - ( // save in $1 - ^ // start of line (with /m) - <($block_tags_b) // start tag = $2 - \b // word break - // attacklab: hack around khtml/pcre bug... - [^\r]*? // any number of lines, minimally matching - .* // the matching end tag - [ \t]* // trailing spaces/tabs - (?=\n+) // followed by a newline - ) // attacklab: there are sentinel newlines at end of document - /gm,function(){...}}; - */ - text = text.replace(/^(<(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul|script|noscript|form|fieldset|iframe|math)\b[^\r]*?.*<\/\2>[ \t]*(?=\n+)\n)/gm,hashElement); - - // Special case just for
    . It was easier to make a special case than - // to make the other regex more complicated. - - /* - text = text.replace(/ - ( // save in $1 - \n\n // Starting after a blank line - [ ]{0,3} - (<(hr) // start tag = $2 - \b // word break - ([^<>])*? // - \/?>) // the matching end tag - [ \t]* - (?=\n{2,}) // followed by a blank line - ) - /g,hashElement); - */ - text = text.replace(/(\n[ ]{0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,hashElement); - - // Special case for standalone HTML comments: - - /* - text = text.replace(/ - ( // save in $1 - \n\n // Starting after a blank line - [ ]{0,3} // attacklab: g_tab_width - 1 - - [ \t]* - (?=\n{2,}) // followed by a blank line - ) - /g,hashElement); - */ - text = text.replace(/(\n\n[ ]{0,3}[ \t]*(?=\n{2,}))/g,hashElement); - - // PHP and ASP-style processor instructions ( and <%...%>) - - /* - text = text.replace(/ - (?: - \n\n // Starting after a blank line - ) - ( // save in $1 - [ ]{0,3} // attacklab: g_tab_width - 1 - (?: - <([?%]) // $2 - [^\r]*? - \2> - ) - [ \t]* - (?=\n{2,}) // followed by a blank line - ) - /g,hashElement); - */ - text = text.replace(/(?:\n\n)([ ]{0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,hashElement); - - // attacklab: Undo double lines (see comment at top of this function) - text = text.replace(/\n\n/g,"\n"); - return text; -} - -var hashElement = function(wholeMatch,m1) { - var blockText = m1; - - // Undo double lines - blockText = blockText.replace(/\n\n/g,"\n"); - blockText = blockText.replace(/^\n/,""); - - // strip trailing blank lines - blockText = blockText.replace(/\n+$/g,""); - - // Replace the element text with a marker ("~KxK" where x is its key) - blockText = "\n\n~K" + (g_html_blocks.push(blockText)-1) + "K\n\n"; - - return blockText; -}; - -var _RunBlockGamut = function(text) { -// -// These are all the transformations that form block-level -// tags like paragraphs, headers, and list items. -// - text = _DoHeaders(text); - - // Do Horizontal Rules: - var key = hashBlock("
    "); - text = text.replace(/^[ ]{0,2}([ ]?\*[ ]?){3,}[ \t]*$/gm,key); - text = text.replace(/^[ ]{0,2}([ ]?-[ ]?){3,}[ \t]*$/gm,key); - text = text.replace(/^[ ]{0,2}([ ]?_[ ]?){3,}[ \t]*$/gm,key); - - text = _DoLists(text); - text = _DoCodeBlocks(text); - text = _DoBlockQuotes(text); - - // We already ran _HashHTMLBlocks() before, in Markdown(), but that - // was to escape raw HTML in the original Markdown source. This time, - // we're escaping the markup we've just created, so that we don't wrap - //

    tags around block-level tags. - text = _HashHTMLBlocks(text); - text = _FormParagraphs(text); - - return text; -} - - -var _RunSpanGamut = function(text) { -// -// These are all the transformations that occur *within* block-level -// tags like paragraphs, headers, and list items. -// - - text = _DoCodeSpans(text); - text = _EscapeSpecialCharsWithinTagAttributes(text); - text = _EncodeBackslashEscapes(text); - - // Process anchor and image tags. Images must come first, - // because ![foo][f] looks like an anchor. - text = _DoImages(text); - text = _DoAnchors(text); - - // Make links out of things like `` - // Must come after _DoAnchors(), because you can use < and > - // delimiters in inline links like [this](). - text = _DoAutoLinks(text); - text = _EncodeAmpsAndAngles(text); - text = _DoItalicsAndBold(text); - - // Do hard breaks: - text = text.replace(/ +\n/g,"
    \n"); - - return text; -} - -var _EscapeSpecialCharsWithinTagAttributes = function(text) { -// -// Within tags -- meaning between < and > -- encode [\ ` * _] so they -// don't conflict with their use in Markdown for code, italics and strong. -// - - // Build a regex to find HTML tags and comments. See Friedl's - // "Mastering Regular Expressions", 2nd Ed., pp. 200-201. - var regex = /(<[a-z\/!$]("[^"]*"|'[^']*'|[^'">])*>|)/gi; - - text = text.replace(regex, function(wholeMatch) { - var tag = wholeMatch.replace(/(.)<\/?code>(?=.)/g,"$1`"); - tag = escapeCharacters(tag,"\\`*_"); - return tag; - }); - - return text; -} - -var _DoAnchors = function(text) { -// -// Turn Markdown link shortcuts into XHTML
    tags. -// - // - // First, handle reference-style links: [link text] [id] - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - \[ - ( - (?: - \[[^\]]*\] // allow brackets nested one level - | - [^\[] // or anything else - )* - ) - \] - - [ ]? // one optional space - (?:\n[ ]*)? // one optional newline followed by spaces - - \[ - (.*?) // id = $3 - \] - )()()()() // pad remaining backreferences - /g,_DoAnchors_callback); - */ - text = text.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,writeAnchorTag); - - // - // Next, inline-style links: [link text](url "optional title") - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - \[ - ( - (?: - \[[^\]]*\] // allow brackets nested one level - | - [^\[\]] // or anything else - ) - ) - \] - \( // literal paren - [ \t]* - () // no id, so leave $3 empty - ? // href = $4 - [ \t]* - ( // $5 - (['"]) // quote char = $6 - (.*?) // Title = $7 - \6 // matching quote - [ \t]* // ignore any spaces/tabs between closing quote and ) - )? // title is optional - \) - ) - /g,writeAnchorTag); - */ - text = text.replace(/(\[((?:\[[^\]]*\]|[^\[\]])*)\]\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,writeAnchorTag); - - // - // Last, handle reference-style shortcuts: [link text] - // These must come last in case you've also got [link test][1] - // or [link test](/foo) - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - \[ - ([^\[\]]+) // link text = $2; can't contain '[' or ']' - \] - )()()()()() // pad rest of backreferences - /g, writeAnchorTag); - */ - text = text.replace(/(\[([^\[\]]+)\])()()()()()/g, writeAnchorTag); - - return text; -} - -var writeAnchorTag = function(wholeMatch,m1,m2,m3,m4,m5,m6,m7) { - if (m7 == undefined) m7 = ""; - var whole_match = m1; - var link_text = m2; - var link_id = m3.toLowerCase(); - var url = m4; - var title = m7; - - if (url == "") { - if (link_id == "") { - // lower-case and turn embedded newlines into spaces - link_id = link_text.toLowerCase().replace(/ ?\n/g," "); - } - url = "#"+link_id; - - if (g_urls[link_id] != undefined) { - url = g_urls[link_id]; - if (g_titles[link_id] != undefined) { - title = g_titles[link_id]; - } - } - else { - if (whole_match.search(/\(\s*\)$/m)>-1) { - // Special case for explicit empty url - url = ""; - } else { - return whole_match; - } - } - } - - url = escapeCharacters(url,"*_"); - var result = ""; - - return result; -} - - -var _DoImages = function(text) { -// -// Turn Markdown image shortcuts into tags. -// - - // - // First, handle reference-style labeled images: ![alt text][id] - // - - /* - text = text.replace(/ - ( // wrap whole match in $1 - !\[ - (.*?) // alt text = $2 - \] - - [ ]? // one optional space - (?:\n[ ]*)? // one optional newline followed by spaces - - \[ - (.*?) // id = $3 - \] - )()()()() // pad rest of backreferences - /g,writeImageTag); - */ - text = text.replace(/(!\[(.*?)\][ ]?(?:\n[ ]*)?\[(.*?)\])()()()()/g,writeImageTag); - - // - // Next, handle inline images: ![alt text](url "optional title") - // Don't forget: encode * and _ - - /* - text = text.replace(/ - ( // wrap whole match in $1 - !\[ - (.*?) // alt text = $2 - \] - \s? // One optional whitespace character - \( // literal paren - [ \t]* - () // no id, so leave $3 empty - ? // src url = $4 - [ \t]* - ( // $5 - (['"]) // quote char = $6 - (.*?) // title = $7 - \6 // matching quote - [ \t]* - )? // title is optional - \) - ) - /g,writeImageTag); - */ - text = text.replace(/(!\[(.*?)\]\s?\([ \t]*()?[ \t]*((['"])(.*?)\6[ \t]*)?\))/g,writeImageTag); - - return text; -} - -var writeImageTag = function(wholeMatch,m1,m2,m3,m4,m5,m6,m7) { - var whole_match = m1; - var alt_text = m2; - var link_id = m3.toLowerCase(); - var url = m4; - var title = m7; - - if (!title) title = ""; - - if (url == "") { - if (link_id == "") { - // lower-case and turn embedded newlines into spaces - link_id = alt_text.toLowerCase().replace(/ ?\n/g," "); - } - url = "#"+link_id; - - if (g_urls[link_id] != undefined) { - url = g_urls[link_id]; - if (g_titles[link_id] != undefined) { - title = g_titles[link_id]; - } - } - else { - return whole_match; - } - } - - alt_text = alt_text.replace(/"/g,"""); - url = escapeCharacters(url,"*_"); - url = scriptUrl + url - var result = "\""" + _RunSpanGamut(m1) + "");}); - - text = text.replace(/^(.+)[ \t]*\n-+[ \t]*\n+/gm, - function(matchFound,m1){return hashBlock("

    " + _RunSpanGamut(m1) + "

    ");}); - - // atx-style headers: - // # Header 1 - // ## Header 2 - // ## Header 2 with closing hashes ## - // ... - // ###### Header 6 - // - - /* - text = text.replace(/ - ^(\#{1,6}) // $1 = string of #'s - [ \t]* - (.+?) // $2 = Header text - [ \t]* - \#* // optional closing #'s (not counted) - \n+ - /gm, function() {...}); - */ - - text = text.replace(/^(\#{1,6})[ \t]*(.+?)[ \t]*\#*\n+/gm, - function(wholeMatch,m1,m2) { - var h_level = m1.length; - return hashBlock("" + _RunSpanGamut(m2) + ""); - }); - - return text; -} - -// This declaration keeps Dojo compressor from outputting garbage: -var _ProcessListItems; - -var _DoLists = function(text) { -// -// Form HTML ordered (numbered) and unordered (bulleted) lists. -// - - // attacklab: add sentinel to hack around khtml/safari bug: - // http://bugs.webkit.org/show_bug.cgi?id=11231 - text += "~0"; - - // Re-usable pattern to match any entirel ul or ol list: - - /* - var whole_list = / - ( // $1 = whole list - ( // $2 - [ ]{0,3} // attacklab: g_tab_width - 1 - ([*+-]|\d+[.]) // $3 = first list item marker - [ \t]+ - ) - [^\r]+? - ( // $4 - ~0 // sentinel for workaround; should be $ - | - \n{2,} - (?=\S) - (?! // Negative lookahead for another list item marker - [ \t]* - (?:[*+-]|\d+[.])[ \t]+ - ) - ) - )/g - */ - var whole_list = /^(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm; - - if (g_list_level) { - text = text.replace(whole_list,function(wholeMatch,m1,m2) { - var list = m1; - var list_type = (m2.search(/[*+-]/g)>-1) ? "ul" : "ol"; - - // Turn double returns into triple returns, so that we can make a - // paragraph for the last item in a list, if necessary: - list = list.replace(/\n{2,}/g,"\n\n\n");; - var result = _ProcessListItems(list); - - // Trim any trailing whitespace, to put the closing `` - // up on the preceding line, to get it past the current stupid - // HTML block parser. This is a hack to work around the terrible - // hack that is the HTML block parser. - result = result.replace(/\s+$/,""); - result = "<"+list_type+">" + result + "\n"; - return result; - }); - } else { - whole_list = /(\n\n|^\n?)(([ ]{0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(~0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/g; - text = text.replace(whole_list,function(wholeMatch,m1,m2,m3) { - var runup = m1; - var list = m2; - - var list_type = (m3.search(/[*+-]/g)>-1) ? "ul" : "ol"; - // Turn double returns into triple returns, so that we can make a - // paragraph for the last item in a list, if necessary: - var list = list.replace(/\n{2,}/g,"\n\n\n");; - var result = _ProcessListItems(list); - result = runup + "<"+list_type+">\n" + result + "\n"; - return result; - }); - } - - // attacklab: strip sentinel - text = text.replace(/~0/,""); - - return text; -} - -_ProcessListItems = function(list_str) { -// -// Process the contents of a single ordered or unordered list, splitting it -// into individual list items. -// - // The $g_list_level global keeps track of when we're inside a list. - // Each time we enter a list, we increment it; when we leave a list, - // we decrement. If it's zero, we're not in a list anymore. - // - // We do this because when we're not inside a list, we want to treat - // something like this: - // - // I recommend upgrading to version - // 8. Oops, now this line is treated - // as a sub-list. - // - // As a single paragraph, despite the fact that the second line starts - // with a digit-period-space sequence. - // - // Whereas when we're inside a list (or sub-list), that line will be - // treated as the start of a sub-list. What a kludge, huh? This is - // an aspect of Markdown's syntax that's hard to parse perfectly - // without resorting to mind-reading. Perhaps the solution is to - // change the syntax rules such that sub-lists must start with a - // starting cardinal number; e.g. "1." or "a.". - - g_list_level++; - - // trim trailing blank lines: - list_str = list_str.replace(/\n{2,}$/,"\n"); - - // attacklab: add sentinel to emulate \z - list_str += "~0"; - - /* - list_str = list_str.replace(/ - (\n)? // leading line = $1 - (^[ \t]*) // leading whitespace = $2 - ([*+-]|\d+[.]) [ \t]+ // list marker = $3 - ([^\r]+? // list item text = $4 - (\n{1,2})) - (?= \n* (~0 | \2 ([*+-]|\d+[.]) [ \t]+)) - /gm, function(){...}); - */ - list_str = list_str.replace(/(\n)?(^[ \t]*)([*+-]|\d+[.])[ \t]+([^\r]+?(\n{1,2}))(?=\n*(~0|\2([*+-]|\d+[.])[ \t]+))/gm, - function(wholeMatch,m1,m2,m3,m4){ - var item = m4; - var leading_line = m1; - var leading_space = m2; - - if (leading_line || (item.search(/\n{2,}/)>-1)) { - item = _RunBlockGamut(_Outdent(item)); - } - else { - // Recursion for sub-lists: - item = _DoLists(_Outdent(item)); - item = item.replace(/\n$/,""); // chomp(item) - item = _RunSpanGamut(item); - } - - return "
  • " + item + "
  • \n"; - } - ); - - // attacklab: strip sentinel - list_str = list_str.replace(/~0/g,""); - - g_list_level--; - return list_str; -} - - -var _DoCodeBlocks = function(text) { -// -// Process Markdown `
    ` blocks.
    -//  
    -
    -	/*
    -		text = text.replace(text,
    -			/(?:\n\n|^)
    -			(								// $1 = the code block -- one or more lines, starting with a space/tab
    -				(?:
    -					(?:[ ]{4}|\t)			// Lines must start with a tab or a tab-width of spaces - attacklab: g_tab_width
    -					.*\n+
    -				)+
    -			)
    -			(\n*[ ]{0,3}[^ \t\n]|(?=~0))	// attacklab: g_tab_width
    -		/g,function(){...});
    -	*/
    -
    -	// attacklab: sentinel workarounds for lack of \A and \Z, safari\khtml bug
    -	text += "~0";
    -	
    -	text = text.replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=~0))/g,
    -		function(wholeMatch,m1,m2) {
    -			var codeblock = m1;
    -			var nextChar = m2;
    -		
    -			codeblock = _EncodeCode( _Outdent(codeblock));
    -			codeblock = _Detab(codeblock);
    -			codeblock = codeblock.replace(/^\n+/g,""); // trim leading newlines
    -			codeblock = codeblock.replace(/\n+$/g,""); // trim trailing whitespace
    -
    -			codeblock = "
    " + codeblock + "\n
    "; - - return hashBlock(codeblock) + nextChar; - } - ); - - // attacklab: strip sentinel - text = text.replace(/~0/,""); - - return text; -} - -var hashBlock = function(text) { - text = text.replace(/(^\n+|\n+$)/g,""); - return "\n\n~K" + (g_html_blocks.push(text)-1) + "K\n\n"; -} - - -var _DoCodeSpans = function(text) { -// -// * Backtick quotes are used for spans. -// -// * You can use multiple backticks as the delimiters if you want to -// include literal backticks in the code span. So, this input: -// -// Just type ``foo `bar` baz`` at the prompt. -// -// Will translate to: -// -//

    Just type foo `bar` baz at the prompt.

    -// -// There's no arbitrary limit to the number of backticks you -// can use as delimters. If you need three consecutive backticks -// in your code, use four for delimiters, etc. -// -// * You can use spaces to get literal backticks at the edges: -// -// ... type `` `bar` `` ... -// -// Turns to: -// -// ... type `bar` ... -// - - /* - text = text.replace(/ - (^|[^\\]) // Character before opening ` can't be a backslash - (`+) // $2 = Opening run of ` - ( // $3 = The code block - [^\r]*? - [^`] // attacklab: work around lack of lookbehind - ) - \2 // Matching closer - (?!`) - /gm, function(){...}); - */ - - text = text.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm, - function(wholeMatch,m1,m2,m3,m4) { - var c = m3; - c = c.replace(/^([ \t]*)/g,""); // leading whitespace - c = c.replace(/[ \t]*$/g,""); // trailing whitespace - c = _EncodeCode(c); - return m1+""+c+""; - }); - - return text; -} - - -var _EncodeCode = function(text) { -// -// Encode/escape certain characters inside Markdown code runs. -// The point is that in code, these characters are literals, -// and lose their special Markdown meanings. -// - // Encode all ampersands; HTML entities are not - // entities within a Markdown code span. - text = text.replace(/&/g,"&"); - - // Do the angle bracket song and dance: - text = text.replace(//g,">"); - - // Now, escape characters that are magic in Markdown: - text = escapeCharacters(text,"\*_{}[]\\",false); - -// jj the line above breaks this: -//--- - -//* Item - -// 1. Subitem - -// special char: * -//--- - - return text; -} - - -var _DoItalicsAndBold = function(text) { - - // must go first: - text = text.replace(/(\*\*|__)(?=\S)([^\r]*?\S[\*_]*)\1/g, - "$2"); - - text = text.replace(/(\*|_)(?=\S)([^\r]*?\S)\1/g, - "$2"); - - return text; -} - - -var _DoBlockQuotes = function(text) { - - /* - text = text.replace(/ - ( // Wrap whole match in $1 - ( - ^[ \t]*>[ \t]? // '>' at the start of a line - .+\n // rest of the first line - (.+\n)* // subsequent consecutive lines - \n* // blanks - )+ - ) - /gm, function(){...}); - */ - - text = text.replace(/((^[ \t]*>[ \t]?.+\n(.+\n)*\n*)+)/gm, - function(wholeMatch,m1) { - var bq = m1; - - // attacklab: hack around Konqueror 3.5.4 bug: - // "----------bug".replace(/^-/g,"") == "bug" - - bq = bq.replace(/^[ \t]*>[ \t]?/gm,"~0"); // trim one level of quoting - - // attacklab: clean up hack - bq = bq.replace(/~0/g,""); - - bq = bq.replace(/^[ \t]+$/gm,""); // trim whitespace-only lines - bq = _RunBlockGamut(bq); // recurse - - bq = bq.replace(/(^|\n)/g,"$1 "); - // These leading spaces screw with
     content, so we need to fix that:
    -			bq = bq.replace(
    -					/(\s*
    [^\r]+?<\/pre>)/gm,
    -				function(wholeMatch,m1) {
    -					var pre = m1;
    -					// attacklab: hack around Konqueror 3.5.4 bug:
    -					pre = pre.replace(/^  /mg,"~0");
    -					pre = pre.replace(/~0/g,"");
    -					return pre;
    -				});
    -			
    -			return hashBlock("
    \n" + bq + "\n
    "); - }); - return text; -} - - -var _FormParagraphs = function(text) { -// -// Params: -// $text - string to process with html

    tags -// - - // Strip leading and trailing lines: - text = text.replace(/^\n+/g,""); - text = text.replace(/\n+$/g,""); - - var grafs = text.split(/\n{2,}/g); - var grafsOut = new Array(); - - // - // Wrap

    tags. - // - var end = grafs.length; - for (var i=0; i= 0) { - grafsOut.push(str); - } - else if (str.search(/\S/) >= 0) { - str = _RunSpanGamut(str); - str = str.replace(/^([ \t]*)/g,"

    "); - str += "

    " - grafsOut.push(str); - } - - } - - // - // Unhashify HTML blocks - // - end = grafsOut.length; - for (var i=0; i= 0) { - var blockText = g_html_blocks[RegExp.$1]; - blockText = blockText.replace(/\$/g,"$$$$"); // Escape any dollar signs - grafsOut[i] = grafsOut[i].replace(/~K\d+K/,blockText); - } - } - - return grafsOut.join("\n\n"); -} - - -var _EncodeAmpsAndAngles = function(text) { -// Smart processing for ampersands and angle brackets that need to be encoded. - - // Ampersand-encoding based entirely on Nat Irons's Amputator MT plugin: - // http://bumppo.net/projects/amputator/ - text = text.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&"); - - // Encode naked <'s - text = text.replace(/<(?![a-z\/?\$!])/gi,"<"); - - return text; -} - - -var _EncodeBackslashEscapes = function(text) { -// -// Parameter: String. -// Returns: The string, with after processing the following backslash -// escape sequences. -// - - // attacklab: The polite way to do this is with the new - // escapeCharacters() function: - // - // text = escapeCharacters(text,"\\",true); - // text = escapeCharacters(text,"`*_{}[]()>#+-.!",true); - // - // ...but we're sidestepping its use of the (slow) RegExp constructor - // as an optimization for Firefox. This function gets called a LOT. - - text = text.replace(/\\(\\)/g,escapeCharacters_callback); - text = text.replace(/\\([`*_{}\[\]()>#+-.!])/g,escapeCharacters_callback); - return text; -} - - -var _DoAutoLinks = function(text) { - - text = text.replace(/<((https?|ftp|dict):[^'">\s]+)>/gi,"
    $1"); - - // Email addresses: - - /* - text = text.replace(/ - < - (?:mailto:)? - ( - [-.\w]+ - \@ - [-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+ - ) - > - /gi, _DoAutoLinks_callback()); - */ - text = text.replace(/<(?:mailto:)?([-.\w]+\@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi, - function(wholeMatch,m1) { - return _EncodeEmailAddress( _UnescapeSpecialChars(m1) ); - } - ); - - return text; -} - - -var _EncodeEmailAddress = function(addr) { -// -// Input: an email address, e.g. "foo@example.com" -// -// Output: the email address as a mailto link, with each character -// of the address encoded as either a decimal or hex entity, in -// the hopes of foiling most address harvesting spam bots. E.g.: -// -// foo -// @example.com -// -// Based on a filter by Matthew Wickline, posted to the BBEdit-Talk -// mailing list: -// - - // attacklab: why can't javascript speak hex? - function char2hex(ch) { - var hexDigits = '0123456789ABCDEF'; - var dec = ch.charCodeAt(0); - return(hexDigits.charAt(dec>>4) + hexDigits.charAt(dec&15)); - } - - var encode = [ - function(ch){return "&#"+ch.charCodeAt(0)+";";}, - function(ch){return "&#x"+char2hex(ch)+";";}, - function(ch){return ch;} - ]; - - addr = "mailto:" + addr; - - addr = addr.replace(/./g, function(ch) { - if (ch == "@") { - // this *must* be encoded. I insist. - ch = encode[Math.floor(Math.random()*2)](ch); - } else if (ch !=":") { - // leave ':' alone (to spot mailto: later) - var r = Math.random(); - // roughly 10% raw, 45% hex, 45% dec - ch = ( - r > .9 ? encode[2](ch) : - r > .45 ? encode[1](ch) : - encode[0](ch) - ); - } - return ch; - }); - - addr = "" + addr + ""; - addr = addr.replace(/">.+:/g,"\">"); // strip the mailto: from the visible part - - return addr; -} - - -var _UnescapeSpecialChars = function(text) { -// -// Swap back in all the special characters we've hidden. -// - text = text.replace(/~E(\d+)E/g, - function(wholeMatch,m1) { - var charCodeToReplace = parseInt(m1); - return String.fromCharCode(charCodeToReplace); - } - ); - return text; -} - - -var _Outdent = function(text) { -// -// Remove one level of line-leading tabs or spaces -// - - // attacklab: hack around Konqueror 3.5.4 bug: - // "----------bug".replace(/^-/g,"") == "bug" - - text = text.replace(/^(\t|[ ]{1,4})/gm,"~0"); // attacklab: g_tab_width - - // attacklab: clean up hack - text = text.replace(/~0/g,"") - - return text; -} - -var _Detab = function(text) { -// attacklab: Detab's completely rewritten for speed. -// In perl we could fix it by anchoring the regexp with \G. -// In javascript we're less fortunate. - - // expand first n-1 tabs - text = text.replace(/\t(?=\t)/g," "); // attacklab: g_tab_width - - // replace the nth with two sentinels - text = text.replace(/\t/g,"~A~B"); - - // use the sentinel to anchor our regex so it doesn't explode - text = text.replace(/~B(.+?)~A/g, - function(wholeMatch,m1,m2) { - var leadingText = m1; - var numSpaces = 4 - leadingText.length % 4; // attacklab: g_tab_width - - // there *must* be a better way to do this: - for (var i=0; i";var D="

    输入Web地址

    示例:
    http://www.cnprog.com/ \"我的网站\"

    ";var n='
    或者上传本地图片:

    ';var b="http://";var g="http://";var o="images/";var A=500;var x=100;var k="http://wmd-editor.com/";var r="WMD website";var w="_blank";y.PanelCollection=function(){this.buttonBar=E.getElementById("wmd-button-bar");this.preview=E.getElementById("previewer");this.output=E.getElementById("wmd-output");this.input=E.getElementById("editor")};y.panels=undefined;y.ieCachedRange=null;y.ieRetardedClick=false;a.isVisible=function(F){if(window.getComputedStyle){return window.getComputedStyle(F,null).getPropertyValue("display")!=="none"}else{if(F.currentStyle){return F.currentStyle.display!=="none"}}};a.addEvent=function(G,F,H){if(G.attachEvent){G.attachEvent("on"+F,H)}else{G.addEventListener(F,H,false)}};a.removeEvent=function(G,F,H){if(G.detachEvent){G.detachEvent("on"+F,H)}else{G.removeEventListener(F,H,false)}};a.fixEolChars=function(F){F=F.replace(/\r\n/g,"\n");F=F.replace(/\r/g,"\n");return F};a.extendRegExp=function(H,J,G){if(J===null||J===undefined){J=""}if(G===null||G===undefined){G=""}var I=H.toString();var F;I=I.replace(/\/([gim]*)$/,"");F=s.$1;I=I.replace(/(^\/|\/$)/g,"");I=J+I+G;return new s(I,F)};a.createImage=function(F){var H=o+F;var G=E.createElement("img");G.className="wmd-button";G.src=H;return G};a.prompt=function(M,P,H){var I;var F;var K;var J=0;if(arguments.length==4){J=arguments[3]}if(P===undefined){P=""}var L=function(Q){var R=(Q.charCode||Q.keyCode);if(R===27){N(true)}};var N=function(Q){a.removeEvent(E.body,"keydown",L);var R=K.value;if(Q){R=null}else{R=R.replace("http://http://","http://");R=R.replace("http://https://","https://");R=R.replace("http://ftp://","ftp://");if(R.indexOf("http://")===-1&&R.indexOf("ftp://")===-1){R="http://"+R}}I.parentNode.removeChild(I);F.parentNode.removeChild(F);H(R);return false};var G=function(){F=E.createElement("div");F.className="wmd-prompt-background";style=F.style;style.position="absolute";style.top="0";style.zIndex="1000";if(v.isKonqueror){style.backgroundColor="transparent"}else{if(v.isIE){style.filter="alpha(opacity=50)"}else{style.opacity="0.5"}}var Q=C.getPageSize();style.height=Q[1]+"px";if(v.isIE){style.left=E.documentElement.scrollLeft;style.width=E.documentElement.clientWidth}else{style.left="0";style.width="100%"}E.body.appendChild(F)};var O=function(){I=E.createElement("div");I.className="wmd-prompt-dialog";I.style.padding="10px;";I.style.position="fixed";I.style.width="400px";I.style.zIndex="1001";var Q=E.createElement("div");Q.innerHTML=M;Q.style.padding="5px";I.appendChild(Q);var S=E.createElement("form");S.onsubmit=function(){return N(false)};style=S.style;style.padding="0";style.margin="0";style.cssFloat="left";style.width="100%";style.textAlign="center";style.position="relative";I.appendChild(S);K=E.createElement("input");if(J==1){K.id="image-url"}K.type="text";K.value=P;style=K.style;style.display="block";style.width="80%";style.marginLeft=style.marginRight="auto";S.appendChild(K);if(J==1){var R=E.createElement("div");R.innerHTML=n;R.style.padding="5px";S.appendChild(R)}var U=E.createElement("input");U.type="button";U.onclick=function(){return N(false)};U.value="OK";style=U.style;style.margin="10px";style.display="inline";style.width="7em";var T=E.createElement("input");T.type="button";T.onclick=function(){return N(true)};T.value="Cancel";style=T.style;style.margin="10px";style.display="inline";style.width="7em";if(/mac/.test(l.platform.toLowerCase())){S.appendChild(T);S.appendChild(U)}else{S.appendChild(U);S.appendChild(T)}a.addEvent(E.body,"keydown",L);I.style.top="50%";I.style.left="50%";I.style.display="block";if(v.isIE_5or6){I.style.position="absolute";I.style.top=E.documentElement.scrollTop+200+"px";I.style.left="50%"}E.body.appendChild(I);I.style.marginTop=-(C.getHeight(I)/2)+"px";I.style.marginLeft=-(C.getWidth(I)/2)+"px"};G();top.setTimeout(function(){O();var R=P.length;if(K.selectionStart!==undefined){K.selectionStart=0;K.selectionEnd=R}else{if(K.createTextRange){var Q=K.createTextRange();Q.collapse(false);Q.moveStart("character",-R);Q.moveEnd("character",R);Q.select()}}K.focus()},0)};C.getTop=function(H,G){var F=H.offsetTop;if(!G){while(H=H.offsetParent){F+=H.offsetTop}}return F};C.getHeight=function(F){return F.offsetHeight||F.scrollHeight};C.getWidth=function(F){return F.offsetWidth||F.scrollWidth};C.getPageSize=function(){var G,H;var F,K;if(self.innerHeight&&self.scrollMaxY){G=E.body.scrollWidth;H=self.innerHeight+self.scrollMaxY}else{if(E.body.scrollHeight>E.body.offsetHeight){G=E.body.scrollWidth;H=E.body.scrollHeight}else{G=E.body.offsetWidth;H=E.body.offsetHeight}}if(self.innerHeight){F=self.innerWidth;K=self.innerHeight}else{if(E.documentElement&&E.documentElement.clientHeight){F=E.documentElement.clientWidth;K=E.documentElement.clientHeight}else{if(E.body){F=E.body.clientWidth;K=E.body.clientHeight}}}var J=Math.max(G,F);var I=Math.max(H,K);return[J,I,F,K]};y.inputPoller=function(O,H){var F=this;var K=y.panels.input;var G;var I;var L;var J;this.tick=function(){if(!a.isVisible(K)){return}if(K.selectionStart||K.selectionStart===0){var Q=K.selectionStart;var P=K.selectionEnd;if(Q!=G||P!=I){G=Q;I=P;if(L!=K.value){L=K.value;return true}}}return false};var N=function(){if(!a.isVisible(K)){return}if(F.tick()){O()}};var M=function(){J=top.setInterval(N,H)};this.destroy=function(){top.clearInterval(J)};M()};y.undoManager=function(Q){var U=this;var O=[];var M=0;var L="none";var G;var R;var H;var K;var F=function(W,V){if(L!=W){L=W;if(!V){I()}}if(!v.isIE||L!="moving"){H=top.setTimeout(N,1)}else{K=null}};var N=function(){K=new y.TextareaState();R.tick();H=undefined};this.setCommandMode=function(){L="command";I();H=top.setTimeout(N,0)};this.canUndo=function(){return M>1};this.canRedo=function(){if(O[M+1]){return true}return false};this.undo=function(){if(U.canUndo()){if(G){G.restore();G=null}else{O[M]=new y.TextareaState();O[--M].restore();if(Q){Q()}}}L="none";y.panels.input.focus();N()};this.redo=function(){if(U.canRedo()){O[++M].restore();if(Q){Q()}}L="none";y.panels.input.focus();N()};var I=function(){var V=K||new y.TextareaState();if(!V){return false}if(L=="moving"){if(!G){G=V}return}if(G){if(O[M-1].text!=G.text){O[M++]=G}G=null}O[M++]=V;O[M+1]=null;if(Q){Q()}};var P=function(V){var X=false;if(V.ctrlKey||V.metaKey){var W=V.charCode||V.keyCode;var Y=String.fromCharCode(W);switch(Y){case"y":U.redo();X=true;break;case"z":if(!V.shiftKey){U.undo()}else{U.redo()}X=true;break}}if(X){if(V.preventDefault){V.preventDefault()}if(top.event){top.event.returnValue=false}return}};var T=function(V){if(!V.ctrlKey&&!V.metaKey){var W=V.keyCode;if((W>=33&&W<=40)||(W>=63232&&W<=63235)){F("moving")}else{if(W==8||W==46||W==127){F("deleting")}else{if(W==13){F("newlines")}else{if(W==27){F("escape")}else{if((W<16||W>20)&&W!=91){F("typing")}}}}}}};var J=function(){a.addEvent(y.panels.input,"keypress",function(W){if((W.ctrlKey||W.metaKey)&&(W.keyCode==89||W.keyCode==90)){W.preventDefault()}});var V=function(){if(v.isIE||(K&&K.text!=y.panels.input.value)){if(H==undefined){L="paste";I();N()}}};R=new y.inputPoller(V,x);a.addEvent(y.panels.input,"keydown",P);a.addEvent(y.panels.input,"keydown",T);a.addEvent(y.panels.input,"mousedown",function(){F("moving")});y.panels.input.onpaste=V;y.panels.input.ondrop=V};var S=function(){J();N();I()};this.destroy=function(){if(R){R.destroy()}};S()};y.editor=function(O){if(!O){O=function(){}}var L=y.panels.input;var I=0;var P=this;var K;var R;var G;var M;var N;var U=function(W){L.focus();if(W.textOp){if(N){N.setCommandMode()}var Y=new y.TextareaState();if(!Y){return}var Z=Y.getChunks();var V=function(){L.focus();if(Z){Y.setChunks(Z)}Y.restore();O()};var X=W.textOp(Z,V);if(!X){V()}}if(W.execute){W.execute(P)}};var S=function(){if(N){F(document.getElementById("wmd-undo-button"),N.canUndo());F(document.getElementById("wmd-redo-button"),N.canRedo())}};var F=function(V,X){var Y="0px";var Z="-20px";var W="-40px";if(X){V.style.backgroundPosition=V.XShift+" "+Y;V.onmouseover=function(){this.style.backgroundPosition=this.XShift+" "+W};V.onmouseout=function(){this.style.backgroundPosition=this.XShift+" "+Y};if(v.isIE){V.onmousedown=function(){y.ieRetardedClick=true;y.ieCachedRange=document.selection.createRange()}}if(!V.isHelp){V.onclick=function(){if(this.onmouseout){this.onmouseout()}U(this);return false}}}else{V.style.backgroundPosition=V.XShift+" "+Z;V.onmouseover=V.onmouseout=V.onclick=function(){}}};var J=function(){var Z=document.getElementById("wmd-button-bar");var W="0px";var Y="-20px";var ae="-40px";var ak=document.createElement("ul");ak.id="wmd-button-row";ak=Z.appendChild(ak);var ad=document.createElement("li");ad.className="wmd-button";ad.id="wmd-bold-button";ad.title=c;ad.XShift="0px";ad.textOp=h.doBold;F(ad,true);ak.appendChild(ad);var ac=document.createElement("li");ac.className="wmd-button";ac.id="wmd-italic-button";ac.title=f;ac.XShift="-20px";ac.textOp=h.doItalic;F(ac,true);ak.appendChild(ac);var ah=document.createElement("li");ah.className="wmd-spacer";ah.id="wmd-spacer1";ak.appendChild(ah);var ai=document.createElement("li");ai.className="wmd-button";ai.id="wmd-link-button";ai.title=z;ai.XShift="-40px";ai.textOp=function(ap,aq){return h.doLinkOrImage(ap,aq,false)};F(ai,true);ak.appendChild(ai);var al=document.createElement("li");al.className="wmd-button";al.id="wmd-quote-button";al.title=u;al.XShift="-60px";al.textOp=h.doBlockquote;F(al,true);ak.appendChild(al);var am=document.createElement("li");am.className="wmd-button";am.id="wmd-code-button";am.title=e;am.XShift="-80px";am.textOp=h.doCode;F(am,true);ak.appendChild(am);var aa=document.createElement("li");aa.className="wmd-button";aa.id="wmd-image-button";aa.title=d;aa.XShift="-100px";aa.textOp=function(ap,aq){return h.doLinkOrImage(ap,aq,true)};F(aa,true);ak.appendChild(aa);var ag=document.createElement("li");ag.className="wmd-spacer";ag.id="wmd-spacer2";ak.appendChild(ag);var ab=document.createElement("li");ab.className="wmd-button";ab.id="wmd-olist-button";ab.title=q;ab.XShift="-120px";ab.textOp=function(ap,aq){h.doList(ap,aq,true)};F(ab,true);ak.appendChild(ab);var ao=document.createElement("li");ao.className="wmd-button";ao.id="wmd-ulist-button";ao.title=t;ao.XShift="-140px";ao.textOp=function(ap,aq){h.doList(ap,aq,false)};F(ao,true);ak.appendChild(ao);var aj=document.createElement("li");aj.className="wmd-button";aj.id="wmd-heading-button";aj.title=i;aj.XShift="-160px";aj.textOp=h.doHeading;F(aj,true);ak.appendChild(aj);var X=document.createElement("li");X.className="wmd-button";X.id="wmd-hr-button";X.title=p;X.XShift="-180px";X.textOp=h.doHorizontalRule;F(X,true);ak.appendChild(X);var af=document.createElement("li");af.className="wmd-spacer";af.id="wmd-spacer3";ak.appendChild(af);var V=document.createElement("li");V.className="wmd-button";V.id="wmd-undo-button";V.title=m;V.XShift="-200px";V.execute=function(ap){ap.undo()};F(V,true);ak.appendChild(V);var an=document.createElement("li");an.className="wmd-button";an.id="wmd-redo-button";an.title=j;if(/win/.test(l.platform.toLowerCase())){an.title=j}else{an.title="重做 - Ctrl+Shift+Z"}an.XShift="-220px";an.execute=function(ap){ap.redo()};F(an,true);ak.appendChild(an);S()};var H=function(){if(/\?noundo/.test(E.location.href)){y.nativeUndo=true}if(!y.nativeUndo){N=new y.undoManager(function(){O();S()})}J();var W="keydown";if(v.isOpera){W="keypress"}a.addEvent(L,W,function(Y){if(Y.ctrlKey||Y.metaKey){var Z=Y.charCode||Y.keyCode;var X=String.fromCharCode(Z).toLowerCase();if(Z===46){X=""}if(Z===190){X="."}switch(X){case"b":U(document.getElementById("wmd-bold-button"));break;case"i":U(document.getElementById("wmd-italic-button"));break;case"l":U(document.getElementById("wmd-link-button"));break;case".":U(document.getElementById("wmd-quote-button"));break;case"k":U(document.getElementById("wmd-code-button"));break;case"g":U(document.getElementById("wmd-image-button"));break;case"o":U(document.getElementById("wmd-olist-button"));break;case"u":U(document.getElementById("wmd-ulist-button"));break;case"h":U(document.getElementById("wmd-heading-button"));break;case"r":U(document.getElementById("wmd-hr-button"));break;case"y":U(document.getElementById("wmd-redo-button"));break;case"z":if(Y.shiftKey){U(document.getElementById("wmd-redo-button"))}else{U(document.getElementById("wmd-undo-button"))}break;default:return}if(Y.preventDefault){Y.preventDefault()}if(top.event){top.event.returnValue=false}}});a.addEvent(L,"keyup",function(X){if(X.shiftKey&&!X.ctrlKey&&!X.metaKey){var Y=X.charCode||X.keyCode;if(Y===13){fakeButton={};fakeButton.textOp=h.doAutoindent;U(fakeButton)}}});if(L.form){var V=L.form.onsubmit;L.form.onsubmit=function(){Q();if(V){return V.apply(this,arguments)}}}};var Q=function(){if(y.showdown){var V=new y.showdown.converter()}var W=L.value;var X=function(){L.value=W};if(!/markdown/.test(y.wmd_env.output.toLowerCase())){if(V){L.value=V.makeHtml(W);top.setTimeout(X,0)}}return true};this.undo=function(){if(N){N.undo()}};this.redo=function(){if(N){N.redo()}};var T=function(){H()};this.destroy=function(){if(N){N.destroy()}if(G.parentNode){G.parentNode.removeChild(G)}if(L){L.style.marginTop=""}top.clearInterval(M)};T()};y.TextareaState=function(){var F=this;var G=y.panels.input;this.init=function(){if(!a.isVisible(G)){return}this.setInputAreaSelectionStartEnd();this.scrollTop=G.scrollTop;if(!this.text&&G.selectionStart||G.selectionStart===0){this.text=G.value}};this.setInputAreaSelection=function(){if(!a.isVisible(G)){return}if(G.selectionStart!==undefined&&!v.isOpera){G.focus();G.selectionStart=F.start;G.selectionEnd=F.end;G.scrollTop=F.scrollTop}else{if(E.selection){if(E.activeElement&&E.activeElement!==G){return}G.focus();var H=G.createTextRange();H.moveStart("character",-G.value.length);H.moveEnd("character",-G.value.length);H.moveEnd("character",F.end);H.moveStart("character",F.start);H.select()}}};this.setInputAreaSelectionStartEnd=function(){if(G.selectionStart||G.selectionStart===0){F.start=G.selectionStart;F.end=G.selectionEnd}else{if(E.selection){F.text=a.fixEolChars(G.value);var K;if(y.ieRetardedClick&&y.ieCachedRange){K=y.ieCachedRange;y.ieRetardedClick=false}else{K=E.selection.createRange()}var L=a.fixEolChars(K.text);var J="\x07";var I=J+L+J;K.text=I;var M=a.fixEolChars(G.value);K.moveStart("character",-I.length);K.text=L;F.start=M.indexOf(J);F.end=M.lastIndexOf(J)-J.length;var H=F.text.length-a.fixEolChars(G.value).length;if(H){K.moveStart("character",-L.length);while(H--){L+="\n";F.end+=1}K.text=L}this.setInputAreaSelection()}}};this.restore=function(){if(F.text!=undefined&&F.text!=G.value){G.value=F.text}this.setInputAreaSelection();G.scrollTop=F.scrollTop};this.getChunks=function(){var H=new y.Chunks();H.before=a.fixEolChars(F.text.substring(0,F.start));H.startTag="";H.selection=a.fixEolChars(F.text.substring(F.start,F.end));H.endTag="";H.after=a.fixEolChars(F.text.substring(F.end));H.scrollTop=F.scrollTop;return H};this.setChunks=function(H){H.before=H.before+H.startTag;H.after=H.endTag+H.after;if(v.isOpera){H.before=H.before.replace(/\n/g,"\r\n");H.selection=H.selection.replace(/\n/g,"\r\n");H.after=H.after.replace(/\n/g,"\r\n")}this.start=H.before.length;this.end=H.before.length+H.selection.length;this.text=H.before+H.selection+H.after;this.scrollTop=H.scrollTop};this.init()};y.Chunks=function(){};y.Chunks.prototype.findTags=function(G,I){var F=this;var H;if(G){H=a.extendRegExp(G,"","$");this.before=this.before.replace(H,function(J){F.startTag=F.startTag+J;return""});H=a.extendRegExp(G,"^","");this.selection=this.selection.replace(H,function(J){F.startTag=F.startTag+J;return""})}if(I){H=a.extendRegExp(I,"","$");this.selection=this.selection.replace(H,function(J){F.endTag=J+F.endTag;return""});H=a.extendRegExp(I,"^","");this.after=this.after.replace(H,function(J){F.endTag=J+F.endTag;return""})}};y.Chunks.prototype.trimWhitespace=function(F){this.selection=this.selection.replace(/^(\s*)/,"");if(!F){this.before+=s.$1}this.selection=this.selection.replace(/(\s*)$/,"");if(!F){this.after=s.$1+this.after}};y.Chunks.prototype.skipLines=function(H,G,F){if(H===undefined){H=1}if(G===undefined){G=1}H++;G++;var I;var J;this.selection=this.selection.replace(/(^\n*)/,"");this.startTag=this.startTag+s.$1;this.selection=this.selection.replace(/(\n*$)/,"");this.endTag=this.endTag+s.$1;this.startTag=this.startTag.replace(/(^\n*)/,"");this.before=this.before+s.$1;this.endTag=this.endTag.replace(/(\n*$)/,"");this.after=this.after+s.$1;if(this.before){I=J="";while(H--){I+="\\n?";J+="\n"}if(F){I="\\n*"}this.before=this.before.replace(new s(I+"$",""),J)}if(this.after){I=J="";while(G--){I+="\\n?";J+="\n"}if(F){I="\\n*"}this.after=this.after.replace(new s(I,""),J)}};h.prefixes="(?:\\s{4,}|\\s*>|\\s*-\\s+|\\s*\\d+\\.|=|\\+|-|_|\\*|#|\\s*\\[[^\n]]+\\]:)";h.unwrap=function(G){var F=new s("([^\\n])\\n(?!(\\n|"+h.prefixes+"))","g");G.selection=G.selection.replace(F,"$1 $2")};h.wrap=function(G,F){h.unwrap(G);var H=new s("(.{1,"+F+"})( +|$\\n?)","gm");G.selection=G.selection.replace(H,function(I,J){if(new s("^"+h.prefixes,"").test(I)){return I}return J+"\n"});G.selection=G.selection.replace(/\s+$/,"")};h.doBold=function(F,G){return h.doBorI(F,G,2,"strong text")};h.doItalic=function(F,G){return h.doBorI(F,G,1,"emphasized text")};h.doBorI=function(L,J,K,F){L.trimWhitespace();L.selection=L.selection.replace(/\n{2,}/g,"\n");L.before.search(/(\**$)/);var I=s.$1;L.after.search(/(^\**)/);var G=s.$1;var M=Math.min(I.length,G.length);if((M>=K)&&(M!=2||K!=1)){L.before=L.before.replace(s("[*]{"+K+"}$",""),"");L.after=L.after.replace(s("^[*]{"+K+"}",""),"")}else{if(!L.selection&&G){L.after=L.after.replace(/^([*_]*)/,"");L.before=L.before.replace(/(\s?)$/,"");var H=s.$1;L.before=L.before+G+H}else{if(!L.selection&&!G){L.selection=F}var N=K<=1?"*":"**";L.before=L.before+N;L.after=N+L.after}}return};h.stripLinkDefs=function(G,F){G=G.replace(/^[ ]{0,3}\[(\d+)\]:[ \t]*\n?[ \t]*?[ \t]*\n?[ \t]*(?:(\n*)["(](.+?)[")][ \t]*)?(?:\n+|$)/gm,function(K,L,H,I,J){F[L]=K.replace(/\s*$/,"");if(I){F[L]=K.replace(/["(](.+?)[")]$/,"");return I+J}return""});return G};h.addLinkDef=function(M,I){var F=0;var H={};M.before=h.stripLinkDefs(M.before,H);M.selection=h.stripLinkDefs(M.selection,H);M.after=h.stripLinkDefs(M.after,H);var G="";var L=/(\[(?:\[[^\]]*\]|[^\[\]])*\][ ]?(?:\n[ ]*)?\[)(\d+)(\])/g;var K=function(O){F++;O=O.replace(/^[ ]{0,3}\[(\d+)\]:/," ["+F+"]:");G+="\n"+O};var J=function(P,Q,R,O){if(H[R]){K(H[R]);return Q+F+O}return P};M.before=M.before.replace(L,J);if(I){K(I)}else{M.selection=M.selection.replace(L,J)}var N=F;M.after=M.after.replace(L,J);if(M.after){M.after=M.after.replace(/\n*$/,"")}if(!M.after){M.selection=M.selection.replace(/\n*$/,"")}M.after+="\n\n"+G;return N};h.doLinkOrImage=function(F,G,I){F.trimWhitespace();F.findTags(/\s*!?\[/,/\][ ]?(?:\n[ ]*)?(\[.*?\])?/);if(F.endTag.length>1){F.startTag=F.startTag.replace(/!?\[/,"");F.endTag="";h.addLinkDef(F,null)}else{if(/\n\n/.test(F.selection)){h.addLinkDef(F,null);return}var H=function(L){if(L!==null){F.startTag=F.endTag="";var K=" [999]: "+L;var J=h.addLinkDef(F,K);F.startTag=I?"![":"[";F.endTag="]["+J+"]";if(!F.selection){if(I){F.selection="alt text"}else{F.selection="link text"}}}G()};if(I){a.prompt(B,b,H,1)}else{a.prompt(D,g,H)}return true}};a.makeAPI=function(){y.wmd={};y.wmd.editor=y.editor;y.wmd.previewManager=y.previewManager};a.startEditor=function(){if(y.wmd_env.autostart===false){a.makeAPI();return}var G;var F;var H=function(){y.panels=new y.PanelCollection();F=new y.previewManager();var I=F.refresh;G=new y.editor(I);F.refresh(true)};a.addEvent(top,"load",H)};y.previewManager=function(){var H=this;var V;var F;var N;var M;var S;var O;var I=3000;var P="delayed";var K=function(X,Y){a.addEvent(X,"input",Y);X.onpaste=Y;X.ondrop=Y;a.addEvent(X,"keypress",Y);a.addEvent(X,"keydown",Y);F=new y.inputPoller(Y,A)};var R=function(){var X=0;if(top.innerHeight){X=top.pageYOffset}else{if(E.documentElement&&E.documentElement.scrollTop){X=E.documentElement.scrollTop}else{if(E.body){X=E.body.scrollTop}}}return X};var L=function(){if(!y.panels.preview&&!y.panels.output){return}var Z=y.panels.input.value;if(Z&&Z==S){return}else{S=Z}var Y=new Date().getTime();if(!V&&y.showdown){V=new y.showdown.converter()}if(V){Z=V.makeHtml(Z)}var X=new Date().getTime();M=X-Y;G(Z);O=Z};var U=function(){if(N){top.clearTimeout(N);N=undefined}if(P!=="manual"){var X=0;if(P==="delayed"){X=M}if(X>I){X=I}N=top.setTimeout(L,X)}};var J=function(X){if(X.scrollHeight<=X.clientHeight){return 1}return X.scrollTop/(X.scrollHeight-X.clientHeight)};var W=function(){if(y.panels.preview){y.panels.preview.scrollTop=(y.panels.preview.scrollHeight-y.panels.preview.clientHeight)*J(y.panels.preview)}if(y.panels.output){y.panels.output.scrollTop=(y.panels.output.scrollHeight-y.panels.output.clientHeight)*J(y.panels.output)}};this.refresh=function(X){if(X){S="";L()}else{U()}};this.processingTime=function(){return M};this.output=function(){return O};this.setUpdateMode=function(X){P=X;H.refresh()};var Q=true;var G=function(aa){var X=C.getTop(y.panels.input)-R();if(y.panels.output){if(y.panels.output.value!==undefined){y.panels.output.value=aa;y.panels.output.readOnly=true}else{var Z=aa.replace(/&/g,"&");Z=Z.replace(/"+Z+"
    "}}if(y.panels.preview){y.panels.preview.innerHTML=aa}W();if(Q){Q=false;return}var Y=C.getTop(y.panels.input)-R();if(v.isIE){top.setTimeout(function(){top.scrollBy(0,Y-X)},0)}else{top.scrollBy(0,Y-X)}};var T=function(){K(y.panels.input,U);L();if(y.panels.preview){y.panels.preview.scrollTop=0}if(y.panels.output){y.panels.output.scrollTop=0}};this.destroy=function(){if(F){F.destroy()}};T()};h.doAutoindent=function(F,G){F.before=F.before.replace(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]*\n$/,"\n\n");F.before=F.before.replace(/(\n|^)[ ]{0,3}>[ \t]*\n$/,"\n\n");F.before=F.before.replace(/(\n|^)[ \t]+\n$/,"\n\n");if(/(\n|^)[ ]{0,3}([*+-]|\d+[.])[ \t]+.*\n$/.test(F.before)){if(h.doList){h.doList(F)}}if(/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(F.before)){if(h.doBlockquote){h.doBlockquote(F)}}if(/(\n|^)(\t|[ ]{4,}).*\n$/.test(F.before)){if(h.doCode){h.doCode(F)}}};h.doBlockquote=function(F,G){F.selection=F.selection.replace(/^(\n*)([^\r]+?)(\n*)$/,function(L,K,J,I){F.before+=K;F.after=I+F.after;return J});F.before=F.before.replace(/(>[ \t]*)$/,function(J,I){F.selection=I+F.selection;return""});F.selection=F.selection.replace(/^(\s|>)+$/,"");F.selection=F.selection||"Blockquote";if(F.before){F.before=F.before.replace(/\n?$/,"\n")}if(F.after){F.after=F.after.replace(/^\n?/,"\n")}F.before=F.before.replace(/(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*$)/,function(I){F.startTag=I;return""});F.after=F.after.replace(/^(((\n|^)(\n[ \t]*)*>(.+\n)*.*)+(\n[ \t]*)*)/,function(I){F.endTag=I;return""});var H=function(J){var I=J?"> ":"";if(F.startTag){F.startTag=F.startTag.replace(/\n((>|\s)*)\n$/,function(L,K){return"\n"+K.replace(/^[ ]{0,3}>?[ \t]*$/gm,I)+"\n"})}if(F.endTag){F.endTag=F.endTag.replace(/^\n((>|\s)*)\n/,function(L,K){return"\n"+K.replace(/^[ ]{0,3}>?[ \t]*$/gm,I)+"\n"})}};if(/^(?![ ]{0,3}>)/m.test(F.selection)){h.wrap(F,y.wmd_env.lineLength-2);F.selection=F.selection.replace(/^/gm,"> ");H(true);F.skipLines()}else{F.selection=F.selection.replace(/^[ ]{0,3}> ?/gm,"");h.unwrap(F);H(false);if(!/^(\n|^)[ ]{0,3}>/.test(F.selection)&&F.startTag){F.startTag=F.startTag.replace(/\n{0,2}$/,"\n\n")}if(!/(\n|^)[ ]{0,3}>.*$/.test(F.selection)&&F.endTag){F.endTag=F.endTag.replace(/^\n{0,2}/,"\n\n")}}if(!/\n/.test(F.selection)){F.selection=F.selection.replace(/^(> *)/,function(I,J){F.startTag+=J;return""})}};h.doCode=function(F,G){var I=/\S[ ]*$/.test(F.before);var K=/^[ ]*\S/.test(F.after);if((!K&&!I)||/\n/.test(F.selection)){F.before=F.before.replace(/[ ]{4}$/,function(L){F.selection=L+F.selection;return""});var J=1;var H=1;if(/\n(\t|[ ]{4,}).*\n$/.test(F.before)){J=0}if(/^\n(\t|[ ]{4,})/.test(F.after)){H=0}F.skipLines(J,H);if(!F.selection){F.startTag=" ";F.selection="enter code here"}else{if(/^[ ]{0,3}\S/m.test(F.selection)){F.selection=F.selection.replace(/^/gm," ")}else{F.selection=F.selection.replace(/^[ ]{4}/gm,"")}}}else{F.trimWhitespace();F.findTags(/`/,/`/);if(!F.startTag&&!F.endTag){F.startTag=F.endTag="`";if(!F.selection){F.selection="enter code here"}}else{if(F.endTag&&!F.startTag){F.before+=F.endTag;F.endTag=""}else{F.startTag=F.endTag=""}}}};h.doList=function(Q,J,I){var S=/(\n|^)(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*$/;var R=/^\n*(([ ]{0,3}([*+-]|\d+[.])[ \t]+.*)(\n.+|\n{2,}([*+-].*|\d+[.])[ \t]+.*|\n{2,}[ \t]+\S.*)*)\n*/;var F="-";var N=1;var L=function(){var T;if(I){T=" "+N+". ";N++}else{T=" "+F+" "}return T};var M=function(T){if(I===undefined){I=/^\s*\d/.test(T)}T=T.replace(/^[ ]{0,3}([*+-]|\d+[.])\s/gm,function(U){return L()});return T};Q.findTags(/(\n|^)*[ ]{0,3}([*+-]|\d+[.])\s+/,null);if(Q.before&&!/\n$/.test(Q.before)&&!/^\n/.test(Q.startTag)){Q.before+=Q.startTag;Q.startTag=""}if(Q.startTag){var H=/\d+[.]/.test(Q.startTag);Q.startTag="";Q.selection=Q.selection.replace(/\n[ ]{4}/g,"\n");h.unwrap(Q);Q.skipLines();if(H){Q.after=Q.after.replace(R,M)}if(I==H){return}}var K=1;Q.before=Q.before.replace(S,function(T){if(/^\s*([*+-])/.test(T)){F=s.$1}K=/[^\n]\n\n[^\n]/.test(T)?1:0;return M(T)});if(!Q.selection){Q.selection="List item"}var O=L();var G=1;Q.after=Q.after.replace(R,function(T){G=/[^\n]\n\n[^\n]/.test(T)?1:0;return M(T)});Q.trimWhitespace(true);Q.skipLines(K,G,true);Q.startTag=O;var P=O.replace(/./g," ");h.wrap(Q,y.wmd_env.lineLength-P.length);Q.selection=Q.selection.replace(/\n/g,"\n"+P)};h.doHeading=function(H,I){H.selection=H.selection.replace(/\s+/g," ");H.selection=H.selection.replace(/(^\s+|\s+$)/g,"");if(!H.selection){H.startTag="## ";H.selection="Heading";H.endTag=" ##";return}var J=0;H.findTags(/#+[ ]*/,/[ ]*#+/);if(/#+/.test(H.startTag)){J=s.lastMatch.length}H.startTag=H.endTag="";H.findTags(null,/\s?(-+|=+)/);if(/=+/.test(H.endTag)){J=1}if(/-+/.test(H.endTag)){J=2}H.startTag=H.endTag="";H.skipLines(1,1);var K=J==0?2:J-1;if(K>0){var G=K>=2?"-":"=";var F=H.selection.length;if(F>y.wmd_env.lineLength){F=y.wmd_env.lineLength}H.endTag="\n";while(F--){H.endTag+=G}}};h.doHorizontalRule=function(F,G){F.startTag="----------\n";F.selection="";F.skipLines(2,1,true)}};Attacklab.wmd_env={};Attacklab.account_options={};Attacklab.wmd_defaults={version:1,output:"Markdown",lineLength:40,delayLoad:false};if(!Attacklab.wmd){Attacklab.wmd=function(){Attacklab.loadEnv=function(){var b=function(d){if(!d){return}for(var c in d){Attacklab.wmd_env[c]=d[c]}};b(Attacklab.wmd_defaults);b(Attacklab.account_options);b(top.wmd_options);Attacklab.full=true;var a="bold italic link blockquote code image ol ul heading hr";Attacklab.wmd_env.buttons=Attacklab.wmd_env.buttons||a};Attacklab.loadEnv()};Attacklab.wmd();Attacklab.wmdBase();Attacklab.Util.startEditor()}; \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd-test.html b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd-test.html deleted file mode 100644 index d748501..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd-test.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - Test WMD Page - - - - - - - - - - - - - - -
    -
    - -
    -
    -
    -
    - -

    To test that page up/down and arrow keys work, copy this above the WMD - control.

    - - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - Scroll Down!
    - - - - \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd.css b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd.css deleted file mode 100644 index c71ba6e..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd.css +++ /dev/null @@ -1,138 +0,0 @@ -body -{ - background-color: White -} - -.wmd-panel -{ - width: 50%; - min-width: 500px; -} - -#wmd-editor -{ - background-color: Aquamarine; -} - -#wmd-button-bar -{ - width: 100%; - background-color: #ffffff; -} - -#wmd-input -{ - height: 500px; - width: 100%; - background-color: Gainsboro; - border: 1px solid DarkGray; -} - -#wmd-preview -{ - background-color: LightSkyBlue; -} - -#wmd-output -{ - background-color: Pink; -} - -#wmd-button-row -{ - position: relative; - margin-left: 5px; - margin-right: 5px; - margin-bottom: 5px; - margin-top: 10px; - padding: 0px; - height: 20px; - background-color:#ffffff; -} - -.wmd-spacer -{ - width: 1px; - height: 20px; - margin-left: 14px; - - position: absolute; - background-color:#aaaaaa; - display: inline-block; - list-style: none; -} - -.wmd-button -{ - width: 20px; - height: 20px; - margin-left: 5px; - margin-right: 5px; - background-color:#ffffff; - position: absolute; - background-image: url(images/wmd-buttons.png); - background-repeat: no-repeat; - background-position: 0px 0px; - display: inline-block; - list-style: none; -} - -.wmd-button > a -{ - width: 20px; - height: 20px; - margin-left: 5px; - margin-right: 5px; - - position: absolute; - display: inline-block; -} - - -/* sprite button slicing style information */ -#wmd-button-bar #wmd-bold-button {left: 0px; background-position: 0px 0;} -#wmd-button-bar #wmd-italic-button {left: 25px; background-position: -20px 0;} -#wmd-button-bar #wmd-spacer1 {left: 50px;} -#wmd-button-bar #wmd-link-button {left: 75px; background-position: -40px 0;} -#wmd-button-bar #wmd-quote-button {left: 100px; background-position: -60px 0;} -#wmd-button-bar #wmd-code-button {left: 125px; background-position: -80px 0;} -#wmd-button-bar #wmd-image-button {left: 150px; background-position: -100px 0;} -#wmd-button-bar #wmd-spacer2 {left: 175px;} -#wmd-button-bar #wmd-olist-button {left: 200px; background-position: -120px 0;} -#wmd-button-bar #wmd-ulist-button {left: 225px; background-position: -140px 0;} -#wmd-button-bar #wmd-heading-button {left: 250px; background-position: -160px 0;} -#wmd-button-bar #wmd-hr-button {left: 275px; background-position: -180px 0;} -#wmd-button-bar #wmd-spacer3 {left: 300px;} -#wmd-button-bar #wmd-undo-button {left: 325px; background-position: -200px 0;} -#wmd-button-bar #wmd-redo-button {left: 350px; background-position: -220px 0;} -#wmd-button-bar #wmd-help-button {right: 0px; background-position: -240px 0;} - - -.wmd-prompt-background -{ - background-color: Black; -} - -.wmd-prompt-dialog -{ - border: 1px solid #999999; - background-color: #F5F5F5; -} - -.wmd-prompt-dialog > div { - font-size: 0.8em; - font-family: arial, helvetica, sans-serif; -} - - -.wmd-prompt-dialog > form > input[type="text"] { - border: 1px solid #999999; - color: black; -} - -.wmd-prompt-dialog > form > input[type="button"]{ - border: 1px solid #888888; - font-family: trebuchet MS, helvetica, sans-serif; - font-size: 0.8em; - font-weight: bold; -} diff --git a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd.js b/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd.js deleted file mode 100644 index f541581..0000000 --- a/forum/modules/template_loader.py/forum/skins/default/media/js/wmd/wmd.js +++ /dev/null @@ -1,2448 +0,0 @@ -jQuery.extend({createUploadIframe:function(d,b){var a="jUploadFrame"+d;if(window.ActiveXObject){var c=document.createElement('
    - - - -""" % { - 'ApiServer' : server, - 'PublicKey' : public_key, - 'ErrorParam' : error_param, - } - - -def submit (recaptcha_challenge_field, - recaptcha_response_field, - private_key, - remoteip): - """ - Submits a reCAPTCHA request for verification. Returns RecaptchaResponse - for the request - - recaptcha_challenge_field -- The value of recaptcha_challenge_field from the form - recaptcha_response_field -- The value of recaptcha_response_field from the form - private_key -- your reCAPTCHA private key - remoteip -- the user's ip address - """ - - if not (recaptcha_response_field and recaptcha_challenge_field and - len (recaptcha_response_field) and len (recaptcha_challenge_field)): - return RecaptchaResponse (is_valid = False, error_code = 'incorrect-captcha-sol') - - - def encode_if_necessary(s): - if isinstance(s, unicode): - return s.encode('utf-8') - return s - - params = urllib.urlencode ({ - 'privatekey': encode_if_necessary(private_key), - 'remoteip' : encode_if_necessary(remoteip), - 'challenge': encode_if_necessary(recaptcha_challenge_field), - 'response' : encode_if_necessary(recaptcha_response_field), - }) - - request = urllib2.Request ( - url = "http://%s/verify" % VERIFY_SERVER, - data = params, - headers = { - "Content-type": "application/x-www-form-urlencoded", - "User-agent": "reCAPTCHA Python" - } - ) - - httpresp = urllib2.urlopen (request) - - return_values = httpresp.read ().splitlines (); - httpresp.close(); - - return_code = return_values [0] - - if (return_code == "true"): - return RecaptchaResponse (is_valid=True) - else: - return RecaptchaResponse (is_valid=False, error_code = return_values [1]) - - diff --git a/forum/modules/template_loader.py/forum_modules/recaptcha/settings.py b/forum/modules/template_loader.py/forum_modules/recaptcha/settings.py deleted file mode 100644 index ceeef72..0000000 --- a/forum/modules/template_loader.py/forum_modules/recaptcha/settings.py +++ /dev/null @@ -1,17 +0,0 @@ -from forum.settings import EXT_KEYS_SET -from forum.settings.base import Setting - -RECAPTCHA_PUB_KEY = Setting('RECAPTCHA_PUB_KEY', '', EXT_KEYS_SET, dict( -label = "Recaptch public key", -help_text = """ -Get this key at reCaptcha to enable -recaptcha anti spam through. -""", -required=False)) - -RECAPTCHA_PRIV_KEY = Setting('RECAPTCHA_PRIV_KEY', '', EXT_KEYS_SET, dict( -label = "Recaptch private key", -help_text = """ -This is the private key you'll get in the same place as the recaptcha public key. -""", -required=False)) diff --git a/forum/modules/template_loader.py/forum_modules/robotstxt/__init__.py b/forum/modules/template_loader.py/forum_modules/robotstxt/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum_modules/robotstxt/settings.py b/forum/modules/template_loader.py/forum_modules/robotstxt/settings.py deleted file mode 100644 index 44d576a..0000000 --- a/forum/modules/template_loader.py/forum_modules/robotstxt/settings.py +++ /dev/null @@ -1,23 +0,0 @@ -from forum.settings.base import Setting, SettingSet -from django.forms.widgets import Textarea -from django.core.urlresolvers import reverse -from forum.settings import APP_URL - -ROBOTS_SET = SettingSet('robots', 'Robots txt', "Set up the robots.txt file.", 3000) - -ROBOTS_FILE = Setting('ROBOTS_FILE', -"""Sitemap: %s/sitemap.xml - -User-Agent: * -Disallow: /accounts/ -Disallow: /users/ -Disallow: /revisions/ -Disallow: /search -Disallow: /matching_tags -Disallow: /*sort= -""" % APP_URL, ROBOTS_SET, dict( -label = "Robots.txt file", -help_text = """ -The robots.txt file search engine spiders will see. -""", -widget=Textarea(attrs={'rows': '20'}))) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/robotstxt/templates/robots.txt b/forum/modules/template_loader.py/forum_modules/robotstxt/templates/robots.txt deleted file mode 100644 index a93756d..0000000 --- a/forum/modules/template_loader.py/forum_modules/robotstxt/templates/robots.txt +++ /dev/null @@ -1,7 +0,0 @@ -User-Agent: * -Disallow: /accounts/ -Disallow: /users/ -Disallow: /revisions/ -Disallow: /search -Disallow: /matching_tags -Disallow: /*sort= \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/robotstxt/urls.py b/forum/modules/template_loader.py/forum_modules/robotstxt/urls.py deleted file mode 100644 index 0706886..0000000 --- a/forum/modules/template_loader.py/forum_modules/robotstxt/urls.py +++ /dev/null @@ -1,7 +0,0 @@ -from django.conf.urls.defaults import * -from django.http import HttpResponse -import settings - -urlpatterns = patterns('', - (r'^robots.txt$', lambda r: HttpResponse(settings.ROBOTS_FILE.value)), -) diff --git a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/README.txt b/forum/modules/template_loader.py/forum_modules/sphinxfulltext/README.txt deleted file mode 100644 index 7d65653..0000000 --- a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/README.txt +++ /dev/null @@ -1,29 +0,0 @@ -Full text search (using sphinx search) - -Currently full text search works only with sphinx search engine -And builtin PostgreSQL (postgres only >= 8.3???) - -5.1 Instructions for Sphinx search setup -Sphinx at this time supports only MySQL and PostgreSQL databases -to enable this, install sphinx search engine and djangosphinx - -configure sphinx, sample configuration can be found in -sphinx/sphinx.conf file usually goes somewhere in /etc tree - -build osqa index first time manually - -% indexer --config /path/to/sphinx.conf --index osqa - -setup cron job to rebuild index periodically with command -your crontab entry may be something like - -0 9,15,21 * * * /usr/local/bin/indexer --config /etc/sphinx/sphinx.conf --all --rotate >/dev/null 2>&1 -adjust it as necessary this one will reindex three times a day at 9am 3pm and 9pm - -if your forum grows very big ( good luck with that :) you'll -need to two search indices one diff index and one main -please refer to online sphinx search documentation for the information -on the subject http://sphinxsearch.com/docs/ - -in settings.py look for INSTALLED_APPS -and uncomment #'djangosphinx', \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/__init__.py b/forum/modules/template_loader.py/forum_modules/sphinxfulltext/__init__.py deleted file mode 100644 index b7250c8..0000000 --- a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -try: - import djangosphinx - CAN_USE = True -except: - CAN_USE = False \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/dependencies.py b/forum/modules/template_loader.py/forum_modules/sphinxfulltext/dependencies.py deleted file mode 100644 index 046ebfc..0000000 --- a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/dependencies.py +++ /dev/null @@ -1,2 +0,0 @@ -DJANGO_APPS = ('djangosphinx', ) - diff --git a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/handlers.py b/forum/modules/template_loader.py/forum_modules/sphinxfulltext/handlers.py deleted file mode 100644 index f00c64f..0000000 --- a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/handlers.py +++ /dev/null @@ -1,4 +0,0 @@ -from forum.models import Question - -def question_search(keywords): - return Question.search.query(keywords) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/models.py b/forum/modules/template_loader.py/forum_modules/sphinxfulltext/models.py deleted file mode 100644 index a188728..0000000 --- a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/models.py +++ /dev/null @@ -1,11 +0,0 @@ -from forum.models import Question -from django.conf import settings -from djangosphinx.manager import SphinxSearch - -from djangosphinx.models import SphinxSearch - -Question.add_to_class('search', SphinxSearch( - index=' '.join(settings.SPHINX_SEARCH_INDICES), - mode='SPH_MATCH_ALL', - ) - ) diff --git a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/settings.py b/forum/modules/template_loader.py/forum_modules/sphinxfulltext/settings.py deleted file mode 100644 index 7c2da12..0000000 --- a/forum/modules/template_loader.py/forum_modules/sphinxfulltext/settings.py +++ /dev/null @@ -1,5 +0,0 @@ -SPHINX_API_VERSION = 0x113 #refer to djangosphinx documentation -SPHINX_SEARCH_INDICES=('osqa',) #a tuple of index names remember about a comma after the -#last item, especially if you have just one :) -SPHINX_SERVER='localhost' -SPHINX_PORT=3312 diff --git a/forum/modules/template_loader.py/forum_modules/sximporter/__init__.py b/forum/modules/template_loader.py/forum_modules/sximporter/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/forum_modules/sximporter/importer.py b/forum/modules/template_loader.py/forum_modules/sximporter/importer.py deleted file mode 100644 index 44f90d7..0000000 --- a/forum/modules/template_loader.py/forum_modules/sximporter/importer.py +++ /dev/null @@ -1,1002 +0,0 @@ -# -*- coding: utf-8 -*- - -from xml.dom import minidom -from datetime import datetime, timedelta -import time -import re -import os -import gc -from django.utils.translation import ugettext as _ -from django.template.defaultfilters import slugify -from forum.models.utils import dbsafe_encode -from orm import orm - -from django.utils.encoding import force_unicode - -try: - from cPickle import loads, dumps -except ImportError: - from pickle import loads, dumps - -from copy import deepcopy -from base64 import b64encode, b64decode -from zlib import compress, decompress - -from xml.sax import make_parser -from xml.sax.handler import ContentHandler - -class SXTableHandler(ContentHandler): - def __init__(self, fname, callback): - self.in_row = False - self.el_data = {} - self.ch_data = '' - - self.fname = fname.lower() - self.callback = callback - - def startElement(self, name, attrs): - if name.lower() == self.fname: - pass - elif name.lower() == "row": - self.in_row = True - - def characters(self, ch): - self.ch_data += ch - - def endElement(self, name): - if name.lower() == self.fname: - pass - elif name.lower() == "row": - self.callback(self.el_data) - - self.in_row = False - del self.el_data - self.el_data = {} - elif self.in_row: - self.el_data[name.lower()] = self.ch_data.strip() - del self.ch_data - self.ch_data = '' - - -def readTable(path, name, callback): - parser = make_parser() - handler = SXTableHandler(name, callback) - parser.setContentHandler(handler) - - f = os.path.join(path, "%s.xml" % name) - parser.parse(f) - - -def dbsafe_encode(value): - return force_unicode(b64encode(compress(dumps(deepcopy(value))))) - -def getText(el): - rc = "" - for node in el.childNodes: - if node.nodeType == node.TEXT_NODE: - rc = rc + node.data - return rc.strip() - -msstrip = re.compile(r'^(.*)\.\d+') -def readTime(ts): - noms = msstrip.match(ts) - if noms: - ts = noms.group(1) - - return datetime(*time.strptime(ts, '%Y-%m-%dT%H:%M:%S')[0:6]) - -#def readEl(el): -# return dict([(n.tagName.lower(), getText(n)) for n in el.childNodes if n.nodeType == el.ELEMENT_NODE]) - -#def readTable(dump, name): -# for e in minidom.parseString(dump.read("%s.xml" % name)).getElementsByTagName('row'): -# yield readEl(e) -#return [readEl(e) for e in minidom.parseString(dump.read("%s.xml" % name)).getElementsByTagName('row')] - -google_accounts_lookup = re.compile(r'^https?://www.google.com/accounts/') -yahoo_accounts_lookup = re.compile(r'^https?://me.yahoo.com/a/') - -openid_lookups = [ - re.compile(r'^https?://www.google.com/profiles/(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://me.yahoo.com/(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://openid.aol.com/(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://(?P\w+(\.\w+)*).myopenid.com/?$'), - re.compile(r'^https?://flickr.com/(\w+/)*(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://technorati.com/people/technorati/(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://(?P\w+(\.\w+)*).wordpress.com/?$'), - re.compile(r'^https?://(?P\w+(\.\w+)*).blogspot.com/?$'), - re.compile(r'^https?://(?P\w+(\.\w+)*).livejournal.com/?$'), - re.compile(r'^https?://claimid.com/(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://(?P\w+(\.\w+)*).pip.verisignlabs.com/?$'), - re.compile(r'^https?://getopenid.com/(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://[\w\.]+/(\w+/)*(?P\w+(\.\w+)*)/?$'), - re.compile(r'^https?://(?P[\w\.]+)/?$'), - ] - -def final_username_attempt(sxu): - openid = sxu.get('openid', None) - - if openid: - if google_accounts_lookup.search(openid): - return UnknownGoogleUser(sxu.get('id')) - if yahoo_accounts_lookup.search(openid): - return UnknownYahooUser(sxu.get('id')) - - for lookup in openid_lookups: - if lookup.search(openid): - return lookup.search(openid).group('uname') - - return UnknownUser(sxu.get('id')) - -class UnknownUser(object): - def __init__(self, id): - self._id = id - - def __str__(self): - return _("user-%(id)s") % {'id': self._id} - - def __unicode__(self): - return self.__str__() - - def encode(self, *args): - return self.__str__() - -class UnknownGoogleUser(UnknownUser): - def __str__(self): - return _("user-%(id)s (google)") % {'id': self._id} - -class UnknownYahooUser(UnknownUser): - def __str__(self): - return _("user-%(id)s (yahoo)") % {'id': self._id} - - -class IdMapper(dict): - def __getitem__(self, key): - key = int(key) - return super(IdMapper, self).get(key, 1) - - def __setitem__(self, key, value): - super(IdMapper, self).__setitem__(int(key), int(value)) - -class IdIncrementer(): - def __init__(self, initial): - self.value = initial - - def inc(self): - self.value += 1 - -openidre = re.compile('^https?\:\/\/') -def userimport(path, options): -#users = readTable(dump, "Users") - - usernames = [] - openids = set() - uidmapper = IdMapper() - #merged_users = [] - - owneruid = options.get('owneruid', None) - #check for empty values - if not owneruid: - owneruid = None - - def callback(sxu): - create = True - - if sxu.get('id') == '-1': - return - #print "\n".join(["%s : %s" % i for i in sxu.items()]) - if int(sxu.get('id')) == int(owneruid): - osqau = orm.User.objects.get(id=1) - for assoc in orm.AuthKeyUserAssociation.objects.filter(user=osqau): - openids.add(assoc.key) - uidmapper[owneruid] = 1 - uidmapper[-1] = 1 - create = False - else: - username = unicode(sxu.get('displayname', - sxu.get('displaynamecleaned', sxu.get('realname', final_username_attempt(sxu)))))[:30] - - if username in usernames: - #if options.get('mergesimilar', False) and sxu.get('email', 'INVALID') == user_by_name[username].email: - # osqau = user_by_name[username] - # create = False - # uidmapper[sxu.get('id')] = osqau.id - #else: - inc = 0 - - while True: - inc += 1 - totest = "%s %d" % (username[:29 - len(str(inc))], inc) - - if not totest in usernames: - username = totest - break - - sxbadges = sxu.get('badgesummary', None) - badges = {'1':'0', '2':'0', '3':'0'} - - if sxbadges: - badges.update(dict([b.split('=') for b in sxbadges.split()])) - - if create: - osqau = orm.User( - id = sxu.get('id'), - username = username, - password = '!', - email = sxu.get('email', ''), - is_superuser = sxu.get('usertypeid') == '5', - is_staff = sxu.get('usertypeid') == '4', - is_active = True, - date_joined = readTime(sxu.get('creationdate')), - last_seen = readTime(sxu.get('lastaccessdate')), - about = sxu.get('aboutme', ''), - date_of_birth = sxu.get('birthday', None) and readTime(sxu['birthday']) or None, - email_isvalid = int(sxu.get('usertypeid')) > 2, - website = sxu.get('websiteurl', ''), - reputation = int(sxu.get('reputation')), - gold = int(badges['1']), - silver = int(badges['2']), - bronze = int(badges['3']), - real_name = sxu.get('realname', '')[:30], - location = sxu.get('location', ''), - ) - - osqau.save() - - user_joins = orm.Action( - action_type = "userjoins", - action_date = osqau.date_joined, - user = osqau - ) - user_joins.save() - - rep = orm.ActionRepute( - value = 1, - user = osqau, - date = osqau.date_joined, - action = user_joins - ) - rep.save() - - try: - orm.SubscriptionSettings.objects.get(user=osqau) - except: - s = orm.SubscriptionSettings(user=osqau) - s.save() - - uidmapper[osqau.id] = osqau.id - else: - new_about = sxu.get('aboutme', None) - if new_about and osqau.about != new_about: - if osqau.about: - osqau.about = "%s\n|\n%s" % (osqau.about, new_about) - else: - osqau.about = new_about - - osqau.username = sxu.get('displayname', - sxu.get('displaynamecleaned', sxu.get('realname', final_username_attempt(sxu)))) - osqau.email = sxu.get('email', '') - osqau.reputation += int(sxu.get('reputation')) - osqau.gold += int(badges['1']) - osqau.silver += int(badges['2']) - osqau.bronze += int(badges['3']) - - osqau.date_joined = readTime(sxu.get('creationdate')) - osqau.website = sxu.get('websiteurl', '') - osqau.date_of_birth = sxu.get('birthday', None) and readTime(sxu['birthday']) or None - osqau.location = sxu.get('location', '') - osqau.real_name = sxu.get('realname', '') - - #merged_users.append(osqau.id) - osqau.save() - - usernames.append(osqau.username) - - openid = sxu.get('openid', None) - if openid and openidre.match(openid) and (not openid in openids): - assoc = orm.AuthKeyUserAssociation(user=osqau, key=openid, provider="openidurl") - assoc.save() - openids.add(openid) - - openidalt = sxu.get('openidalt', None) - if openidalt and openidre.match(openidalt) and (not openidalt in openids): - assoc = orm.AuthKeyUserAssociation(user=osqau, key=openidalt, provider="openidurl") - assoc.save() - openids.add(openidalt) - - readTable(path, "Users", callback) - - if uidmapper[-1] == -1: - uidmapper[-1] = 1 - - return uidmapper - -def tagsimport(dump, uidmap): -#tags = readTable(dump, "Tags") - - tagmap = {} - - def callback(sxtag): - otag = orm.Tag( - id = int(sxtag['id']), - name = sxtag['name'], - used_count = int(sxtag['count']), - created_by_id = uidmap[sxtag.get('userid', 1)], - ) - otag.save() - - tagmap[otag.name] = otag - - readTable(dump, "Tags", callback) - - return tagmap - -def add_post_state(name, post, action): - if not "(%s)" % name in post.state_string: - post.state_string = "%s(%s)" % (post.state_string, name) - post.save() - - try: - state = orm.NodeState.objects.get(node=post, state_type=name) - state.action = action - state.save() - except: - state = orm.NodeState(node=post, state_type=name, action=action) - state.save() - -def remove_post_state(name, post): - if "(%s)" % name in post.state_string: - try: - state = orm.NodeState.objects.get(state_type=name, post=post) - state.delete() - except: - pass - post.state_string = "".join("(%s)" % s for s in re.findall('\w+', post.state_string) if s != name) - -def postimport(dump, uidmap, tagmap): -#history = {} -#accepted = {} - all = [] - - #for h in readTable(dump, "PostHistory"): - # if not history.get(h.get('postid'), None): - # history[h.get('postid')] = [] - # - # history[h.get('postid')].append(h) - - #posts = readTable(dump, "Posts") - - def callback(sxpost): - nodetype = (sxpost.get('posttypeid') == '1') and "nodetype" or "answer" - - post = orm.Node( - node_type = nodetype, - id = sxpost['id'], - added_at = readTime(sxpost['creationdate']), - body = sxpost['body'], - score = sxpost.get('score', 0), - author_id = sxpost.get('deletiondate', None) and 1 or uidmap[sxpost.get('owneruserid', 1)] - ) - - post.save() - - create_action = orm.Action( - action_type = (nodetype == "nodetype") and "ask" or "answer", - user_id = post.author_id, - node = post, - action_date = post.added_at - ) - - create_action.save() - - if sxpost.get('lasteditoruserid', None): - revise_action = orm.Action( - action_type = "revise", - user_id = uidmap[sxpost.get('lasteditoruserid')], - node = post, - action_date = readTime(sxpost['lasteditdate']), - ) - - revise_action.save() - post.last_edited = revise_action - - if sxpost.get('communityowneddate', None): - wikify_action = orm.Action( - action_type = "wikify", - user_id = 1, - node = post, - action_date = readTime(sxpost['communityowneddate']) - ) - - wikify_action.save() - add_post_state("wiki", post, wikify_action) - - if sxpost.get('lastactivityuserid', None): - post.last_activity_by_id = uidmap[sxpost['lastactivityuserid']] - post.last_activity_at = readTime(sxpost['lastactivitydate']) - - if sxpost.get('posttypeid') == '1': #question - post.node_type = "question" - post.title = sxpost['title'] - - tagnames = sxpost['tags'].replace(u'ö', '-').replace(u'é', '').replace(u'à', '') - post.tagnames = tagnames - - post.extra_count = sxpost.get('viewcount', 0) - - add_tags_to_post(post, tagmap) - - else: - post.parent_id = sxpost['parentid'] - - post.save() - - all.append(int(post.id)) - - del post - - readTable(dump, "Posts", callback) - - return all - -def comment_import(dump, uidmap, posts): -#comments = readTable(dump, "PostComments") - currid = IdIncrementer(max(posts)) - mapping = {} - - def callback(sxc): - currid.inc() - oc = orm.Node( - id = currid.value, - node_type = "comment", - added_at = readTime(sxc['creationdate']), - author_id = uidmap[sxc.get('userid', 1)], - body = sxc['text'], - parent_id = sxc.get('postid'), - ) - - if sxc.get('deletiondate', None): - delete_action = orm.Action( - action_type = "delete", - user_id = uidmap[sxc['deletionuserid']], - action_date = readTime(sxc['deletiondate']) - ) - - oc.author_id = uidmap[sxc['deletionuserid']] - oc.save() - - delete_action.node = oc - delete_action.save() - - add_post_state("deleted", oc, delete_action) - else: - oc.author_id = uidmap[sxc.get('userid', 1)] - oc.save() - - create_action = orm.Action( - action_type = "comment", - user_id = oc.author_id, - node = oc, - action_date = oc.added_at - ) - - create_action.save() - oc.save() - - posts.append(int(oc.id)) - mapping[int(sxc['id'])] = int(oc.id) - - readTable(dump, "PostComments", callback) - return posts, mapping - - -def add_tags_to_post(post, tagmap): - tags = [tag for tag in [tagmap.get(name.strip()) for name in post.tagnames.split(u' ') if name] if tag] - post.tagnames = " ".join([t.name for t in tags]).strip() - post.tags = tags - create_and_activate_revision(post) - - -def create_and_activate_revision(post): - rev = orm.NodeRevision( - author_id = post.author_id, - body = post.body, - node_id = post.id, - revised_at = post.added_at, - revision = 1, - summary = 'Initial revision', - tagnames = post.tagnames, - title = post.title, - ) - - rev.save() - post.active_revision_id = rev.id - post.save() - -def post_vote_import(dump, uidmap, posts): -#votes = readTable(dump, "Posts2Votes") - close_reasons = {} - - def close_callback(r): - close_reasons[r['id']] = r['name'] - - readTable(dump, "CloseReasons", close_callback) - - user2vote = [] - - def callback(sxv): - action = orm.Action( - user_id=uidmap[sxv['userid']], - action_date = readTime(sxv['creationdate']), - ) - - if not int(sxv['postid']) in posts: return - node = orm.Node.objects.get(id=sxv['postid']) - action.node = node - - if sxv['votetypeid'] == '1': - answer = node - question = orm.Node.objects.get(id=answer.parent_id) - - action.action_type = "acceptanswer" - action.save() - - answer.marked = True - - question.extra_ref_id = answer.id - - answer.save() - question.save() - - elif sxv['votetypeid'] in ('2', '3'): - if not (action.node.id, action.user_id) in user2vote: - user2vote.append((action.node.id, action.user_id)) - - action.action_type = (sxv['votetypeid'] == '2') and "voteup" or "votedown" - action.save() - - ov = orm.Vote( - node_id = action.node.id, - user_id = action.user_id, - voted_at = action.action_date, - value = sxv['votetypeid'] == '2' and 1 or -1, - action = action - ) - ov.save() - else: - action.action_type = "unknown" - action.save() - - elif sxv['votetypeid'] in ('4', '12', '13'): - action.action_type = "flag" - action.save() - - of = orm.Flag( - node = action.node, - user_id = action.user_id, - flagged_at = action.action_date, - reason = '', - action = action - ) - - of.save() - - elif sxv['votetypeid'] == '5': - action.action_type = "favorite" - action.save() - - elif sxv['votetypeid'] == '6': - action.action_type = "close" - action.extra = dbsafe_encode(close_reasons[sxv['comment']]) - action.save() - - node.marked = True - node.save() - - elif sxv['votetypeid'] == '7': - action.action_type = "unknown" - action.save() - - node.marked = False - node.save() - - remove_post_state("closed", node) - - elif sxv['votetypeid'] == '10': - action.action_type = "delete" - action.save() - - elif sxv['votetypeid'] == '11': - action.action_type = "unknown" - action.save() - - remove_post_state("deleted", node) - - else: - action.action_type = "unknown" - action.save() - - if sxv.get('targetrepchange', None): - rep = orm.ActionRepute( - action = action, - date = action.action_date, - user_id = uidmap[sxv['targetuserid']], - value = int(sxv['targetrepchange']) - ) - - rep.save() - - if sxv.get('voterrepchange', None): - rep = orm.ActionRepute( - action = action, - date = action.action_date, - user_id = uidmap[sxv['userid']], - value = int(sxv['voterrepchange']) - ) - - rep.save() - - if action.action_type in ("acceptanswer", "delete", "close"): - state = {"acceptanswer": "accepted", "delete": "deleted", "close": "closed"}[action.action_type] - add_post_state(state, node, action) - - readTable(dump, "Posts2Votes", callback) - - -def comment_vote_import(dump, uidmap, comments): -#votes = readTable(dump, "Comments2Votes") - user2vote = [] - comments2score = {} - - def callback(sxv): - if sxv['votetypeid'] == "2": - comment_id = comments[int(sxv['postcommentid'])] - user_id = uidmap[sxv['userid']] - - if not (comment_id, user_id) in user2vote: - user2vote.append((comment_id, user_id)) - - action = orm.Action( - action_type = "voteupcomment", - user_id = user_id, - action_date = readTime(sxv['creationdate']), - node_id = comment_id - ) - action.save() - - ov = orm.Vote( - node_id = comment_id, - user_id = user_id, - voted_at = action.action_date, - value = 1, - action = action - ) - - ov.save() - - if not comment_id in comments2score: - comments2score[comment_id] = 1 - else: - comments2score[comment_id] += 1 - - readTable(dump, "Comments2Votes", callback) - - for cid, score in comments2score.items(): - orm.Node.objects.filter(id=cid).update(score=score) - - -def badges_import(dump, uidmap, post_list): -#node_ctype = orm['contenttypes.contenttype'].objects.get(name='node') - - sxbadges = {} - - def sxcallback(b): - sxbadges[int(b['id'])] = b - - readTable(dump, "Badges", sxcallback) - - obadges = dict([(b.cls, b) for b in orm.Badge.objects.all()]) - user_badge_count = {} - - sx_to_osqa = {} - - for id, sxb in sxbadges.items(): - cls = "".join(sxb['name'].replace('&', 'And').split(' ')) - - if cls in obadges: - sx_to_osqa[id] = obadges[cls] - else: - osqab = orm.Badge( - cls = cls, - awarded_count = 0, - type = sxb['class'] - ) - osqab.save() - sx_to_osqa[id] = osqab - - osqaawards = [] - - def callback(sxa): - badge = sx_to_osqa[int(sxa['badgeid'])] - - user_id = uidmap[sxa['userid']] - if not user_badge_count.get(user_id, None): - user_badge_count[user_id] = 0 - - action = orm.Action( - action_type = "award", - user_id = user_id, - action_date = readTime(sxa['date']) - ) - - action.save() - - osqaa = orm.Award( - user_id = uidmap[sxa['userid']], - badge = badge, - node_id = post_list[user_badge_count[user_id]], - awarded_at = action.action_date, - action = action - ) - - osqaa.save() - badge.awarded_count += 1 - user_badge_count[user_id] += 1 - - readTable(dump, "Users2Badges", callback) - - for badge in obadges.values(): - badge.save() - -def pages_import(dump, currid): - currid = IdIncrementer(currid) - registry = {} - #sx_pages = readTable(dump, "FlatPages") - - def callback(sxp): - currid.inc() - page = orm.Node( - id = currid.value, - node_type = "page", - title = sxp['name'], - body = b64decode(sxp['value']), - extra = dbsafe_encode({ - 'path': sxp['url'][1:], - 'mimetype': sxp['contenttype'], - 'template': (sxp['usemaster'] == "true") and "default" or "none", - 'render': "html", - 'sidebar': "", - 'sidebar_wrap': True, - 'sidebar_render': "html", - 'comments': False - }), - author_id = 1 - ) - - page.save() - registry[sxp['url'][1:]] = page.id - - create_action = orm.Action( - action_type = "newpage", - user_id = page.author_id, - node = page - ) - - create_action.save() - - if sxp['active'] == "true" and sxp['contenttype'] == "text/html": - pub_action = orm.Action( - action_type = "publish", - user_id = page.author_id, - node = page - ) - - pub_action.save() - add_post_state("published", page, pub_action) - - readTable(dump, "FlatPages", callback) - - kv = orm.KeyValue(key='STATIC_PAGE_REGISTRY', value=dbsafe_encode(registry)) - kv.save() - -sx2osqa_set_map = { -u'theme.html.name': 'APP_TITLE', -u'theme.html.footer': 'CUSTOM_FOOTER', -u'theme.html.sidebar': 'SIDEBAR_UPPER_TEXT', -u'theme.html.sidebar-low': 'SIDEBAR_LOWER_TEXT', -u'theme.html.welcome': 'APP_INTRO', -u'theme.html.head': 'CUSTOM_HEAD', -u'theme.html.header': 'CUSTOM_HEADER', -u'theme.css': 'CUSTOM_CSS', -} - -html_codes = ( -('&', '&'), -('<', '<'), -('>', '>'), -('"', '"'), -(''', "'"), -) - -def html_decode(html): - html = force_unicode(html) - - for args in html_codes: - html = html.replace(*args) - - return html - - -def static_import(dump): -#sx_sets = readTable(dump, "ThemeTextResources") - sx_unknown = {} - - def callback(set): - if unicode(set['name']) in sx2osqa_set_map: - try: - kv = orm.KeyValue.objects.get(key=sx2osqa_set_map[set['name']]) - kv.value = dbsafe_encode(html_decode(set['value'])) - except: - kv = orm.KeyValue( - key = sx2osqa_set_map[set['name']], - value = dbsafe_encode(html_decode(set['value'])) - ) - - kv.save() - else: - sx_unknown[set['name']] = html_decode(set['value']) - - readTable(dump, "ThemeTextResources", callback) - - unknown = orm.KeyValue(key='SXIMPORT_UNKNOWN_SETS', value=dbsafe_encode(sx_unknown)) - unknown.save() - -def disable_triggers(): - from south.db import db - if db.backend_name == "postgres": - db.execute_many(PG_DISABLE_TRIGGERS) - db.commit_transaction() - db.start_transaction() - -def enable_triggers(): - from south.db import db - if db.backend_name == "postgres": - db.start_transaction() - db.execute_many(PG_ENABLE_TRIGGERS) - db.commit_transaction() - -def reset_sequences(): - from south.db import db - if db.backend_name == "postgres": - db.start_transaction() - db.execute_many(PG_SEQUENCE_RESETS) - db.commit_transaction() - -def reindex_fts(): - from south.db import db - if db.backend_name == "postgres": - db.start_transaction() - db.execute_many("UPDATE forum_noderevision set id = id WHERE TRUE;") - db.commit_transaction() - - -def sximport(dump, options): - try: - disable_triggers() - triggers_disabled = True - except: - triggers_disabled = False - - uidmap = userimport(dump, options) - tagmap = tagsimport(dump, uidmap) - gc.collect() - - posts = postimport(dump, uidmap, tagmap) - gc.collect() - - posts, comments = comment_import(dump, uidmap, posts) - gc.collect() - - post_vote_import(dump, uidmap, posts) - gc.collect() - - comment_vote_import(dump, uidmap, comments) - gc.collect() - - badges_import(dump, uidmap, posts) - - pages_import(dump, max(posts)) - static_import(dump) - gc.collect() - - from south.db import db - db.commit_transaction() - - reset_sequences() - - if triggers_disabled: - enable_triggers() - reindex_fts() - - -PG_DISABLE_TRIGGERS = """ -ALTER table auth_user DISABLE TRIGGER ALL; -ALTER table auth_user_groups DISABLE TRIGGER ALL; -ALTER table auth_user_user_permissions DISABLE TRIGGER ALL; -ALTER table forum_keyvalue DISABLE TRIGGER ALL; -ALTER table forum_action DISABLE TRIGGER ALL; -ALTER table forum_actionrepute DISABLE TRIGGER ALL; -ALTER table forum_subscriptionsettings DISABLE TRIGGER ALL; -ALTER table forum_validationhash DISABLE TRIGGER ALL; -ALTER table forum_authkeyuserassociation DISABLE TRIGGER ALL; -ALTER table forum_tag DISABLE TRIGGER ALL; -ALTER table forum_markedtag DISABLE TRIGGER ALL; -ALTER table forum_node DISABLE TRIGGER ALL; -ALTER table forum_nodestate DISABLE TRIGGER ALL; -ALTER table forum_node_tags DISABLE TRIGGER ALL; -ALTER table forum_noderevision DISABLE TRIGGER ALL; -ALTER table forum_node_tags DISABLE TRIGGER ALL; -ALTER table forum_questionsubscription DISABLE TRIGGER ALL; -ALTER table forum_vote DISABLE TRIGGER ALL; -ALTER table forum_flag DISABLE TRIGGER ALL; -ALTER table forum_badge DISABLE TRIGGER ALL; -ALTER table forum_award DISABLE TRIGGER ALL; -ALTER table forum_openidnonce DISABLE TRIGGER ALL; -ALTER table forum_openidassociation DISABLE TRIGGER ALL; -""" - -PG_ENABLE_TRIGGERS = """ -ALTER table auth_user ENABLE TRIGGER ALL; -ALTER table auth_user_groups ENABLE TRIGGER ALL; -ALTER table auth_user_user_permissions ENABLE TRIGGER ALL; -ALTER table forum_keyvalue ENABLE TRIGGER ALL; -ALTER table forum_action ENABLE TRIGGER ALL; -ALTER table forum_actionrepute ENABLE TRIGGER ALL; -ALTER table forum_subscriptionsettings ENABLE TRIGGER ALL; -ALTER table forum_validationhash ENABLE TRIGGER ALL; -ALTER table forum_authkeyuserassociation ENABLE TRIGGER ALL; -ALTER table forum_tag ENABLE TRIGGER ALL; -ALTER table forum_markedtag ENABLE TRIGGER ALL; -ALTER table forum_node ENABLE TRIGGER ALL; -ALTER table forum_nodestate ENABLE TRIGGER ALL; -ALTER table forum_node_tags ENABLE TRIGGER ALL; -ALTER table forum_noderevision ENABLE TRIGGER ALL; -ALTER table forum_node_tags ENABLE TRIGGER ALL; -ALTER table forum_questionsubscription ENABLE TRIGGER ALL; -ALTER table forum_vote ENABLE TRIGGER ALL; -ALTER table forum_flag ENABLE TRIGGER ALL; -ALTER table forum_badge ENABLE TRIGGER ALL; -ALTER table forum_award ENABLE TRIGGER ALL; -ALTER table forum_openidnonce ENABLE TRIGGER ALL; -ALTER table forum_openidassociation ENABLE TRIGGER ALL; -""" - -PG_SEQUENCE_RESETS = """ -SELECT setval('"auth_user_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "auth_user"; -SELECT setval('"auth_user_groups_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "auth_user_groups"; -SELECT setval('"auth_user_user_permissions_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "auth_user_user_permissions"; -SELECT setval('"forum_keyvalue_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_keyvalue"; -SELECT setval('"forum_action_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_action"; -SELECT setval('"forum_actionrepute_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_actionrepute"; -SELECT setval('"forum_subscriptionsettings_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_subscriptionsettings"; -SELECT setval('"forum_validationhash_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_validationhash"; -SELECT setval('"forum_authkeyuserassociation_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_authkeyuserassociation"; -SELECT setval('"forum_tag_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_tag"; -SELECT setval('"forum_markedtag_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_markedtag"; -SELECT setval('"forum_node_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_node"; -SELECT setval('"forum_nodestate_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_nodestate"; -SELECT setval('"forum_node_tags_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_node_tags"; -SELECT setval('"forum_noderevision_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_noderevision"; -SELECT setval('"forum_node_tags_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_node_tags"; -SELECT setval('"forum_questionsubscription_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_questionsubscription"; -SELECT setval('"forum_vote_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_vote"; -SELECT setval('"forum_flag_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_flag"; -SELECT setval('"forum_badge_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_badge"; -SELECT setval('"forum_award_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_award"; -SELECT setval('"forum_openidnonce_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_openidnonce"; -SELECT setval('"forum_openidassociation_id_seq"', coalesce(max("id"), 1) + 2, max("id") IS NOT null) FROM "forum_openidassociation"; -""" - - - - diff --git a/forum/modules/template_loader.py/forum_modules/sximporter/orm.py b/forum/modules/template_loader.py/forum_modules/sximporter/orm.py deleted file mode 100644 index ff23c85..0000000 --- a/forum/modules/template_loader.py/forum_modules/sximporter/orm.py +++ /dev/null @@ -1,265 +0,0 @@ -from south.v2 import DataMigration -from south.orm import FakeORM - -class Migration(DataMigration): - def forwards(self, orm): - pass - - - def backwards(self, orm): - "Write your backwards methods here." - - models = { - 'auth.group': { - 'Meta': {'object_name': 'Group'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}), - 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}) - }, - 'auth.permission': { - 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'}, - 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) - }, - 'auth.user': { - 'Meta': {'object_name': 'User'}, - 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}), - 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}), - 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}), - 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}), - 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'}) - }, - 'contenttypes.contenttype': { - 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"}, - 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}), - 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}) - }, - 'forum.action': { - 'Meta': {'object_name': 'Action'}, - 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}), - 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"}) - }, - 'forum.actionrepute': { - 'Meta': {'object_name': 'ActionRepute'}, - 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}), - 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'}) - }, - 'forum.authkeyuserassociation': { - 'Meta': {'object_name': 'AuthKeyUserAssociation'}, - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"}) - }, - 'forum.award': { - 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.badge': { - 'Meta': {'object_name': 'Badge'}, - 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}), - 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'type': ('django.db.models.fields.SmallIntegerField', [], {}) - }, - 'forum.flag': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"}) - }, - 'forum.keyvalue': { - 'Meta': {'object_name': 'KeyValue'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.markedtag': { - 'Meta': {'object_name': 'MarkedTag'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"}) - }, - 'forum.node': { - 'Meta': {'object_name': 'Node'}, - 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}), - 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}), - 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}), - 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}), - 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}), - 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}), - 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}), - 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}), - 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.noderevision': { - 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'}, - 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}), - 'body': ('django.db.models.fields.TextField', [], {}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}), - 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}), - 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}), - 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}), - 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}) - }, - 'forum.nodestate': { - 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}), - 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}) - }, - 'forum.openidassociation': { - 'Meta': {'object_name': 'OpenIdAssociation'}, - 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}), - 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'issued': ('django.db.models.fields.IntegerField', [], {}), - 'lifetime': ('django.db.models.fields.IntegerField', [], {}), - 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}), - 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'}) - }, - 'forum.openidnonce': { - 'Meta': {'object_name': 'OpenIdNonce'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}), - 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}), - 'timestamp': ('django.db.models.fields.IntegerField', [], {}) - }, - 'forum.questionsubscription': { - 'Meta': {'object_name': 'QuestionSubscription'}, - 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 1, 13, 6, 46, 789996)'}), - 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.subscriptionsettings': { - 'Meta': {'object_name': 'SubscriptionSettings'}, - 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}), - 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}), - 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}), - 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}), - 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"}) - }, - 'forum.tag': { - 'Meta': {'object_name': 'Tag'}, - 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}), - 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}) - }, - 'forum.user': { - 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']}, - 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}), - 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}), - 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), - 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), - 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}), - 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}), - 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}), - 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}), - 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}) - }, - 'forum.userproperty': { - 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'}, - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}), - 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}) - }, - 'forum.validationhash': { - 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'}, - 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 2, 13, 6, 46, 883626)'}), - 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}) - }, - 'forum.vote': { - 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'}, - 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}), - 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), - 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}), - 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}), - 'value': ('django.db.models.fields.SmallIntegerField', [], {}), - 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}) - } - } - - complete_apps = ['forum'] - -orm = FakeORM(Migration, "forum") - diff --git a/forum/modules/template_loader.py/forum_modules/sximporter/templates/page.html b/forum/modules/template_loader.py/forum_modules/sximporter/templates/page.html deleted file mode 100644 index 0011d1d..0000000 --- a/forum/modules/template_loader.py/forum_modules/sximporter/templates/page.html +++ /dev/null @@ -1,27 +0,0 @@ -{% extends "osqaadmin/base.html" %} - -{% load i18n %} -{% load user_tags %} - -{% block subtitle %} - {% trans "SX Importer" %} -{% endblock %} -{% block description %} - {% trans "Welcome to Stack Exchange dump importer." %} -{% endblock %} - -{% block admincontent %} -
    -
    - {% trans "Your user id in stack exchange" %} -
    - - - {% trans "Merge users with same user name and email" %}
    - - -
    - {% for n in names %} -

    {{ n }}

    - {% endfor %} -{% endblock %} \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/sximporter/urls.py b/forum/modules/template_loader.py/forum_modules/sximporter/urls.py deleted file mode 100644 index 85fa636..0000000 --- a/forum/modules/template_loader.py/forum_modules/sximporter/urls.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.conf.urls.defaults import * -from django.views.generic.simple import direct_to_template -from django.utils.translation import ugettext as _ - -from views import sximporter - -urlpatterns = patterns('', - url(r'^%s%s$' % (_('admin/'), _('sximporter/')), sximporter, name='sximporter'), -) \ No newline at end of file diff --git a/forum/modules/template_loader.py/forum_modules/sximporter/views.py b/forum/modules/template_loader.py/forum_modules/sximporter/views.py deleted file mode 100644 index dcca241..0000000 --- a/forum/modules/template_loader.py/forum_modules/sximporter/views.py +++ /dev/null @@ -1,30 +0,0 @@ -from django.shortcuts import render_to_response -from django.template import RequestContext -from forum.views.admin import super_user_required -import importer -from zipfile import ZipFile -import os - -@super_user_required -def sximporter(request): - list = [] - if request.method == "POST" and "dump" in request.FILES: - dump = ZipFile(request.FILES['dump']) - members = [f for f in dump.namelist() if f.endswith('.xml')] - extract_to = os.path.join(os.path.dirname(__file__), 'tmp') - - if not os.path.exists(extract_to): - os.makedirs(extract_to) - - for m in members: - f = open(os.path.join(extract_to, m), 'w') - f.write(dump.read(m)) - f.close() - - #dump.extractall(extract_to, members) - dump.close() - importer.sximport(extract_to, request.POST) - - return render_to_response('modules/sximporter/page.html', { - 'names': list - }, context_instance=RequestContext(request)) diff --git a/forum/modules/template_loader.py/locale/bg/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/bg/LC_MESSAGES/django.mo deleted file mode 100755 index 31395ed..0000000 Binary files a/forum/modules/template_loader.py/locale/bg/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/bg/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/bg/LC_MESSAGES/django.po deleted file mode 100755 index 5839f56..0000000 --- a/forum/modules/template_loader.py/locale/bg/LC_MESSAGES/django.po +++ /dev/null @@ -1,9070 +0,0 @@ -# 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 , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-01-28 23:44+0200\n" -"PO-Revision-Date: 2010-12-08 23:13\n" -"Last-Translator: \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Translated-Using: django-rosetta 0.5.6\n" - -#: forum/feed.py:70 forum/models/page.py:5 forum/utils/pagination.py:162 -#: forum/views/readers.py:166 forum/views/readers.py:282 -#, fuzzy -msgid "page" -msgstr "страница" - -#: forum/feed.py:70 forum/utils/pagination.py:158 forum/views/readers.py:166 -msgid "pagesize" -msgstr "" - -#: forum/feed.py:70 forum/utils/pagination.py:166 forum/views/readers.py:166 -msgid "sort" -msgstr "подреди" - -#: forum/feed.py:86 -#, fuzzy, python-format -msgid "Answers to: %s" -msgstr "Отговори на %s" - -#: forum/feed.py:100 -#, fuzzy, python-format -msgid "Answer by %s" -msgstr "Отговори от %s" - -#: forum/feed.py:102 -#, python-format -msgid "Comment by %(cauthor)s on %(pauthor)s's %(qora)s" -msgstr "Коментар от %(cauthor)s на %(pauthor)s %(qora)s" - -#: forum/feed.py:103 forum/models/answer.py:5 -#: forum/skins/default/templates/osqaadmin/dashboard.html:24 -#: forum/skins/default/templates/osqaadmin/index.html:26 -#: forum/skins/default/templates/question_list/item.html:15 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:24 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:26 -#: forum/skins/zapprotect/templates/question_list/item.html:15 -#: forum/views/writers.py:238 forum_modules/akismet/startup.py:59 -msgid "answer" -msgstr "отговор" - -#: forum/feed.py:103 forum/models/question.py:19 -#: forum/skins/default/templates/osqaadmin/dashboard.html:19 -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:19 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:21 -#: forum/views/writers.py:89 forum_modules/akismet/startup.py:58 -msgid "question" -msgstr "въпрос" - -#: forum/registry.py:11 forum/registry.py:46 -#: forum/skins/default/templates/index.html:15 -#: forum/skins/default/templates/question_edit_tips.html:22 -#: forum/skins/zapprotect/templates/index.html:15 -#: forum/skins/zapprotect/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "чзв" - -#: forum/registry.py:12 forum/registry.py:47 -#: forum/skins/default/templates/index.html:14 -#: forum/skins/zapprotect/templates/index.html:14 -msgid "about" -msgstr "за нас" - -#: forum/registry.py:15 -msgid "logout" -msgstr "изход" - -#: forum/registry.py:15 -msgid "login" -msgstr "вход" - -#: forum/registry.py:28 -msgid "administration" -msgstr "администрация" - -#: forum/registry.py:41 -#, fuzzy -msgid "contact" -msgstr "съдържание" - -#: forum/registry.py:44 -#, fuzzy -msgid "support" -msgstr "плюс" - -#: forum/registry.py:45 -#, fuzzy -msgid "privacy" -msgstr "privacy" - -#: forum/registry.py:60 forum/skins/default/templates/users/edit.html:33 -#: forum/skins/zapprotect/templates/users/edit.html:33 -msgid "edit profile" -msgstr "Редакция на профила" - -#: forum/registry.py:66 -#, fuzzy -msgid "authentication settings" -msgstr "Опции за оторизиране" - -#: forum/registry.py:72 -#, fuzzy -msgid "email notification settings" -msgstr "Опции за оторизиране" - -#: forum/registry.py:78 -msgid "other preferences" -msgstr "други предпочитания" - -#: forum/registry.py:82 -msgid "Moderation tools" -msgstr "Модераторски инструменти" - -#: forum/registry.py:84 -#, fuzzy -msgid "withdraw suspension" -msgstr "Изпратете Вашия отговор" - -#: forum/registry.py:84 -msgid "suspend this user" -msgstr "спри този потребител" - -#: forum/registry.py:90 -msgid "give/take karma" -msgstr "дай/вземи карма" - -#: forum/registry.py:97 -msgid "remove moderator status" -msgstr "премахване на модераторски статут" - -#: forum/registry.py:97 -msgid "grant moderator status" -msgstr "дай модераторски статут" - -#: forum/registry.py:103 -msgid "remove super user status" -msgstr "премахване на супер потребителското състояние" - -#: forum/registry.py:103 -msgid "grant super user status" -msgstr "предоставяне на статут супер потребител" - -#: forum/urls.py:34 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:43 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:48 -msgid "faq/" -msgstr "" - -#: forum/urls.py:48 -msgid "FAQ" -msgstr "" - -#: forum/urls.py:50 -msgid "about/" -msgstr "" - -#: forum/urls.py:51 -msgid "About" -msgstr "За нас" - -#: forum/urls.py:52 -msgid "markdown_help/" -msgstr "" - -#: forum/urls.py:55 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:56 -msgid "logout/" -msgstr "" - -#: forum/urls.py:57 -msgid "answers/" -msgstr "" - -#: forum/urls.py:57 forum/urls.py:69 forum/urls.py:126 forum/urls.py:200 -msgid "edit/" -msgstr "" - -#: forum/urls.py:59 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:60 forum/urls.py:61 forum/urls.py:62 forum/urls.py:65 -#: forum/urls.py:66 forum/urls.py:69 forum/urls.py:71 forum/urls.py:73 -#: forum/urls.py:75 forum/urls.py:101 forum/urls.py:102 forum/urls.py:103 -msgid "questions/" -msgstr "" - -#: forum/urls.py:61 -msgid "ask/" -msgstr "" - -#: forum/urls.py:62 -#, fuzzy -msgid "related_questions/" -msgstr "Подобни въпроси" - -#: forum/urls.py:65 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:71 -msgid "close/" -msgstr "" - -#: forum/urls.py:73 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:75 -msgid "answer/" -msgstr "" - -#: forum/urls.py:76 -msgid "pending-data/" -msgstr "" - -#: forum/urls.py:78 -msgid "vote/" -msgstr "" - -#: forum/urls.py:80 -#, fuzzy -msgid "like_comment/" -msgstr "answer comment" - -#: forum/urls.py:81 -#, fuzzy -msgid "comment/" -msgstr "post a comment" - -#: forum/urls.py:82 -#, fuzzy -msgid "delete_comment/" -msgstr "post a comment" - -#: forum/urls.py:84 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:86 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:88 -msgid "flag/" -msgstr "" - -#: forum/urls.py:89 -msgid "delete/" -msgstr "" - -#: forum/urls.py:90 forum/urls.py:91 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:92 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:93 -msgid "matching_users/" -msgstr "" - -#: forum/urls.py:94 -msgid "node_markdown/" -msgstr "" - -#: forum/urls.py:95 -#, fuzzy -msgid "convert/" -msgstr "съдържание" - -#: forum/urls.py:97 -msgid "wikify/" -msgstr "" - -#: forum/urls.py:99 -msgid "question/" -msgstr "" - -#: forum/urls.py:106 forum/urls.py:107 -msgid "tags/" -msgstr "" - -#: forum/urls.py:109 forum/urls.py:113 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:109 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:113 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:117 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:122 forum/urls.py:126 forum/urls.py:127 forum/urls.py:129 -#: forum/urls.py:131 forum/urls.py:133 forum/urls.py:135 forum/urls.py:137 -#: forum/urls.py:139 forum/urls.py:141 forum/urls.py:143 forum/urls.py:145 -msgid "users/" -msgstr "" - -#: forum/urls.py:127 -#, fuzzy -msgid "award/" -msgstr "all badges" - -#: forum/urls.py:129 -#, fuzzy -msgid "suspend/" -msgstr "You can safely re-use the same login for all OpenID-enabled websites." - -#: forum/urls.py:131 -msgid "powers/" -msgstr "" - -#: forum/urls.py:133 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:135 -msgid "preferences/" -msgstr "" - -#: forum/urls.py:137 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:139 -#, fuzzy -msgid "reputation/" -msgstr "karma" - -#: forum/urls.py:141 -msgid "votes/" -msgstr "" - -#: forum/urls.py:143 -msgid "recent/" -msgstr "" - -#: forum/urls.py:146 forum/urls.py:147 -msgid "badges/" -msgstr "" - -#: forum/urls.py:150 -msgid "upload/" -msgstr "" - -#: forum/urls.py:151 -msgid "search/" -msgstr "" - -#: forum/urls.py:152 -#, fuzzy -msgid "contact/" -msgstr "съдържание" - -#: forum/urls.py:156 forum/urls.py:157 forum/urls.py:158 forum/urls.py:160 -#: forum/urls.py:162 forum/urls.py:164 forum/urls.py:166 forum/urls.py:168 -#: forum/urls.py:170 forum/urls.py:172 forum/urls.py:174 forum/urls.py:176 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:156 forum/urls.py:158 -msgid "signin/" -msgstr "" - -#: forum/urls.py:157 -msgid "signout/" -msgstr "" - -#: forum/urls.py:160 -msgid "done/" -msgstr "" - -#: forum/urls.py:162 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:164 -msgid "validate/" -msgstr "" - -#: forum/urls.py:166 forum/urls.py:168 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:170 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:172 forum/urls.py:174 -msgid "providers/" -msgstr "" - -#: forum/urls.py:172 -msgid "remove/" -msgstr "" - -#: forum/urls.py:174 -msgid "add/" -msgstr "" - -#: forum/urls.py:176 -msgid "send-validation/" -msgstr "" - -#: forum/urls.py:179 forum/urls.py:180 forum/urls.py:182 forum/urls.py:183 -#: forum/urls.py:185 forum/urls.py:187 forum/urls.py:189 forum/urls.py:191 -#: forum/urls.py:193 forum/urls.py:195 forum/urls.py:198 forum/urls.py:200 -#: forum/urls.py:203 forum/urls.py:206 forum_modules/exporter/urls.py:8 -#: forum_modules/exporter/urls.py:9 forum_modules/exporter/urls.py:10 -#: forum_modules/exporter/urls.py:12 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:180 -msgid "switch_interface/" -msgstr "" - -#: forum/urls.py:182 -msgid "statistics/" -msgstr "" - -#: forum/urls.py:183 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:185 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:187 -msgid "go_defaults/" -msgstr "" - -#: forum/urls.py:189 forum/urls.py:206 -#, fuzzy -msgid "settings/" -msgstr "karma" - -#: forum/urls.py:191 -msgid "maintenance/" -msgstr "" - -#: forum/urls.py:193 -msgid "flagged_posts/" -msgstr "" - -#: forum/urls.py:195 forum/urls.py:198 forum/urls.py:200 -msgid "static_pages/" -msgstr "" - -#: forum/urls.py:198 -msgid "new/" -msgstr "" - -#: forum/urls.py:203 -msgid "tools/" -msgstr "" - -#: forum/actions/meta.py:39 -#, python-format -msgid "%(user)s %(vote_desc)s %(post_desc)s" -msgstr "" - -#: forum/actions/meta.py:58 -#, fuzzy -msgid "voted up" -msgstr "поддържан" - -#: forum/actions/meta.py:74 -msgid "voted down" -msgstr "отхвърлен" - -#: forum/actions/meta.py:88 -#, fuzzy -msgid "liked" -msgstr "зададено" - -#: forum/actions/meta.py:116 -msgid "No reason given" -msgstr "Без да изтъква причини" - -#: forum/actions/meta.py:121 -#, python-format -msgid "%(user)s flagged %(post_desc)s: %(reason)s" -msgstr "" - -#: forum/actions/meta.py:152 forum/actions/user.py:32 -#: forum/models/action.py:218 -msgid "your" -msgstr "твой" - -#: forum/actions/meta.py:152 forum/actions/user.py:32 -msgid "his" -msgstr "негов" - -#: forum/actions/meta.py:156 -#, python-format -msgid "" -"%(user)s accepted %(answerer)s answer on %(asker)s question %(question)s" -msgstr "" - -#: forum/actions/meta.py:172 -#, python-format -msgid "%(user)s marked %(post_desc)s as favorite" -msgstr "" - -#: forum/actions/meta.py:192 -#, python-format -msgid "%(user)s deleted %(post_desc)s" -msgstr "" - -#: forum/actions/meta.py:201 -msgid "flagged by multiple users: " -msgstr "отбелязан от няколко потребителя:" - -#: forum/actions/node.py:8 -msgid "Initial revision" -msgstr "Първоначална версия" - -#: forum/actions/node.py:19 forum/templatetags/node_tags.py:203 -msgid "asked" -msgstr "зададено" - -#: forum/actions/node.py:31 -#, fuzzy, python-format -msgid "%(user)s asked %(question)s" -msgstr "%(user)s попита %(question)s" - -#: forum/actions/node.py:37 forum/templatetags/node_tags.py:204 -msgid "answered" -msgstr "отговорено" - -#: forum/actions/node.py:49 -#, fuzzy, python-format -msgid "%(user)s answered %(asker)s on %(question)s" -msgstr "" -"
    %(num_q)s
    questions without " -"accepted answers" - -#: forum/actions/node.py:56 -#, fuzzy -msgid "commented" -msgstr "post a comment" - -#: forum/actions/node.py:64 -#, fuzzy, python-format -msgid "%(user)s commented on %(post_desc)s" -msgstr "Нов коментар на %(question_title)s" - -#: forum/actions/node.py:70 forum/actions/page.py:23 -#, fuzzy -msgid "edited" -msgstr "редактиран" - -#: forum/actions/node.py:82 -#, python-format -msgid "%(user)s edited %(post_desc)s" -msgstr "%(user)s редактира %(post_desc)s" - -#: forum/actions/node.py:91 -msgid "retagged" -msgstr "претагнато" - -#: forum/actions/node.py:95 -msgid "Retag" -msgstr "Нов таг" - -#: forum/actions/node.py:104 -#, python-format -msgid "%(user)s retagged %(post_desc)s" -msgstr "%(user)s ретагна %(post_desc)s" - -#: forum/actions/node.py:113 -#, fuzzy -msgid "reverted" -msgstr "претагнато" - -#: forum/actions/node.py:127 -#, python-format -msgid "" -"%(user)s reverted %(post_desc)s from revision %(initial)d (%(initial_sum)s) " -"to revision %(final)d (%(final_sum)s)" -msgstr "" -"%(user)s върна %(post_desc)s от ревизия %(initial)d (%(initial_sum)s) до " -"ревизия %(final)d (%(final_sum)s)" - -#: forum/actions/node.py:138 -#, fuzzy -msgid "closed" -msgstr "затворено" - -#: forum/actions/node.py:152 -#, python-format -msgid "%(user)s closed %(post_desc)s: %(reason)s" -msgstr "%(user)s затвори %(post_desc)s: %(reason)s" - -#: forum/actions/node.py:159 -#, fuzzy -msgid "converted" -msgstr "отхвърлен" - -#: forum/actions/node.py:177 -#, python-format -msgid "%(user)s converted an answer to %(question)s into a comment" -msgstr "%(user)s превърна отговора на %(question)s в коментар" - -#: forum/actions/node.py:183 -msgid "wikified" -msgstr "" - -#: forum/actions/node.py:195 -#, python-format -msgid "%(user)s marked %(node)s as community wiki." -msgstr "%(user)s отбеляза %(node)s като част от уийки общност.\t" - -#: forum/actions/page.py:6 -#, fuzzy -msgid "created" -msgstr "създадено" - -#: forum/actions/page.py:17 -#, python-format -msgid "%(user)s created a new page titled %(page)s" -msgstr "%(user)s създаде нова страница озаглавена %(page)s" - -#: forum/actions/page.py:36 -#, python-format -msgid "%(user)s edited the page titled %(page)s" -msgstr "%(user)s редактира страницата озаглавена %(page)s" - -#: forum/actions/page.py:42 -msgid "published" -msgstr "публикувано" - -#: forum/actions/page.py:55 -#, fuzzy, python-format -msgid "%(user)s published a new page titled %(page)s" -msgstr "%(username)s е нов потребител на %(app_name)s" - -#: forum/actions/user.py:10 -#, fuzzy -msgid "joined" -msgstr "игнорирано" - -#: forum/actions/user.py:20 -#, python-format -msgid "%(user)s %(have_has)s joined the %(app_name)s Q&A community" -msgstr "%(user)s %(have_has)s се присъедини към %(app_name)s Q&A общността" - -#: forum/actions/user.py:22 -msgid "have" -msgstr "има" - -#: forum/actions/user.py:22 -msgid "has" -msgstr "има" - -#: forum/actions/user.py:27 -#, fuzzy -msgid "edited profile" -msgstr "редактиран потребителски профил" - -#: forum/actions/user.py:30 -#, python-format -msgid "%(user)s edited %(hes_or_your)s %(profile_link)s" -msgstr "%(user)s редактира %(hes_or_your)s %(profile_link)s" - -#: forum/actions/user.py:33 -#, fuzzy -msgid "profile" -msgstr "профил" - -#: forum/actions/user.py:37 -msgid "gave bonus" -msgstr "даде бонус" - -#: forum/actions/user.py:49 -#, python-format -msgid "Congratulations, you have been awarded an extra %s reputation points." -msgstr "Поздравления, вие сте наградени с допълнителни %s точки." - -#: forum/actions/user.py:50 -msgid "Thank you" -msgstr "Благодаря" - -#: forum/actions/user.py:53 -#, python-format -msgid "You have been penalized in %s reputation points." -msgstr "Вие сте били санкционирани с %s точки." - -#: forum/actions/user.py:57 forum/templatetags/extra_tags.py:93 -#: forum_modules/exporter/templates/running.html:157 -msgid "unknown" -msgstr "неизвестен" - -#: forum/actions/user.py:62 -#, python-format -msgid "" -"%(user)s awarded an extra %(value)s reputation points to %(users)s: %" -"(message)s" -msgstr "%(user)s награди с %(value)s точки %(users)s: %(message)s\t" - -#: forum/actions/user.py:67 -#, python-format -msgid "" -"%(user)s penalised %(users)s in %(value)s reputation points: %(message)s" -msgstr "%(user)s наказа %(users)s с %(value)s точки: %(message)s\t" - -#: forum/actions/user.py:75 -#, fuzzy -msgid "was awarded" -msgstr "всички награди" - -#: forum/actions/user.py:103 -#, python-format -msgid "" -"Congratulations, you have received a badge '%(badge_name)s'. Check out your profile." -msgstr "" -"Честито! Получихте значка '%(badge_name)s'. Проверете във профила си.\t" - -#: forum/actions/user.py:125 -#, python-format -msgid "%(user)s %(were_was)s awarded the %(badge_name)s badge" -msgstr "%(user)s %(were_was)s спечели %(badge_name)s значка" - -#: forum/actions/user.py:127 -#, fuzzy -msgid "were" -msgstr "бяха" - -#: forum/actions/user.py:127 -msgid "was" -msgstr "беше" - -#: forum/actions/user.py:132 -#, fuzzy -msgid "suspended" -msgstr "обновено" - -#: forum/actions/user.py:150 -msgid "Your suspension has been removed." -msgstr "Вашата забрана беше отменена." - -#: forum/actions/user.py:154 -#, python-format -msgid "for %s days" -msgstr "за %s дена" - -#: forum/actions/user.py:156 -msgid "indefinetely" -msgstr "" - -#: forum/actions/user.py:158 -#, python-format -msgid "%(user)s suspended %(users)s %(suspension)s: %(msg)s" -msgstr "" - -#: forum/actions/user.py:160 forum/views/users.py:241 -msgid "Bad behaviour" -msgstr "Лошо поведение" - -#: forum/forms/admin.py:16 -#, fuzzy -msgid "Please input at least one ip address" -msgstr "въведете поне един IP адрес" - -#: forum/forms/admin.py:22 -#, python-format -msgid "Invalid ip address: %s" -msgstr "Невалиден IP адрес: %s" - -#: forum/forms/admin.py:25 -msgid "Please use the dotted quad notation for the ip addresses" -msgstr "" - -#: forum/forms/admin.py:32 -msgid "Allow ips" -msgstr "" - -#: forum/forms/admin.py:33 -msgid "" -"Comma separated list of ips allowed to access the site while in maintenance" -msgstr "" - -#: forum/forms/admin.py:37 -#: forum/skins/default/templates/users/karma_bonus.html:9 -#: forum/skins/zapprotect/templates/users/karma_bonus.html:9 -#, fuzzy -msgid "Message" -msgstr "Вашето съобщение:" - -#: forum/forms/admin.py:38 -msgid "A message to display to your site visitors while in maintainance mode" -msgstr "" - -#: forum/forms/admin.py:43 -msgid "Default" -msgstr "" - -#: forum/forms/admin.py:44 -msgid "Default with sidebar" -msgstr "" - -#: forum/forms/admin.py:45 -#, fuzzy -msgid "None" -msgstr "бронз" - -#: forum/forms/admin.py:49 forum/settings/static.py:6 -#, fuzzy -msgid "Markdown" -msgstr "Markdown съвети" - -#: forum/forms/admin.py:50 forum/settings/static.py:7 -msgid "HTML" -msgstr "" - -#: forum/forms/admin.py:51 forum/settings/static.py:8 -msgid "Escaped" -msgstr "" - -#: forum/forms/admin.py:76 -#: forum/skins/default/templates/osqaadmin/nodeman.html:284 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:284 -#, fuzzy -msgid "Title" -msgstr "заглавие" - -#: forum/forms/admin.py:78 -msgid "Page URL" -msgstr "URL адрес на страницата" - -#: forum/forms/admin.py:80 -#, fuzzy -msgid "Page Content" -msgstr "съдържание" - -#: forum/forms/admin.py:81 -msgid "Mime Type" -msgstr "Mime Тип" - -#: forum/forms/admin.py:84 -msgid "Render Mode" -msgstr "Render Mode" - -#: forum/forms/admin.py:87 -msgid "Template" -msgstr "Шаблон" - -#: forum/forms/admin.py:88 -msgid "Sidebar Content" -msgstr "" - -#: forum/forms/admin.py:89 -msgid "Wrap sidebar block" -msgstr "" - -#: forum/forms/admin.py:91 -msgid "Sidebar Render Mode" -msgstr "" - -#: forum/forms/admin.py:93 -#, fuzzy -msgid "Allow comments" -msgstr "post a comment" - -#: forum/forms/admin.py:100 -#, fuzzy -msgid "send validation email" -msgstr "Stop Email" - -#: forum/forms/admin.py:105 -#, fuzzy -msgid "email address" -msgstr "Имейл адрес (не го споделяме)" - -#: forum/forms/auth.py:21 -#, fuzzy -msgid "Your account email" -msgstr "" -"Нов имейл: (няма да бъде споделян, трябва да бъде " -"действителен)" - -#: forum/forms/auth.py:23 -msgid "You cannot leave this field blank" -msgstr "Трябва да въведете нещо" - -#: forum/forms/auth.py:24 forum/forms/general.py:103 -msgid "please enter a valid email address" -msgstr "въведете действителен имейл адрес" - -#: forum/forms/auth.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "За съжаление този имейл не е в нашата база данни." - -#: forum/forms/auth.py:40 -msgid "okay, let's try!" -msgstr "добре, ще опитам" - -#: forum/forms/auth.py:41 -msgid "no OSQA community email please, thanks" -msgstr "не искам имейли от Zapprotect" - -#: forum/forms/auth.py:44 -msgid "please choose one of the options above" -msgstr "изберете някоя от следните опции" - -#: forum/forms/auth.py:51 -msgid "Current password" -msgstr "Текуща парола" - -#: forum/forms/auth.py:62 -msgid "" -"Old password is incorrect. Please enter the correct " -"password." -msgstr "Текущата парола не е вярна. Моля, въведете истинската парола." - -#: forum/forms/general.py:27 -msgid "this field is required" -msgstr "Това поле е задължително" - -#: forum/forms/general.py:40 -msgid "choose a username" -msgstr "Изберете потребителско име" - -#: forum/forms/general.py:45 -msgid "user name is required" -msgstr "потребителско име е необходимо" - -#: forum/forms/general.py:46 -msgid "sorry, this name is taken, please choose another" -msgstr "За съжаление, това име е взето, моля изберете друго" - -#: forum/forms/general.py:47 -msgid "sorry, this name is not allowed, please choose another" -msgstr "За съжаление, това име не е позволено, моля изберете друго" - -#: forum/forms/general.py:48 -msgid "sorry, there is no user with this name" -msgstr "За съжаление, няма потребител с това име" - -#: forum/forms/general.py:49 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" -"За съжаление, ние имаме една сериозна грешка - потребителско име се взема от " -"няколко потребители" - -#: forum/forms/general.py:50 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" -"потребителското име може да се състои само от букви, празно място и " -"подчертаване" - -#: forum/forms/general.py:51 -#, python-format -msgid "user name is to short, please use at least %d characters" -msgstr "потребителското име е прекалено кратко, използвайте поне %d символа" - -#: forum/forms/general.py:101 -msgid "your email address" -msgstr "Вашия имейл (не се споделя)" - -#: forum/forms/general.py:102 -msgid "email address is required" -msgstr "имейл адреса се изисква" - -#: forum/forms/general.py:104 -msgid "this email is already used by someone else, please choose another" -msgstr "този имейл вече се използва от някой друг, моля изберете друг" - -#: forum/forms/general.py:129 -msgid "choose password" -msgstr "Изберете парола" - -#: forum/forms/general.py:130 -msgid "password is required" -msgstr "Изисква се парола" - -#: forum/forms/general.py:133 -msgid "retype password" -msgstr "Парола (напишете отново)" - -#: forum/forms/general.py:134 -msgid "please, retype your password" -msgstr "Моля, въведете отново паролата си" - -#: forum/forms/general.py:135 -msgid "sorry, entered passwords did not match, please try again" -msgstr "Съжаляваме, вписаните пароли не съвпадат, опитайте отново" - -#: forum/forms/qanda.py:19 -#: forum/skins/default/templates/sidebar/markdown_help.html:12 -#: forum/skins/default/templates/sidebar/markdown_help.html:17 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:12 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:17 -msgid "title" -msgstr "заглавие" - -#: forum/forms/qanda.py:20 -msgid "please enter a descriptive title for your question" -msgstr "въведете описателно заглавие на въпроса" - -#: forum/forms/qanda.py:25 -#, fuzzy, python-format -msgid "title must be must be at least %s characters" -msgstr "заглавието трябва да бъде > 10 символа" - -#: forum/forms/qanda.py:33 -msgid "content" -msgstr "съдържание" - -#: forum/forms/qanda.py:46 -#, fuzzy, python-format -msgid "question content must be at least %s characters" -msgstr "съдържанието на въпроса трябва да бъде > 10 символа" - -#: forum/forms/qanda.py:57 -#, fuzzy, python-format -msgid "answer content must be at least %s characters" -msgstr "съдържанието на въпроса трябва да бъде > 10 символа" - -#: forum/forms/qanda.py:68 forum/skins/default/templates/header.html:35 -#: forum/skins/default/templates/search.html:20 -#: forum/skins/zapprotect/templates/header.html:35 -#: forum/skins/zapprotect/templates/search.html:20 forum/views/readers.py:218 -msgid "tags" -msgstr "тагове" - -#: forum/forms/qanda.py:70 -#, fuzzy, python-format -msgid "" -"Tags are short keywords, with no spaces within. At least %(min)s and up to %" -"(max)s tags can be used." -msgstr "" -"Таговете са кратки ключови думи, без разстояние между тях. Можете да " -"използвате до 5 тага." - -#: forum/forms/qanda.py:86 -#, python-format -msgid "please use between %(min)s and %(max)s tags" -msgstr "моля използвайте от %(min)s до %(max)s тага" - -#: forum/forms/qanda.py:92 -#, python-format -msgid "please use between %(min)s and %(max)s characters in you tags" -msgstr "използвайте от %(min)s до %(max)s символа в таговете" - -#: forum/forms/qanda.py:94 -#, fuzzy -msgid "" -"please use following characters in tags: letters , numbers, and characters " -"'.-_'" -msgstr "за таговете използвайте символите a-z, а-я, числа, знаци и '.-_#'" - -#: forum/forms/qanda.py:104 -#, python-format -msgid "" -"You don't have enough reputation to create new tags. The following tags do " -"not exist yet: %s" -msgstr "" -"Вие не разполагат с достатъчно репутация, за да създавате нови тагове. " -"Следните бележки не съществуват още: %s" - -#: forum/forms/qanda.py:114 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:26 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "уики общност" - -#: forum/forms/qanda.py:115 -msgid "" -"if you choose community wiki option, the question and answer do not generate " -"points and name of author will not be shown" -msgstr "" -"ако изберете уики общност, въпроса и отговора не генерират точки и името на " -"автора няма да бъде показвано" - -#: forum/forms/qanda.py:133 -msgid "update summary:" -msgstr "основна информация за обновяването:" - -#: forum/forms/qanda.py:134 -msgid "" -"enter a brief summary of your revision (e.g. fixed spelling, grammar, " -"improved style, this field is optional)" -msgstr "" -"въведете кратко заключение на новата ревизия (редактиран правопис, " -"граматика, подобрен стил, това поле не е задължително)" - -#: forum/forms/qanda.py:138 -msgid "Your message:" -msgstr "Вашето съобщение:" - -#: forum/forms/qanda.py:144 -msgid "Your name:" -msgstr "Вашето име:" - -#: forum/forms/qanda.py:145 -msgid "Email (not shared with anyone):" -msgstr "Имейл (не се споделя с никой):" - -#: forum/forms/qanda.py:236 -msgid "this email does not have to be linked to gravatar" -msgstr "този имейл не е нужно да бъде свързан с gravatar" - -#: forum/forms/qanda.py:237 -msgid "Real name" -msgstr "Истинско име" - -#: forum/forms/qanda.py:238 -msgid "Website" -msgstr "Уеб сайт" - -#: forum/forms/qanda.py:239 -msgid "Location" -msgstr "Местоположение" - -#: forum/forms/qanda.py:240 -msgid "Date of birth" -msgstr "Дата на раждане" - -#: forum/forms/qanda.py:240 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" -"няма да бъде показвано, използва се за изчисляване на възрастта, формат: " -"YYYY-MM-DD" - -#: forum/forms/qanda.py:241 -#: forum/skins/default/templates/account_settings.html:21 -#: forum/skins/default/templates/osqaadmin/moderation.html:68 -#: forum/skins/zapprotect/templates/account_settings.html:21 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:68 -msgid "Profile" -msgstr "Профил" - -#: forum/forms/qanda.py:246 -msgid "Screen name" -msgstr "Публично име" - -#: forum/forms/qanda.py:273 -msgid "this email has already been registered, please use another one" -msgstr "този имейл вече е използван, моля, въведете друг" - -#: forum/forms/qanda.py:278 -msgid "Instantly" -msgstr "Моментално" - -#: forum/forms/qanda.py:281 -msgid "No notifications" -msgstr "Без известия" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "За първи път тук? Проверете ЧЗП." - -#: forum/models/action.py:215 -msgid "You" -msgstr "Вие" - -#: forum/models/action.py:230 -#, fuzzy, python-format -msgid "on %(link)s" -msgstr "в %(link)s" - -#: forum/models/action.py:234 -#, python-format -msgid "%(user)s %(node_name)s %(node_desc)s" -msgstr "" - -#: forum/models/comment.py:6 forum/views/commands.py:230 -#: forum/views/commands.py:256 forum_modules/akismet/startup.py:60 -#, fuzzy -msgid "comment" -msgstr "коментирай" - -#: forum/models/meta.py:63 -msgid "Unknown" -msgstr "Неизвестен" - -#: forum/models/meta.py:68 -msgid "No description available" -msgstr "Няма описание" - -#: forum/models/node.py:237 -#, fuzzy -msgid "post" -msgstr "добавено" - -#: forum/models/page.py:31 -#, python-format -msgid "[Unpublished] %s" -msgstr "[Непубликувани] %s" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "[изтрит]" - -#: forum/models/question.py:36 -msgid "[closed] " -msgstr "[затворен]" - -#: forum/models/tag.py:38 -msgid "interesting" -msgstr "интересно" - -#: forum/models/tag.py:38 -msgid "ignored" -msgstr "игнорирано" - -#: forum/models/user.py:201 forum/views/readers.py:115 -#, fuzzy -msgid "asked-by" -msgstr "зададено" - -#: forum/models/user.py:205 forum/views/readers.py:118 -#, fuzzy -msgid "answered-by" -msgstr "отговорено" - -#: forum/models/user.py:209 forum/views/readers.py:121 -#, fuzzy -msgid "subscribed-by" -msgstr "абонирай ме" - -#: forum/settings/__init__.py:44 -msgid "Badges config" -msgstr "Настройка на значките" - -#: forum/settings/__init__.py:44 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/accept.py:5 -#, fuzzy -msgid "Accepting answers" -msgstr "oldest" - -#: forum/settings/accept.py:5 -msgid "Settings to tweak the behaviour of accepting answers." -msgstr "" - -#: forum/settings/accept.py:8 -#, fuzzy -msgid "Disallow answers to be accepted" -msgstr "answer accepted" - -#: forum/settings/accept.py:9 -msgid "" -"Disable accepting answers feature. If you reenable it in the future, " -"currently accepted answers will still be marked as accepted." -msgstr "" - -#: forum/settings/accept.py:13 -#, fuzzy -msgid "Maximum accepted answers per question" -msgstr "не е отговор на въпроса" - -#: forum/settings/accept.py:14 -msgid "How many accepted answers are allowed per question. Use 0 for no limit." -msgstr "" - -#: forum/settings/accept.py:17 -msgid "Maximum accepted answers per user/question" -msgstr "" - -#: forum/settings/accept.py:18 -msgid "" -"If more than one accpeted answer is allowed, how many can be accepted per " -"single user per question." -msgstr "" - -#: forum/settings/accept.py:21 -#, fuzzy -msgid "Users an accept own answer" -msgstr "oldest" - -#: forum/settings/accept.py:22 -msgid "Are normal users allowed to accept theyr own answers.." -msgstr "" -"Дали обикновените потребители могат да се приемат собствените си отговори" - -#: forum/settings/basic.py:9 -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:67 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:67 -#, fuzzy -msgid "Basic settings" -msgstr "" -"Adjust frequency of email updates. Receive " -"updates on interesting questions by email,
    help the community by answering questions of your colleagues. If you do not wish to " -"receive emails - select 'no email' on all items below.
    Updates are only " -"sent when there is any new activity on selected items." - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "Основните настройки за вашето приложение" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "Лого" - -#: forum/settings/basic.py:13 -#, fuzzy -msgid "Your site main logo." -msgstr "" -"Your new Email: (will not be shown to " -"anyone, must be valid)" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -#, fuzzy -msgid "Application description" -msgstr "" -"Gold badge is the highest award in this community. To obtain it have to show " -"profound knowledge and ability in addition to your active participation." - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:43 -msgid "Support URL" -msgstr "" - -#: forum/settings/basic.py:44 -msgid "" -"The URL provided for users to get support. It can be http: or mailto: or " -"whatever your preferred support scheme is." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Contact URL" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "" -"The URL provided for users to contact you. It can be http: or mailto: or " -"whatever your preferred contact scheme is." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "" -"The port on which your SMTP server is listening to. Usually this is 25, but " -"can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -#, fuzzy -msgid "Site 'from' email address" -msgstr "Your email (never shared)" - -#: forum/settings/email.py:35 -msgid "" -"The address that will show up on the 'from' field on emails sent by your " -"website." -msgstr "" - -#: forum/settings/email.py:39 -#, fuzzy -msgid "Email subject prefix" -msgstr "Welcome to the Q&A forum" - -#: forum/settings/email.py:40 -msgid "" -"Every email sent through your website will have the subject prefixed by this " -"string. It's usually a good idea to have such a prefix so your users can " -"easilly set up a filter on theyr email clients." -msgstr "" - -#: forum/settings/email.py:44 -msgid "Email Footer Text" -msgstr "" - -#: forum/settings/email.py:45 -msgid "" -"Email footer text, usually \"CAN SPAM\" compliance, or the physical address " -"of the organization running the website. See this Wikipedia article for more info." -msgstr "" - -#: forum/settings/email.py:49 -msgid "Email Border color" -msgstr "" - -#: forum/settings/email.py:50 -msgid "The outter border color of the email base template" -msgstr "" - -#: forum/settings/email.py:54 -msgid "Email Paragraph style" -msgstr "" - -#: forum/settings/email.py:55 -msgid "A valid css string to be used to style email paragraphs (the P tag)." -msgstr "" - -#: forum/settings/email.py:59 -msgid "Email link style" -msgstr "" - -#: forum/settings/email.py:60 -msgid "A valid css string to be used to style email links (the A tag)." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "" -"Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "" -"This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "" -"Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/form.py:5 -msgid "Form settings" -msgstr "" - -#: forum/settings/form.py:5 -#, fuzzy -msgid "General settings for the OSQA forms." -msgstr "Поздрави от Zapprotect Q&A" - -#: forum/settings/form.py:8 -#, fuzzy -msgid "Enable community wiki" -msgstr "уики общност" - -#: forum/settings/form.py:9 -msgid "Can questions or answers be marked as community wiki." -msgstr "" - -#: forum/settings/form.py:13 -#, fuzzy -msgid "Limit tag creation" -msgstr "karma" - -#: forum/settings/form.py:14 -msgid "" -"Limit tag creation to super users, staff or users with a minimum reputation." -msgstr "" - -#: forum/settings/form.py:20 -msgid "Minimum number of characters for a question's title" -msgstr "" - -#: forum/settings/form.py:21 -msgid "" -"The minimum number of characters a user must enter into the title field of a " -"question." -msgstr "" - -#: forum/settings/form.py:28 -msgid "Minimum number of characters for a question's content" -msgstr "" - -#: forum/settings/form.py:29 -msgid "" -"The minimum number of characters a user must enter into the content field of " -"a question." -msgstr "" - -#: forum/settings/form.py:36 -#, fuzzy -msgid "Empty question content" -msgstr "коментар на въпроса" - -#: forum/settings/form.py:37 -msgid "If a question's content can be empty." -msgstr "" - -#: forum/settings/form.py:45 -msgid "Required number of tags per question" -msgstr "" - -#: forum/settings/form.py:46 -msgid "How many tags are required in questions." -msgstr "" - -#: forum/settings/form.py:50 -msgid "Maximum number of tags per question" -msgstr "" - -#: forum/settings/form.py:51 -msgid "How many tags are allowed in questions." -msgstr "" - -#: forum/settings/form.py:55 -msgid "Minimum length of a tag" -msgstr "" - -#: forum/settings/form.py:56 -msgid "How short a tag can be." -msgstr "" - -#: forum/settings/form.py:60 -msgid "Maximum length of a tag" -msgstr "" - -#: forum/settings/form.py:61 -msgid "How long a tag can be." -msgstr "" - -#: forum/settings/form.py:69 -msgid "Minimum number of characters for a comment" -msgstr "" - -#: forum/settings/form.py:70 -msgid "" -"The minimum number of characters a user must enter into the body of a " -"comment." -msgstr "" - -#: forum/settings/form.py:73 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/form.py:74 -msgid "" -"The maximum number of characters a user can enter into the body of a comment." -msgstr "" - -#: forum/settings/form.py:77 -msgid "Allow markdown in comments" -msgstr "" - -#: forum/settings/form.py:78 -msgid "Allow users to use markdown in comments." -msgstr "" - -#: forum/settings/form.py:82 -msgid "Show author gravatar in comments" -msgstr "" - -#: forum/settings/form.py:83 -msgid "Show the gravatar image of a comment author." -msgstr "" - -#: forum/settings/forms.py:52 -#, fuzzy -msgid "context" -msgstr "съдържание" - -#: forum/settings/forms.py:52 -msgid "default" -msgstr "" - -#: forum/settings/forms.py:65 -#, fuzzy -msgid "Change this:" -msgstr "Change Email" - -#: forum/settings/minrep.py:4 -#, fuzzy -msgid "Minimum reputation config" -msgstr "karma" - -#: forum/settings/minrep.py:4 -msgid "" -"Configure the minimum reputation required to perform certain actions on your " -"site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -#, fuzzy -msgid "Minimum reputation to vote down" -msgstr "user karma" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -#, fuzzy -msgid "Minimum reputation to comment" -msgstr "user karma" - -#: forum/settings/minrep.py:20 -msgid "" -"The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -#, fuzzy -msgid "Minimum reputation to like a comment" -msgstr "user karma" - -#: forum/settings/minrep.py:24 -msgid "" -"The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "" -"The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -#, fuzzy -msgid "Minimum reputation to create tags" -msgstr "user karma" - -#: forum/settings/minrep.py:32 -msgid "" -"The minimum reputation an user must have to be allowed to create new tags." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "" -"The minimum reputation an user must have to be allowed to close his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "" -"The minimum reputation an user must have to be allowed to reopen his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "" -"The minimum reputation an user must have to be allowed to retag others " -"questions." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "" -"The minimum reputation an user must have to be allowed to edit community " -"wiki posts." -msgstr "" - -#: forum/settings/minrep.py:51 -#, fuzzy -msgid "Minimum reputation to mark post as community wiki" -msgstr "user karma" - -#: forum/settings/minrep.py:52 -msgid "" -"The minimum reputation an user must have to be allowed to mark a post as " -"community wiki." -msgstr "" - -#: forum/settings/minrep.py:55 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:56 -msgid "" -"The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "" -"The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:63 -#, fuzzy -msgid "Minimum reputation to delete comments" -msgstr "user karma" - -#: forum/settings/minrep.py:64 -msgid "" -"The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:67 -#, fuzzy -msgid "Minimum reputation to convert answers to comment" -msgstr "user karma" - -#: forum/settings/minrep.py:68 -msgid "" -"The minimum reputation an user must have to be allowed to convert an answer " -"into a comment." -msgstr "" - -#: forum/settings/minrep.py:71 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:72 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/moderation.py:7 -#, fuzzy -msgid "Moderation settings" -msgstr "Опции за оторизиране" - -#: forum/settings/moderation.py:7 -msgid "Define the moderation workflow of your site" -msgstr "" - -#: forum/settings/moderation.py:13 -msgid "Flag Reasons" -msgstr "" - -#: forum/settings/moderation.py:14 -msgid "Create some flag reasons to use in the flag post popup." -msgstr "" - -#: forum/settings/moderation.py:22 -msgid "Close Reasons" -msgstr "" - -#: forum/settings/moderation.py:23 -msgid "Create some close reasons to use in the close question popup." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "" -"Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -#, fuzzy -msgid "Initial reputation" -msgstr "karma" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:29 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:33 -msgid "" -"Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:37 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:41 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:45 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/sidebar.py:10 -msgid "Show the Welcome box" -msgstr "" - -#: forum/settings/sidebar.py:11 -msgid "Do you want to show the welcome box when a user first visits your site." -msgstr "" - -#: forum/settings/sidebar.py:15 -msgid "Application intro" -msgstr "" - -#: forum/settings/sidebar.py:16 -msgid "" -"The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/sidebar.py:46 -msgid "Upper block rendering mode" -msgstr "" - -#: forum/settings/sidebar.py:47 -msgid "How to render your upper block code." -msgstr "" - -#: forum/settings/sidebar.py:75 -msgid "Lower block rendering mode" -msgstr "" - -#: forum/settings/sidebar.py:76 -msgid "How to render your lower block code." -msgstr "" - -#: forum/settings/static.py:17 -msgid "Use custom CSS" -msgstr "" - -#: forum/settings/static.py:18 -msgid "Do you want to use custom CSS." -msgstr "" - -#: forum/settings/static.py:22 -msgid "Custom CSS" -msgstr "" - -#: forum/settings/static.py:23 -msgid "Your custom CSS." -msgstr "" - -#: forum/settings/static.py:31 -msgid "Use custom header" -msgstr "" - -#: forum/settings/static.py:32 -msgid "Do you want to use a custom header." -msgstr "" - -#: forum/settings/static.py:36 -msgid "Custom Header" -msgstr "" - -#: forum/settings/static.py:37 -msgid "Your custom header." -msgstr "" - -#: forum/settings/static.py:42 -msgid "Custom Header rendering mode" -msgstr "" - -#: forum/settings/static.py:43 -msgid "How to render your custom header code." -msgstr "" - -#: forum/settings/static.py:48 -msgid "Show announcement bar" -msgstr "" - -#: forum/settings/static.py:49 -msgid "" -"Some piece of content that goes under the search bar and can be used for " -"announcements, etc." -msgstr "" - -#: forum/settings/static.py:53 -msgid "Announcement bar" -msgstr "" - -#: forum/settings/static.py:54 -msgid "The announcement bar content." -msgstr "" - -#: forum/settings/static.py:59 -msgid "Announcement bar rendering mode" -msgstr "" - -#: forum/settings/static.py:60 -msgid "How to render your announcement bar code." -msgstr "" - -#: forum/settings/static.py:65 -msgid "Use custom footer" -msgstr "" - -#: forum/settings/static.py:66 -msgid "Do you want to use a custom footer." -msgstr "" - -#: forum/settings/static.py:70 -msgid "Custom Footer" -msgstr "" - -#: forum/settings/static.py:71 -#, fuzzy -msgid "Your custom footer." -msgstr "" -"Your new Email: (will not be shown to " -"anyone, must be valid)" - -#: forum/settings/static.py:76 -msgid "Custom footer rendering mode" -msgstr "" - -#: forum/settings/static.py:77 -msgid "How to render your custom footer code." -msgstr "" - -#: forum/settings/static.py:82 -msgid "Replace default footer" -msgstr "" - -#: forum/settings/static.py:83 -msgid "Above default footer" -msgstr "" - -#: forum/settings/static.py:84 -msgid "Below default footer" -msgstr "" - -#: forum/settings/static.py:88 -msgid "Custom Footer Mode" -msgstr "" - -#: forum/settings/static.py:89 -msgid "How your custom footer will appear." -msgstr "" - -#: forum/settings/static.py:98 -msgid "Use custom Head elements" -msgstr "" - -#: forum/settings/static.py:99 -msgid "Do you want to use custom head elements." -msgstr "" - -#: forum/settings/static.py:103 -msgid "Custom Head" -msgstr "" - -#: forum/settings/static.py:104 -msgid "Your custom Head elements." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "" -"The filesystem path where uploaded files will be stored. Please note that " -"this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "" -"The url alias for uploaded files. Notice that if you change this setting, " -"you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/urls.py:4 -msgid "URL settings" -msgstr "" - -#: forum/settings/urls.py:4 -msgid "Some settings to tweak behaviour of site urls (experimental)." -msgstr "" - -#: forum/settings/urls.py:7 -msgid "Allow unicode in slugs" -msgstr "" - -#: forum/settings/urls.py:8 -msgid "Allow unicode/non-latin characters in urls." -msgstr "" - -#: forum/settings/urls.py:12 -msgid "Force single url" -msgstr "" - -#: forum/settings/urls.py:13 -msgid "" -"Redirect the request in case there is a mismatch between the slug in the url " -"and the actual slug" -msgstr "" - -#: forum/settings/users.py:7 -#, fuzzy -msgid "Users settings" -msgstr "" -"Adjust frequency of email updates. Receive " -"updates on interesting questions by email,
    help the community by answering questions of your colleagues. If you do not wish to " -"receive emails - select 'no email' on all items below.
    Updates are only " -"sent when there is any new activity on selected items." - -#: forum/settings/users.py:7 -#, fuzzy -msgid "General settings for the OSQA users." -msgstr "Поздрави от Zapprotect Q&A" - -#: forum/settings/users.py:10 -#, fuzzy -msgid "Editable screen name" -msgstr "Публично име" - -#: forum/settings/users.py:11 -msgid "Allow users to alter their screen name." -msgstr "" - -#: forum/settings/users.py:15 -msgid "Minimum username length" -msgstr "" - -#: forum/settings/users.py:16 -msgid "The minimum length (in character) of a username." -msgstr "" - -#: forum/settings/users.py:19 -msgid "fuck" -msgstr "" - -#: forum/settings/users.py:19 -msgid "shit" -msgstr "" - -#: forum/settings/users.py:19 -#, fuzzy -msgid "ass" -msgstr "отговори" - -#: forum/settings/users.py:19 -msgid "sex" -msgstr "" - -#: forum/settings/users.py:19 -#, fuzzy -msgid "add" -msgstr "Добави" - -#: forum/settings/users.py:19 forum/templatetags/node_tags.py:94 -msgid "edit" -msgstr "редактирай" - -#: forum/settings/users.py:19 forum/views/auth.py:382 forum/views/auth.py:387 -#, fuzzy -msgid "save" -msgstr "сребро" - -#: forum/settings/users.py:19 forum/templatetags/node_tags.py:118 -msgid "delete" -msgstr "" - -#: forum/settings/users.py:19 -#, fuzzy -msgid "manage" -msgstr "снимка" - -#: forum/settings/users.py:19 -#, fuzzy -msgid "update" -msgstr "обновено" - -#: forum/settings/users.py:19 -#: forum/skins/default/templates/auth/auth_settings.html:12 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "премахни" - -#: forum/settings/users.py:19 -msgid "new" -msgstr "" - -#: forum/settings/users.py:21 -#, fuzzy -msgid "Disabled usernames" -msgstr "Choose screen name" - -#: forum/settings/users.py:22 -msgid "" -"A comma separated list of disabled usernames (usernames not allowed during a " -"new user registration)." -msgstr "" - -#: forum/settings/users.py:26 -msgid "Show status diamonds" -msgstr "" - -#: forum/settings/users.py:27 -msgid "Show status \"diamonds\" next to moderators or superusers usernames." -msgstr "" - -#: forum/settings/users.py:32 -#, fuzzy -msgid "Force unique email" -msgstr "" -"Нов имейл: (няма да бъде споделян, трябва да бъде " -"действителен)" - -#: forum/settings/users.py:33 -msgid "Should each user have an unique email." -msgstr "" - -#: forum/settings/users.py:37 -msgid "Require email validation to..." -msgstr "" - -#: forum/settings/users.py:38 -msgid "" -"Which actions in this site, users without a valid email will be prevented " -"from doing." -msgstr "" - -#: forum/settings/users.py:40 -#, fuzzy -msgid "ask questions" -msgstr "задай въпрос" - -#: forum/settings/users.py:40 -#, fuzzy -msgid "provide answers" -msgstr "най-старите" - -#: forum/settings/users.py:40 -#, fuzzy -msgid "make comments" -msgstr "post a comment" - -#: forum/settings/users.py:40 -#, fuzzy -msgid "report posts" -msgstr "karma" - -#: forum/settings/users.py:45 -msgid "Don't notify to invalid emails" -msgstr "" - -#: forum/settings/users.py:46 -msgid "Do not notify users with unvalidated emails." -msgstr "" - -#: forum/settings/users.py:50 -msgid "Hold pending posts for X minutes" -msgstr "" - -#: forum/settings/users.py:51 -msgid "" -"How much time in minutes a post should be kept in session until the user " -"logs in or validates the email." -msgstr "" - -#: forum/settings/users.py:55 -msgid "Warn about pending posts afer X minutes" -msgstr "" - -#: forum/settings/users.py:56 -msgid "" -"How much time in minutes a user that just logged in or validated his email " -"should be warned about a pending post instead of publishing it automatically." -msgstr "" - -#: forum/settings/users.py:60 -msgid "suitable for display on all websites with any audience type." -msgstr "" - -#: forum/settings/users.py:61 -msgid "" -"may contain rude gestures, provocatively dressed individuals, the lesser " -"swear words, or mild violence." -msgstr "" - -#: forum/settings/users.py:62 -msgid "" -"may contain such things as harsh profanity, intense violence, nudity, or " -"hard drug use." -msgstr "" - -#: forum/settings/users.py:63 -msgid "may contain hardcore sexual imagery or extremely disturbing violence." -msgstr "" - -#: forum/settings/users.py:67 -#, fuzzy -msgid "Gravatar rating" -msgstr "" -"Gravatar means globally recognized avatar - your unique avatar image " -"associated with your email address. It's simply a picture that shows next to " -"your posts on the websites that support gravatar protocol. By default gravar " -"appears as a square filled with a snowflake-like figure. You can set " -"your image at gravatar.com" - -#: forum/settings/users.py:68 -msgid "" -"Gravatar allows users to self-rate their images so that they can indicate if " -"an image is appropriate for a certain audience." -msgstr "" - -#: forum/settings/users.py:74 -msgid "" -"(mystery-man) a simple, cartoon-style silhouetted outline of a person (does " -"not vary by email hash)" -msgstr "" - -#: forum/settings/users.py:75 -msgid "a geometric pattern based on an email hash" -msgstr "" - -#: forum/settings/users.py:76 -msgid "a generated \"monster\" with different colors, faces, etc" -msgstr "" - -#: forum/settings/users.py:77 -msgid "generated faces with differing features and backgrounds" -msgstr "" - -#: forum/settings/users.py:81 -#, fuzzy -msgid "Gravatar default" -msgstr "" -"Gravatar means globally recognized avatar - your unique avatar image " -"associated with your email address. It's simply a picture that shows next to " -"your posts on the websites that support gravatar protocol. By default gravar " -"appears as a square filled with a snowflake-like figure. You can set " -"your image at gravatar.com" - -#: forum/settings/users.py:82 -msgid "" -"Gravatar has a number of built in options which you can also use as defaults." -msgstr "" - -#: forum/settings/view.py:5 -msgid "View settings" -msgstr "" - -#: forum/settings/view.py:5 -msgid "Set up how certain parts of the site are displayed." -msgstr "" - -#: forum/settings/view.py:8 -msgid "Recent tags block size" -msgstr "" - -#: forum/settings/view.py:9 -msgid "" -"The number of tags to display in the recent tags block in the front page." -msgstr "" - -#: forum/settings/view.py:12 -#, fuzzy -msgid "Recent awards block size" -msgstr "Recent badges" - -#: forum/settings/view.py:13 -msgid "" -"The number of awards to display in the recent awards block in the front page." -msgstr "" - -#: forum/settings/view.py:16 -#, fuzzy -msgid "Limit related tags block" -msgstr "Tags" - -#: forum/settings/view.py:17 -msgid "" -"Limit related tags block size in questions list pages. Set to 0 to display " -"all all tags." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "" -"How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/401.html:3 -#: forum/skins/default/templates/401.html:28 -#: forum/skins/zapprotect/templates/401.html:3 -#: forum/skins/zapprotect/templates/401.html:28 -msgid "Not logged in" -msgstr "" - -#: forum/skins/default/templates/401.html:32 -#: forum/skins/zapprotect/templates/401.html:32 -msgid "You are not logged in..." -msgstr "" - -#: forum/skins/default/templates/401.html:34 -#: forum/skins/zapprotect/templates/401.html:34 -msgid "...and the resource you're trying to access is pretocted." -msgstr "" - -#: forum/skins/default/templates/401.html:36 -#: forum/skins/zapprotect/templates/401.html:36 -msgid "Redirecting to the login page." -msgstr "" - -#: forum/skins/default/templates/401.html:39 -#: forum/skins/zapprotect/templates/401.html:39 -msgid "If you're not automatically redirected in 5 seconds, please click" -msgstr "" - -#: forum/skins/default/templates/401.html:40 -#: forum/skins/default/templates/auth/signin.html:102 -#: forum/skins/default/templates/notifications/base.html:27 -#: forum/skins/zapprotect/templates/401.html:40 -#: forum/skins/zapprotect/templates/auth/signin.html:102 -#: forum/skins/zapprotect/templates/notifications/base.html:27 -msgid "here" -msgstr "тук" - -#: forum/skins/default/templates/403.html:3 -#: forum/skins/default/templates/403.html:11 -#: forum/skins/zapprotect/templates/403.html:3 -#: forum/skins/zapprotect/templates/403.html:11 -msgid "Forbidden" -msgstr "Забранено" - -#: forum/skins/default/templates/403.html:15 -#: forum/skins/zapprotect/templates/403.html:15 -msgid "Sorry, you don't have permissions to access this page." -msgstr "Съжалявам, но нямате право да разглеждате тази страница." - -#: forum/skins/default/templates/403.html:17 -#: forum/skins/default/templates/404.html:26 -#: forum/skins/zapprotect/templates/403.html:17 -#: forum/skins/zapprotect/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "Това може да е станало поради следните причини:" - -#: forum/skins/default/templates/403.html:19 -#: forum/skins/zapprotect/templates/403.html:19 -msgid "" -"you followed a link on an email, but you're currently logged in as another " -"user;" -msgstr "" -"използвахте линк от имейл, но в момента сте влезнали като друг потребител" - -#: forum/skins/default/templates/403.html:20 -#: forum/skins/zapprotect/templates/403.html:20 -msgid "there are errors in the url, please confirm it;" -msgstr "има грешки в адреса, моля проверете го;" - -#: forum/skins/default/templates/403.html:21 -#: forum/skins/zapprotect/templates/403.html:21 -#, fuzzy -msgid "if you believe you shouldn't bee seeing this error, please" -msgstr "ако смятате, че тази страница 404 не е трябвало да се показва" - -#: forum/skins/default/templates/403.html:23 -#: forum/skins/default/templates/404.html:31 -#: forum/skins/zapprotect/templates/403.html:23 -#: forum/skins/zapprotect/templates/404.html:31 -msgid "report this problem" -msgstr "оповестете за проблема" - -#: forum/skins/default/templates/403.html:29 -#: forum/skins/zapprotect/templates/403.html:29 -#, fuzzy -msgid "to home page" -msgstr "обратно на началната страница" - -#: forum/skins/default/templates/403.html:30 -#: forum/skins/default/templates/404.html:41 -#: forum/skins/zapprotect/templates/403.html:30 -#: forum/skins/zapprotect/templates/404.html:41 -msgid "see all questions" -msgstr "вижте всички въпроси" - -#: forum/skins/default/templates/403.html:31 -#: forum/skins/default/templates/404.html:42 -#: forum/skins/zapprotect/templates/403.html:31 -#: forum/skins/zapprotect/templates/404.html:42 -msgid "see all tags" -msgstr "вижте всички тагове" - -#: forum/skins/default/templates/404.html:4 -#: forum/skins/zapprotect/templates/404.html:4 -msgid "404 Error" -msgstr "Грешка 404" - -#: forum/skins/default/templates/404.html:20 -#: forum/skins/zapprotect/templates/404.html:20 -#, fuzzy -msgid "404 Not Found" -msgstr "Нищо не беше намерено" - -#: forum/skins/default/templates/404.html:24 -#: forum/skins/zapprotect/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "За съжаление търсената страница не беше намерена." - -#: forum/skins/default/templates/404.html:28 -#: forum/skins/zapprotect/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "този въпрос или отговор е бил изтрит;" - -#: forum/skins/default/templates/404.html:29 -#: forum/skins/zapprotect/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "адреса има грешка -- проверете го;" - -#: forum/skins/default/templates/404.html:30 -#: forum/skins/zapprotect/templates/404.html:30 -#, fuzzy -msgid "if you believe this error 404 should not have occurred, please" -msgstr "ако смятате, че тази страница 404 не е трябвало да се показва" - -#: forum/skins/default/templates/404.html:40 -#: forum/skins/default/templates/500.html:27 -#: forum/skins/zapprotect/templates/404.html:40 -#: forum/skins/zapprotect/templates/500.html:27 -msgid "back to previous page" -msgstr "върнете се на предишната страница" - -#: forum/skins/default/templates/500.html:22 -#: forum/skins/zapprotect/templates/500.html:22 -msgid "sorry, system error" -msgstr "съжаляваме, системна грешка" - -#: forum/skins/default/templates/500.html:24 -#: forum/skins/zapprotect/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "системния лог е записан, грешката ще бъде оправена възможно най-скоро" - -#: forum/skins/default/templates/500.html:25 -#: forum/skins/zapprotect/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "моля, споделете грешката с администраторите на сайта" - -#: forum/skins/default/templates/500.html:28 -#: forum/skins/zapprotect/templates/500.html:28 -msgid "see latest questions" -msgstr "вижте последните въпроси" - -#: forum/skins/default/templates/500.html:29 -#: forum/skins/zapprotect/templates/500.html:29 -msgid "see tags" -msgstr "виж таговете" - -#: forum/skins/default/templates/503.html:6 -#: forum/skins/default/templates/503.html:17 -#: forum/skins/zapprotect/templates/503.html:6 -#: forum/skins/zapprotect/templates/503.html:17 -msgid "System down for maintenance" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -#: forum/skins/zapprotect/templates/account_settings.html:4 -msgid "Account functions" -msgstr "Функции на профила" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:33 -#: forum/skins/zapprotect/templates/account_settings.html:29 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:33 -msgid "Change password" -msgstr "Смяна на паролата" - -#: forum/skins/default/templates/account_settings.html:30 -#: forum/skins/zapprotect/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "Предоставете нова парола за профила си." - -#: forum/skins/default/templates/account_settings.html:32 -#: forum/skins/zapprotect/templates/account_settings.html:32 -msgid "Change email " -msgstr "Промяна на имейла " - -#: forum/skins/default/templates/account_settings.html:33 -#: forum/skins/zapprotect/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "Добавете или променете имейла асоцииран с Вашия акаунт." - -#: forum/skins/default/templates/account_settings.html:35 -#: forum/skins/zapprotect/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "Промени OpenID" - -#: forum/skins/default/templates/account_settings.html:36 -#: forum/skins/zapprotect/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "Променете OpenID свързан с Вашия акаунт" - -#: forum/skins/default/templates/account_settings.html:39 -#: forum/skins/zapprotect/templates/account_settings.html:39 -msgid "Delete account" -msgstr "Изтрий профила" - -#: forum/skins/default/templates/account_settings.html:40 -#: forum/skins/zapprotect/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "Изтрий потребителя и цялата информация от сайта" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:62 -#: forum/skins/zapprotect/templates/answer_edit.html:5 -#: forum/skins/zapprotect/templates/answer_edit.html:62 -msgid "Edit answer" -msgstr "Редактирай отговора" - -#: forum/skins/default/templates/answer_edit.html:19 -#: forum/skins/default/templates/answer_edit.html:22 -#: forum/skins/default/templates/ask.html:26 -#: forum/skins/default/templates/ask.html:29 -#: forum/skins/default/templates/question.html:38 -#: forum/skins/default/templates/question.html:41 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -#: forum/skins/zapprotect/templates/answer_edit.html:19 -#: forum/skins/zapprotect/templates/answer_edit.html:22 -#: forum/skins/zapprotect/templates/ask.html:26 -#: forum/skins/zapprotect/templates/ask.html:29 -#: forum/skins/zapprotect/templates/question.html:38 -#: forum/skins/zapprotect/templates/question.html:41 -#: forum/skins/zapprotect/templates/question_edit.html:19 -#: forum/skins/zapprotect/templates/question_edit.html:22 -msgid "hide preview" -msgstr "скрий прегледа" - -#: forum/skins/default/templates/answer_edit.html:22 -#: forum/skins/default/templates/ask.html:29 -#: forum/skins/default/templates/question.html:41 -#: forum/skins/default/templates/question_edit.html:22 -#: forum/skins/zapprotect/templates/answer_edit.html:22 -#: forum/skins/zapprotect/templates/ask.html:29 -#: forum/skins/zapprotect/templates/question.html:41 -#: forum/skins/zapprotect/templates/question_edit.html:22 -msgid "show preview" -msgstr "покажи прегледа" - -#: forum/skins/default/templates/answer_edit.html:62 -#: forum/skins/default/templates/question_edit.html:91 -#: forum/skins/default/templates/question_retag.html:58 -#: forum/skins/default/templates/revisions.html:38 -#: forum/skins/zapprotect/templates/answer_edit.html:62 -#: forum/skins/zapprotect/templates/question_edit.html:91 -#: forum/skins/zapprotect/templates/question_retag.html:58 -#: forum/skins/zapprotect/templates/revisions.html:38 -msgid "back" -msgstr "назад" - -#: forum/skins/default/templates/answer_edit.html:67 -#: forum/skins/default/templates/question_edit.html:96 -#: forum/skins/default/templates/revisions.html:54 -#: forum/skins/zapprotect/templates/answer_edit.html:67 -#: forum/skins/zapprotect/templates/question_edit.html:96 -#: forum/skins/zapprotect/templates/revisions.html:54 -msgid "revision" -msgstr "ревизия" - -#: forum/skins/default/templates/answer_edit.html:70 -#: forum/skins/default/templates/question_edit.html:100 -#: forum/skins/zapprotect/templates/answer_edit.html:70 -#: forum/skins/zapprotect/templates/question_edit.html:100 -msgid "select revision" -msgstr "изберете ревизия" - -#: forum/skins/default/templates/answer_edit.html:77 -#: forum/skins/default/templates/ask.html:129 -#: forum/skins/default/templates/question.html:222 -#: forum/skins/default/templates/question_edit.html:117 -#: forum/skins/zapprotect/templates/answer_edit.html:77 -#: forum/skins/zapprotect/templates/ask.html:129 -#: forum/skins/zapprotect/templates/question.html:222 -#: forum/skins/zapprotect/templates/question_edit.html:117 -msgid "Toggle the real time Markdown editor preview" -msgstr "Покажи визуалния текстов редактор" - -#: forum/skins/default/templates/answer_edit.html:77 -#: forum/skins/default/templates/ask.html:129 -#: forum/skins/default/templates/question.html:223 -#: forum/skins/default/templates/question_edit.html:117 -#: forum/skins/zapprotect/templates/answer_edit.html:77 -#: forum/skins/zapprotect/templates/ask.html:129 -#: forum/skins/zapprotect/templates/question.html:223 -#: forum/skins/zapprotect/templates/question_edit.html:117 -msgid "toggle preview" -msgstr "покажи прегледа" - -#: forum/skins/default/templates/answer_edit.html:93 -#: forum/skins/default/templates/question_edit.html:144 -#: forum/skins/default/templates/question_retag.html:79 -#: forum/skins/zapprotect/templates/answer_edit.html:93 -#: forum/skins/zapprotect/templates/question_edit.html:144 -#: forum/skins/zapprotect/templates/question_retag.html:79 -msgid "Save edit" -msgstr "Запази промените" - -#: forum/skins/default/templates/answer_edit.html:94 -#: forum/skins/default/templates/base_content.html:34 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:145 -#: forum/skins/default/templates/question_retag.html:80 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:99 -#: forum/skins/zapprotect/templates/answer_edit.html:94 -#: forum/skins/zapprotect/templates/base_content.html:34 -#: forum/skins/zapprotect/templates/close.html:29 -#: forum/skins/zapprotect/templates/feedback.html:50 -#: forum/skins/zapprotect/templates/question_edit.html:145 -#: forum/skins/zapprotect/templates/question_retag.html:80 -#: forum/skins/zapprotect/templates/reopen.html:30 -#: forum/skins/zapprotect/templates/users/edit.html:99 -msgid "Cancel" -msgstr "Откажи" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -#: forum/skins/zapprotect/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "Съвети" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -#: forum/skins/zapprotect/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "направете отговора подходящ за общността" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -#: forum/skins/zapprotect/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "опитайте се да отговорите, а не изисквайте дискусия" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -#: forum/skins/zapprotect/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "опитайте се да предоставите детайлна информация" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -#: forum/skins/zapprotect/templates/answer_edit_tips.html:16 -#: forum/skins/zapprotect/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "бъдете кратки и ясни" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -#: forum/skins/zapprotect/templates/answer_edit_tips.html:20 -#: forum/skins/zapprotect/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "вижте често задаваните въпроси" - -#: forum/skins/default/templates/ask.html:4 -#: forum/skins/default/templates/ask.html:92 -#: forum/skins/zapprotect/templates/ask.html:4 -#: forum/skins/zapprotect/templates/ask.html:92 -msgid "Ask a question" -msgstr "Задайте въпрос" - -#: forum/skins/default/templates/ask.html:99 -#: forum/skins/zapprotect/templates/ask.html:99 -msgid "You are welcome to start submitting your question anonymously." -msgstr "" - -#: forum/skins/default/templates/ask.html:100 -#: forum/skins/zapprotect/templates/ask.html:100 -msgid "" -"\n" -" After submiting your question, you will be redirected to " -"the login/signup page.\n" -" Your question will be saved in the current session and " -"will be published after you login with your existing account,\n" -" or signup for a new account" -msgstr "" - -#: forum/skins/default/templates/ask.html:104 -#: forum/skins/zapprotect/templates/ask.html:104 -msgid "and validate your email." -msgstr "" - -#: forum/skins/default/templates/ask.html:109 -#: forum/skins/zapprotect/templates/ask.html:109 -msgid "" -"Remember, your question will not be published until you validate your email." -msgstr "" - -#: forum/skins/default/templates/ask.html:110 -#: forum/skins/default/templates/question.html:208 -#: forum/skins/default/templates/users/info.html:86 -#: forum/skins/zapprotect/templates/ask.html:110 -#: forum/skins/zapprotect/templates/question.html:208 -#: forum/skins/zapprotect/templates/users/info.html:86 -msgid "Send me a validation link." -msgstr "" - -#: forum/skins/default/templates/ask.html:145 -#: forum/skins/zapprotect/templates/ask.html:145 -msgid "(required)" -msgstr "(задължително)" - -#: forum/skins/default/templates/ask.html:152 -#: forum/skins/zapprotect/templates/ask.html:152 -msgid "Login/signup to post your question" -msgstr "Оторизирайте се за да публикувате" - -#: forum/skins/default/templates/ask.html:154 -#: forum/skins/zapprotect/templates/ask.html:154 -msgid "Ask your question" -msgstr "Задайте Вашия въпрос" - -#: forum/skins/default/templates/badge.html:7 -#: forum/skins/default/templates/badge.html:18 -#: forum/skins/zapprotect/templates/badge.html:7 -#: forum/skins/zapprotect/templates/badge.html:18 -msgid "Badge" -msgstr "Точка" - -#: forum/skins/default/templates/badge.html:27 -#: forum/skins/zapprotect/templates/badge.html:27 -msgid "The users have been awarded with badges:" -msgstr "Потребителя е награден с точки:" - -#: forum/skins/default/templates/badges.html:6 -#: forum/skins/zapprotect/templates/badges.html:6 -msgid "Badges summary" -msgstr "Обобщение за точките" - -#: forum/skins/default/templates/badges.html:9 -#: forum/skins/zapprotect/templates/badges.html:9 -msgid "Badges" -msgstr "Точки" - -#: forum/skins/default/templates/badges.html:13 -#: forum/skins/zapprotect/templates/badges.html:13 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" -"Ако Вашите отговори са ползотворни, общността ще Ви се отблагодари с точки." - -#: forum/skins/default/templates/badges.html:14 -#: forum/skins/zapprotect/templates/badges.html:14 -#, fuzzy -msgid "" -"Below is the list of available badges and number of times each type of badge " -"has been awarded.\n" -" " -msgstr "" -"Currently badges differ only by their level: gold, " -"silver and bronze (their meanings are " -"described on the right). In the future there will be many types of badges at " -"each level. Please give us your feedback - what kinds of badges would you like to see and " -"suggest the activity for which those badges might be awarded." - -#: forum/skins/default/templates/badges.html:41 -#: forum/skins/zapprotect/templates/badges.html:41 -msgid "Community badges" -msgstr "Badge levels" - -#: forum/skins/default/templates/badges.html:44 -#: forum/skins/zapprotect/templates/badges.html:44 -msgid "gold badge: the highest honor and is very rare" -msgstr "" - -#: forum/skins/default/templates/badges.html:44 -#: forum/skins/zapprotect/templates/badges.html:44 -msgid "gold" -msgstr "злато" - -#: forum/skins/default/templates/badges.html:47 -#: forum/skins/zapprotect/templates/badges.html:47 -msgid "gold badge description" -msgstr "" -"Gold badge is the highest award in this community. To obtain it have to show " -"profound knowledge and ability in addition to your active participation." - -#: forum/skins/default/templates/badges.html:51 -#: forum/skins/zapprotect/templates/badges.html:51 -msgid "" -"silver badge: occasionally awarded for the very high quality contributions" -msgstr "" - -#: forum/skins/default/templates/badges.html:52 -#: forum/skins/zapprotect/templates/badges.html:52 -msgid "silver" -msgstr "сребро" - -#: forum/skins/default/templates/badges.html:55 -#: forum/skins/zapprotect/templates/badges.html:55 -msgid "silver badge description" -msgstr "" -"Obtaining silver badge requires significant patience. If you have received " -"one, that means you have greatly contributed to this community." - -#: forum/skins/default/templates/badges.html:58 -#: forum/skins/zapprotect/templates/badges.html:58 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:59 -#: forum/skins/zapprotect/templates/badges.html:59 -msgid "bronze" -msgstr "бронз" - -#: forum/skins/default/templates/badges.html:62 -#: forum/skins/zapprotect/templates/badges.html:62 -msgid "bronze badge description" -msgstr "" -"If you are an active participant in this community, you will be recognized " -"with this badge." - -#: forum/skins/default/templates/base_content.html:30 -#: forum/skins/zapprotect/templates/base_content.html:30 -msgid "Are you sure?" -msgstr "" - -#: forum/skins/default/templates/base_content.html:31 -#: forum/skins/zapprotect/templates/base_content.html:31 -msgid "Yes" -msgstr "" - -#: forum/skins/default/templates/base_content.html:32 -#: forum/skins/zapprotect/templates/base_content.html:32 -msgid "No" -msgstr "" - -#: forum/skins/default/templates/base_content.html:33 -#: forum/skins/zapprotect/templates/base_content.html:33 -#, fuzzy -msgid "Message:" -msgstr "Вашето съобщение:" - -#: forum/skins/default/templates/base_content.html:35 -#: forum/skins/zapprotect/templates/base_content.html:35 -#, fuzzy -msgid "Close" -msgstr "[затворено]" - -#: forum/skins/default/templates/base_content.html:36 -#: forum/skins/zapprotect/templates/base_content.html:36 -msgid "Ok" -msgstr "" - -#: forum/skins/default/templates/base_content.html:38 -#: forum/skins/zapprotect/templates/base_content.html:38 -#: forum/templatetags/node_tags.py:151 -#, fuzzy -msgid "word" -msgstr "парола" - -#: forum/skins/default/templates/base_content.html:39 -#: forum/skins/zapprotect/templates/base_content.html:39 -#, fuzzy -msgid "words" -msgstr "парола" - -#: forum/skins/default/templates/base_content.html:40 -#: forum/skins/zapprotect/templates/base_content.html:40 -#: forum/templatetags/node_tags.py:150 -#, fuzzy -msgid "character" -msgstr "" -"#-#-#-#-# django.pot (PACKAGE VERSION) #-#-#-#-#\n" -"#-#-#-#-# django.pot (PACKAGE VERSION) #-#-#-#-#\n" - -#: forum/skins/default/templates/base_content.html:41 -#: forum/skins/zapprotect/templates/base_content.html:41 -msgid "characters" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -#: forum/skins/zapprotect/templates/close.html:6 -#: forum/skins/zapprotect/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -#: forum/skins/zapprotect/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -#: forum/skins/zapprotect/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -#: forum/skins/zapprotect/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:32 -#: forum/skins/zapprotect/templates/email_base.html:32 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -#: forum/skins/zapprotect/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -#: forum/skins/zapprotect/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#: forum/skins/zapprotect/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look " -"forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -#: forum/skins/zapprotect/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to " -"hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -#: forum/skins/zapprotect/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -#: forum/skins/zapprotect/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:8 -#: forum/skins/zapprotect/templates/header.html:8 -msgid "back to home page" -msgstr "обратно на началната страница" - -#: forum/skins/default/templates/header.html:20 -#: forum/skins/zapprotect/templates/header.html:20 -msgid "ask a question" -msgstr "задай въпрос" - -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/opensearch.html:7 -#: forum/skins/default/templates/search.html:15 -#: forum/skins/zapprotect/templates/header.html:30 -#: forum/skins/zapprotect/templates/opensearch.html:7 -#: forum/skins/zapprotect/templates/search.html:15 -msgid "search" -msgstr "търсене" - -#: forum/skins/default/templates/header.html:34 -#: forum/skins/default/templates/search.html:19 -#: forum/skins/zapprotect/templates/header.html:34 -#: forum/skins/zapprotect/templates/search.html:19 forum/views/readers.py:98 -#: forum/views/readers.py:100 forum/views/readers.py:139 -#: forum/views/users.py:317 -msgid "questions" -msgstr "въпроси" - -#: forum/skins/default/templates/header.html:36 -#: forum/skins/default/templates/search.html:21 -#: forum/skins/zapprotect/templates/header.html:36 -#: forum/skins/zapprotect/templates/search.html:21 forum/views/users.py:59 -msgid "users" -msgstr "потребители" - -#: forum/skins/default/templates/index.html:11 -#: forum/skins/zapprotect/templates/index.html:11 -#, fuzzy -msgid "welcome to " -msgstr "Добре дошли в Zapprotect Q&A" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -#: forum/skins/zapprotect/templates/logout.html:6 -#: forum/skins/zapprotect/templates/logout.html:16 -msgid "Logout" -msgstr "Изход" - -#: forum/skins/default/templates/logout.html:19 -#: forum/skins/zapprotect/templates/logout.html:19 -msgid "" -"As a registered user you can login with your OpenID, log out of the site or " -"permanently remove your account." -msgstr "" -"Clicking Logout will log you out from the forum, but will " -"not sign you off from your OpenID provider.

    If you wish to sign off " -"completely - please make sure to log out from your OpenID provider as well." - -#: forum/skins/default/templates/logout.html:20 -#: forum/skins/zapprotect/templates/logout.html:20 -msgid "Logout now" -msgstr "Излез сега" - -#: forum/skins/default/templates/markdown_help.html:6 -#: forum/skins/zapprotect/templates/markdown_help.html:6 -#, fuzzy -msgid "Markdown Help" -msgstr "Markdown съвети" - -#: forum/skins/default/templates/markdown_help.html:15 -#: forum/skins/zapprotect/templates/markdown_help.html:15 -#, fuzzy -msgid "Markdown Syntax" -msgstr "Markdown съвети" - -#: forum/skins/default/templates/markdown_help.html:16 -#: forum/skins/zapprotect/templates/markdown_help.html:16 -msgid "" -"This document describes some of the more important parts of Markdown (for " -"writers, that is). There's a lot more to the syntax than is mentioned here, " -"though. To get the full syntax documentation, go to John Gruber's Markdown Syntax page" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:20 -#: forum/skins/zapprotect/templates/markdown_help.html:20 -#, fuzzy -msgid "Headers" -msgstr "Точки" - -#: forum/skins/default/templates/markdown_help.html:22 -#: forum/skins/zapprotect/templates/markdown_help.html:22 -msgid "" -"For top-level headers underline the text with equal signs. For second-level " -"headers use dashes to underline." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:26 -#: forum/skins/default/templates/markdown_help.html:30 -#: forum/skins/default/templates/markdown_help.html:49 -#: forum/skins/default/templates/markdown_help.html:52 -#: forum/skins/zapprotect/templates/markdown_help.html:26 -#: forum/skins/zapprotect/templates/markdown_help.html:30 -#: forum/skins/zapprotect/templates/markdown_help.html:49 -#: forum/skins/zapprotect/templates/markdown_help.html:52 -msgid "This is an H1" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:36 -#: forum/skins/default/templates/markdown_help.html:40 -#: forum/skins/default/templates/markdown_help.html:58 -#: forum/skins/default/templates/markdown_help.html:61 -#: forum/skins/zapprotect/templates/markdown_help.html:36 -#: forum/skins/zapprotect/templates/markdown_help.html:40 -#: forum/skins/zapprotect/templates/markdown_help.html:58 -#: forum/skins/zapprotect/templates/markdown_help.html:61 -msgid "This is an H2" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:45 -#: forum/skins/zapprotect/templates/markdown_help.html:45 -msgid "" -"If you would rather, you can prefix headers with a hash (#) symbol instead. " -"The number of hash symbols indicates the header level. For example, a " -"single hash indicates a header level of one while two indicates the second " -"header level:" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:67 -#: forum/skins/default/templates/markdown_help.html:70 -#: forum/skins/zapprotect/templates/markdown_help.html:67 -#: forum/skins/zapprotect/templates/markdown_help.html:70 -msgid "This is an H3" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:75 -#: forum/skins/zapprotect/templates/markdown_help.html:75 -msgid "" -"Which you choose is a matter of style. Whichever you thinks looks better in " -"the text document. In both cases, the final, fully formatted, document " -"looks the same." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:80 -#: forum/skins/zapprotect/templates/markdown_help.html:80 -msgid "Paragraphs" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:82 -#: forum/skins/zapprotect/templates/markdown_help.html:82 -msgid "Paragraphs are surrounded by blank lines." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:85 -#: forum/skins/zapprotect/templates/markdown_help.html:85 -msgid "This is paragraph one." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:88 -#: forum/skins/zapprotect/templates/markdown_help.html:88 -msgid "This is paragraph two." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:93 -#: forum/skins/zapprotect/templates/markdown_help.html:93 -#, fuzzy -msgid "Links" -msgstr "Вход" - -#: forum/skins/default/templates/markdown_help.html:95 -#: forum/skins/zapprotect/templates/markdown_help.html:95 -msgid "" -"\n" -" There are two parts to every link.\n" -" The first is the actual text that the user will see and it " -"is surrounded by brackets.\n" -" The second is address of the page you wish to link to and it " -"is surrounded in parenthesis.\n" -" " -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:103 -#: forum/skins/default/templates/markdown_help.html:106 -#: forum/skins/zapprotect/templates/markdown_help.html:103 -#: forum/skins/zapprotect/templates/markdown_help.html:106 -msgid "link text" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:103 -#: forum/skins/zapprotect/templates/markdown_help.html:103 -msgid "http://example.com/" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:112 -#: forum/skins/zapprotect/templates/markdown_help.html:112 -msgid "Formatting" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:114 -#: forum/skins/zapprotect/templates/markdown_help.html:114 -msgid "" -"To indicate bold text surround the text with two star (*) symbols or two " -"underscore (_) symbols:" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:118 -#: forum/skins/default/templates/markdown_help.html:121 -#: forum/skins/zapprotect/templates/markdown_help.html:118 -#: forum/skins/zapprotect/templates/markdown_help.html:121 -msgid "This is bold" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:126 -#: forum/skins/default/templates/markdown_help.html:129 -#: forum/skins/zapprotect/templates/markdown_help.html:126 -#: forum/skins/zapprotect/templates/markdown_help.html:129 -msgid "This is also bold" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:134 -#: forum/skins/zapprotect/templates/markdown_help.html:134 -msgid "" -"To indicate italicized text surround the text with a single star (*) symbol " -"or underscore (_) symbol:" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:138 -#: forum/skins/default/templates/markdown_help.html:141 -#: forum/skins/zapprotect/templates/markdown_help.html:138 -#: forum/skins/zapprotect/templates/markdown_help.html:141 -msgid "This is italics" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:146 -#: forum/skins/default/templates/markdown_help.html:149 -#: forum/skins/zapprotect/templates/markdown_help.html:146 -#: forum/skins/zapprotect/templates/markdown_help.html:149 -msgid "This is also italics" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:154 -#: forum/skins/zapprotect/templates/markdown_help.html:154 -msgid "" -"To indicate italicized and bold text surround the text with three star (*) " -"symbol or underscore (_) symbol:" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:158 -#: forum/skins/default/templates/markdown_help.html:161 -#: forum/skins/zapprotect/templates/markdown_help.html:158 -#: forum/skins/zapprotect/templates/markdown_help.html:161 -msgid "This is bold and italics" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:166 -#: forum/skins/default/templates/markdown_help.html:169 -#: forum/skins/zapprotect/templates/markdown_help.html:166 -#: forum/skins/zapprotect/templates/markdown_help.html:169 -msgid "This is also bold and italics" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:176 -#: forum/skins/zapprotect/templates/markdown_help.html:176 -msgid "Blockquotes" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:178 -#: forum/skins/zapprotect/templates/markdown_help.html:178 -msgid "" -"To create an indented area use the right angle bracket (>) character " -"before each line to be included in the blockquote." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:182 -#: forum/skins/default/templates/markdown_help.html:186 -#: forum/skins/default/templates/markdown_help.html:195 -#: forum/skins/default/templates/markdown_help.html:200 -#: forum/skins/zapprotect/templates/markdown_help.html:182 -#: forum/skins/zapprotect/templates/markdown_help.html:186 -#: forum/skins/zapprotect/templates/markdown_help.html:195 -#: forum/skins/zapprotect/templates/markdown_help.html:200 -msgid "This is part of a blockquote." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:183 -#: forum/skins/default/templates/markdown_help.html:186 -#: forum/skins/zapprotect/templates/markdown_help.html:183 -#: forum/skins/zapprotect/templates/markdown_help.html:186 -msgid "This is part of the same blockquote." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:191 -#: forum/skins/zapprotect/templates/markdown_help.html:191 -msgid "" -"Rather than putting it in front of each line to include in the block quote " -"you can put it at the beginning and end the quote with a newline." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:196 -#: forum/skins/default/templates/markdown_help.html:200 -#: forum/skins/zapprotect/templates/markdown_help.html:196 -#: forum/skins/zapprotect/templates/markdown_help.html:200 -msgid "This continues the blockquote even though there's no bracket." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:197 -#: forum/skins/default/templates/markdown_help.html:201 -#: forum/skins/zapprotect/templates/markdown_help.html:197 -#: forum/skins/zapprotect/templates/markdown_help.html:201 -msgid "The blank line ends the blockquote." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:207 -#: forum/skins/zapprotect/templates/markdown_help.html:207 -msgid "Lists" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:209 -#: forum/skins/zapprotect/templates/markdown_help.html:209 -msgid "" -"To create a numbered list in Markdown, prefix each item in the list with a " -"number followed by a period and space. The number you use actually doesn't " -"matter." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:213 -#: forum/skins/default/templates/markdown_help.html:214 -#: forum/skins/default/templates/markdown_help.html:215 -#: forum/skins/default/templates/markdown_help.html:219 -#: forum/skins/default/templates/markdown_help.html:220 -#: forum/skins/default/templates/markdown_help.html:221 -#: forum/skins/zapprotect/templates/markdown_help.html:213 -#: forum/skins/zapprotect/templates/markdown_help.html:214 -#: forum/skins/zapprotect/templates/markdown_help.html:215 -#: forum/skins/zapprotect/templates/markdown_help.html:219 -#: forum/skins/zapprotect/templates/markdown_help.html:220 -#: forum/skins/zapprotect/templates/markdown_help.html:221 -msgid "Item" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:227 -#: forum/skins/zapprotect/templates/markdown_help.html:227 -msgid "" -"To create a bulleted list, prefix each item in the list with a star (*) " -"character." -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:231 -#: forum/skins/default/templates/markdown_help.html:237 -#: forum/skins/zapprotect/templates/markdown_help.html:231 -#: forum/skins/zapprotect/templates/markdown_help.html:237 -msgid "A list item" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:232 -#: forum/skins/default/templates/markdown_help.html:238 -#: forum/skins/zapprotect/templates/markdown_help.html:232 -#: forum/skins/zapprotect/templates/markdown_help.html:238 -msgid "Another list item" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:233 -#: forum/skins/default/templates/markdown_help.html:239 -#: forum/skins/zapprotect/templates/markdown_help.html:233 -#: forum/skins/zapprotect/templates/markdown_help.html:239 -msgid "A third list item" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:246 -#: forum/skins/zapprotect/templates/markdown_help.html:246 -msgid "A Lot More" -msgstr "" - -#: forum/skins/default/templates/markdown_help.html:247 -#: forum/skins/zapprotect/templates/markdown_help.html:247 -msgid "" -"There's a lot more to the Markdown syntax than is mentioned here. But for " -"creative writers, this covers a lot of the necessities. To find out more " -"about Markdown than you'd ever want to really know, go to the Markdown page where it all started." -msgstr "" - -#: forum/skins/default/templates/notarobot.html:3 -#: forum/skins/zapprotect/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "Моля, покажете, че сте Човек" - -#: forum/skins/default/templates/notarobot.html:10 -#: forum/skins/zapprotect/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "Аз съм Човек" - -#: forum/skins/default/templates/opensearch.html:4 -#: forum/skins/default/templates/opensearch.html:5 -#: forum/skins/default/templates/osqaadmin/nodeman.html:275 -#: forum/skins/zapprotect/templates/opensearch.html:4 -#: forum/skins/zapprotect/templates/opensearch.html:5 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:275 -#: rosetta/templates/rosetta/pofile.html:42 -#, fuzzy -msgid "Search" -msgstr "търсене" - -#: forum/skins/default/templates/opensearch.html:5 -#: forum/skins/zapprotect/templates/opensearch.html:5 -msgid "using your browser." -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -#: forum/skins/default/templates/paginator/page_sizes.html:4 -#: forum/skins/zapprotect/templates/pagesize.html:6 -#: forum/skins/zapprotect/templates/paginator/page_sizes.html:4 -msgid "posts per page" -msgstr "публикации на страница" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -#: forum/skins/default/templates/paginator/page_numbers.html:6 -#: forum/skins/zapprotect/templates/paginator.html:6 -#: forum/skins/zapprotect/templates/paginator.html:7 -#: forum/skins/zapprotect/templates/paginator/page_numbers.html:6 -msgid "previous" -msgstr "предишна" - -#: forum/skins/default/templates/paginator.html:19 -#: forum/skins/zapprotect/templates/paginator.html:19 -msgid "current page" -msgstr "текуща страница" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -#: forum/skins/zapprotect/templates/paginator.html:22 -#: forum/skins/zapprotect/templates/paginator.html:29 -msgid "page number " -msgstr "номер на страницата " - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -#: forum/skins/zapprotect/templates/paginator.html:22 -#: forum/skins/zapprotect/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -#: forum/skins/default/templates/paginator/page_numbers.html:22 -#: forum/skins/zapprotect/templates/paginator.html:33 -#: forum/skins/zapprotect/templates/paginator/page_numbers.html:22 -msgid "next page" -msgstr "следваща страница" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -#: forum/skins/zapprotect/templates/privacy.html:6 -#: forum/skins/zapprotect/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "Декларация за поверителност" - -#: forum/skins/default/templates/privacy.html:15 -#: forum/skins/zapprotect/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" -"Respecting users privacy is an important core principle of this Q&A " -"forum. Information on this page details how this forum protects your " -"privacy, and what type of information is collected." - -#: forum/skins/default/templates/privacy.html:18 -#: forum/skins/zapprotect/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -#: forum/skins/zapprotect/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" -"Information on question views, revisions of questions and answers - both " -"times and content are recorded for each user in order to correctly count " -"number of views, maintain data integrity and report relevant updates." - -#: forum/skins/default/templates/privacy.html:23 -#: forum/skins/zapprotect/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -#: forum/skins/zapprotect/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" -"Members of this community may choose to display personally identifiable " -"information in their profiles. Forum will never display such information " -"without a request from the user." - -#: forum/skins/default/templates/privacy.html:28 -#: forum/skins/zapprotect/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -#: forum/skins/zapprotect/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" -"None of the data that is not openly shown on the forum by the choice of the " -"user is shared with any third party." - -#: forum/skins/default/templates/privacy.html:35 -#: forum/skins/zapprotect/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" -"Forum software relies on the internet cookie technology to keep track of " -"user sessions. Cookies must be enabled in your browser so that forum can " -"work for you." - -#: forum/skins/default/templates/privacy.html:37 -#: forum/skins/zapprotect/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -#: forum/skins/zapprotect/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "" -"These policies may be adjusted to improve protection of user's privacy. " -"Whenever such changes occur, users will be notified via the internal " -"messaging system. " - -#: forum/skins/default/templates/question.html:110 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#: forum/skins/zapprotect/templates/question.html:110 -#: forum/skins/zapprotect/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "още въпроси с таг '%(tagname)s'" - -#: forum/skins/default/templates/question.html:129 -#: forum/skins/zapprotect/templates/question.html:129 -#, python-format -msgid "" -"The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "Въпроса беше затворен поради \"%(close_reason)s\" от" - -#: forum/skins/default/templates/question.html:140 -#: forum/skins/zapprotect/templates/question.html:140 -#, fuzzy, python-format -msgid "One Answer:" -msgid_plural "%(counter)s Answers:" -msgstr[0] "най-новите" -msgstr[1] "най-новите" - -#: forum/skins/default/templates/question.html:189 -#: forum/skins/zapprotect/templates/question.html:189 -msgid "Your answer" -msgstr "Вашия отговор" - -#: forum/skins/default/templates/question.html:191 -#: forum/skins/zapprotect/templates/question.html:191 -msgid "Be the first one to answer this question!" -msgstr "Бъдете първия отговорил на този въпрос!" - -#: forum/skins/default/templates/question.html:198 -#: forum/skins/zapprotect/templates/question.html:198 -#, fuzzy -msgid "You can answer anonymously and then login." -msgstr "" -"Започнете да добавяте анонимно - Вашия " -"отговор ще бъда запазен в сесията докато влезнете или си направите акаунт. " -"Моля използвайте неутрални отговори, за дискусия, " -"използвайте само коментарите и моля, гласувайте (след като се оторизирате)!" - -#: forum/skins/default/templates/question.html:202 -#: forum/skins/zapprotect/templates/question.html:202 -#, fuzzy -msgid "Answer your own question only to give an answer." -msgstr "" -"Вие можете да отговорите на Вашия въпрос, но " -"се уверете че предоставяте отговор. Запомнете, че винаги " -"можете да промените първоначалния въпрос. Моля " -"използвайте коментари за дискутиране и не " -"забравяйте да гласувате за отговорите, които харесвате (или не " -"харесвате)" - -#: forum/skins/default/templates/question.html:204 -#: forum/skins/zapprotect/templates/question.html:204 -#, fuzzy -msgid "Please only give an answer, no discussions." -msgstr "" -"Отговора трябва да съдържа само съществена " -"информация. Ако искате да коментирате, просто използвайте " -"опцията за коментиране. Запомнете, че винаги можете да " -"промените Вашите отговори - не е нужно да отговаряте на " -"същите въпроси два пъти. Защо така не забравяйте да гласувате - наистина помага да бъдат избрани най-добрите въпроси и отговори!" - -#: forum/skins/default/templates/question.html:207 -#: forum/skins/zapprotect/templates/question.html:207 -msgid "" -"Remember, your answer will not be published until you validate your email." -msgstr "" - -#: forum/skins/default/templates/question.html:246 -#: forum/skins/zapprotect/templates/question.html:246 -msgid "Login/Signup to Post Your Answer" -msgstr "Оторизирайте се за да добавите Вашия отговор" - -#: forum/skins/default/templates/question.html:249 -#: forum/skins/zapprotect/templates/question.html:249 -msgid "Answer Your Own Question" -msgstr "Отговорете на Вашия въпрос" - -#: forum/skins/default/templates/question.html:251 -#: forum/skins/zapprotect/templates/question.html:251 -msgid "Answer the question" -msgstr "Изпратете Вашия отговор" - -#: forum/skins/default/templates/question.html:269 -#: forum/skins/zapprotect/templates/question.html:269 -msgid "Question tags" -msgstr "Тагове" - -#: forum/skins/default/templates/question.html:274 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:45 -#: forum/skins/default/templates/question_list/item.html:31 -#: forum/skins/zapprotect/templates/question.html:274 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:52 -#: forum/skins/zapprotect/templates/tags.html:45 -#: forum/skins/zapprotect/templates/question_list/item.html:31 -msgid "see questions tagged" -msgstr "виж въпросите по тагове" - -#: forum/skins/default/templates/question.html:274 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:45 -#: forum/skins/default/templates/question_list/item.html:31 -#: forum/skins/zapprotect/templates/question.html:274 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:52 -#: forum/skins/zapprotect/templates/tags.html:45 -#: forum/skins/zapprotect/templates/question_list/item.html:31 -msgid "using tags" -msgstr "използва тагове" - -#: forum/skins/default/templates/question.html:279 -#: forum/skins/zapprotect/templates/question.html:279 -msgid "question asked" -msgstr "Зададен въпрос" - -#: forum/skins/default/templates/question.html:282 -#: forum/skins/zapprotect/templates/question.html:282 -msgid "question was seen" -msgstr "Въпроса е видян" - -#: forum/skins/default/templates/question.html:282 -#: forum/skins/zapprotect/templates/question.html:282 -msgid "times" -msgstr "пъти" - -#: forum/skins/default/templates/question.html:285 -#: forum/skins/zapprotect/templates/question.html:285 -msgid "last updated" -msgstr "Последно обновен" - -#: forum/skins/default/templates/question.html:291 -#: forum/skins/zapprotect/templates/question.html:291 -msgid "Related questions" -msgstr "Подобни въпроси" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:91 -#: forum/skins/zapprotect/templates/question_edit.html:5 -#: forum/skins/zapprotect/templates/question_edit.html:91 -msgid "Edit question" -msgstr "Редактирай въпроса" - -#: forum/skins/default/templates/question_edit_tips.html:4 -#: forum/skins/zapprotect/templates/question_edit_tips.html:4 -msgid "Title Tips" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#: forum/skins/zapprotect/templates/question_edit_tips.html:9 -#, fuzzy, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/question_edit_tips.html:15 -#: forum/skins/zapprotect/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "уверете се, че уточнявате всички аспекти" - -#: forum/skins/default/templates/question_edit_tips.html:30 -#: forum/skins/zapprotect/templates/question_edit_tips.html:30 -msgid "What Are Tags" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:33 -#: forum/skins/zapprotect/templates/question_edit_tips.html:33 -msgid "Tags are words that will tell others what this question is about." -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:36 -#: forum/skins/zapprotect/templates/question_edit_tips.html:36 -msgid "They will help other find your question." -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:39 -#: forum/skins/zapprotect/templates/question_edit_tips.html:39 -#, python-format -msgid "" -"\n" -" A question can have up to %(max_number_of_tags)s tags, but " -"it must have at least %(min_number_of_tags)s.\n" -" " -msgstr "" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:58 -#: forum/skins/zapprotect/templates/question_retag.html:5 -#: forum/skins/zapprotect/templates/question_retag.html:58 -msgid "Change tags" -msgstr "Промени таговете" - -#: forum/skins/default/templates/question_retag.html:43 -#: forum/skins/zapprotect/templates/question_retag.html:43 -msgid "tags are required" -msgstr "таговете са задължителни" - -#: forum/skins/default/templates/question_retag.html:44 -#: forum/skins/zapprotect/templates/question_retag.html:44 -#, fuzzy, python-format -msgid "" -"\n" -" maxlength: \"up to %(max_number_of_tags)s tags, less " -"than %(max_length_of_tags)s characters each\"\n" -" " -msgstr "" -"\n" -"

    %(q_num)s

    question with title " -"containing %(searchtitle)s" - -#: forum/skins/default/templates/question_retag.html:88 -#: forum/skins/zapprotect/templates/question_retag.html:88 -msgid "Why use and modify tags?" -msgstr "Защо да използваме тагове?" - -#: forum/skins/default/templates/question_retag.html:91 -#: forum/skins/zapprotect/templates/question_retag.html:91 -msgid "tags help us keep Questions organized" -msgstr "таговете ни помагат да организираме въпросите" - -#: forum/skins/default/templates/question_retag.html:99 -#: forum/skins/zapprotect/templates/question_retag.html:99 -msgid "tag editors receive special awards from the community" -msgstr "редакторите на тагове получават специални награди от общността" - -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/count.html:15 -#: forum/skins/default/templates/question_list/item.html:15 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:13 -#: forum/skins/zapprotect/templates/question_list/count.html:15 -#: forum/skins/zapprotect/templates/question_list/item.html:15 -#: forum/views/users.py:55 -msgid "answers" -msgstr "отговори" - -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:11 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:14 -#: forum/skins/zapprotect/templates/question_list/item.html:11 -#: forum/views/commands.py:77 forum/views/readers.py:62 -#: forum/views/readers.py:63 forum/views/readers.py:265 -#: forum/views/users.py:54 forum/views/users.py:55 forum/views/users.py:356 -msgid "votes" -msgstr "гласове" - -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:19 -#: forum/skins/zapprotect/templates/question_summary_list_roll.html:15 -#: forum/skins/zapprotect/templates/question_list/item.html:19 -msgid "views" -msgstr "преглеждания" - -#: forum/skins/default/templates/questions.html:18 -#: forum/skins/default/templates/users/stats.html:19 -#: forum/skins/zapprotect/templates/questions.html:18 -#: forum/skins/zapprotect/templates/users/stats.html:19 -#, fuzzy -msgid "subscribe to question RSS feed" -msgstr "Вие сте абониран за този въпрос." - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -#: forum/skins/zapprotect/templates/reopen.html:6 -#: forum/skins/zapprotect/templates/reopen.html:16 -msgid "Reopen question" -msgstr "Отвори отново въпроса" - -#: forum/skins/default/templates/reopen.html:19 -#: forum/skins/zapprotect/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "Отвори преди затворения въпрос" - -#: forum/skins/default/templates/reopen.html:22 -#: forum/skins/zapprotect/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "Въпроса е бил затворен поради следната причина " - -#: forum/skins/default/templates/reopen.html:22 -#: forum/skins/zapprotect/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "причина - остави празно" - -#: forum/skins/default/templates/reopen.html:22 -#: forum/skins/zapprotect/templates/reopen.html:22 -msgid "on " -msgstr "на " - -#: forum/skins/default/templates/reopen.html:22 -#: forum/skins/zapprotect/templates/reopen.html:22 -msgid "date closed" -msgstr "дата на затваряне" - -#: forum/skins/default/templates/reopen.html:29 -#: forum/skins/zapprotect/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "Отвори отново този въпрос" - -#: forum/skins/default/templates/revisions.html:7 -#: forum/skins/default/templates/revisions.html:38 -#: forum/skins/zapprotect/templates/revisions.html:7 -#: forum/skins/zapprotect/templates/revisions.html:38 -msgid "Revision history" -msgstr "История на ревизиите" - -#: forum/skins/default/templates/revisions.html:52 -#: forum/skins/zapprotect/templates/revisions.html:52 -msgid "click to hide/show revision" -msgstr "скрий/покажи ревизиите" - -#: forum/skins/default/templates/search.html:7 -#: forum/skins/zapprotect/templates/search.html:7 -#, python-format -msgid "" -"\n" -"\t Search in %(app_name)s\n" -"\t" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -#: forum/skins/zapprotect/templates/subscription_status.html:3 -#, fuzzy -msgid "Follow this question" -msgstr "Отвори отново този въпрос" - -#: forum/skins/default/templates/subscription_status.html:4 -#: forum/skins/zapprotect/templates/subscription_status.html:4 -#, fuzzy -msgid "By Email" -msgstr "" -"Your Email (must be valid, never shown to others)" - -#: forum/skins/default/templates/subscription_status.html:9 -#: forum/skins/zapprotect/templates/subscription_status.html:9 -msgid "You were automatically subscribed to this question." -msgstr "Вие бяхте автоматично абониран за този въпрос." - -#: forum/skins/default/templates/subscription_status.html:11 -#: forum/skins/zapprotect/templates/subscription_status.html:11 -msgid "You are subscribed to this question." -msgstr "Вие сте абониран за този въпрос." - -#: forum/skins/default/templates/subscription_status.html:14 -#: forum/skins/zapprotect/templates/subscription_status.html:14 -msgid "You are not subscribed to this question." -msgstr "Вие не сте абониран за този въпрос." - -#: forum/skins/default/templates/subscription_status.html:19 -#: forum/skins/zapprotect/templates/subscription_status.html:19 -#: forum/views/commands.py:463 -msgid "unsubscribe me" -msgstr "махни абонамента ми" - -#: forum/skins/default/templates/subscription_status.html:21 -#: forum/skins/zapprotect/templates/subscription_status.html:21 -#: forum/views/commands.py:463 -msgid "subscribe me" -msgstr "абонирай ме" - -#: forum/skins/default/templates/subscription_status.html:26 -#: forum/skins/zapprotect/templates/subscription_status.html:26 -#, fuzzy, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" -"(можете да промените абонаментните настройки в Вашия профил)\n" - -#: forum/skins/default/templates/subscription_status.html:31 -#: forum/skins/zapprotect/templates/subscription_status.html:31 -#, fuzzy -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" -"Тук (след като се оторизирате) ще можете да се " -"абонирате за периодични известявания по този въпрос." - -#: forum/skins/default/templates/subscription_status.html:33 -#: forum/skins/zapprotect/templates/subscription_status.html:33 -msgid "By RSS" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:36 -#: forum/skins/zapprotect/templates/subscription_status.html:36 -#, fuzzy -msgid "subscribe to answers" -msgstr "абонирай ме" - -#: forum/skins/default/templates/subscription_status.html:37 -#: forum/skins/zapprotect/templates/subscription_status.html:37 -#, fuzzy -msgid "Answers" -msgstr "отговори" - -#: forum/skins/default/templates/subscription_status.html:41 -#: forum/skins/zapprotect/templates/subscription_status.html:41 -#, fuzzy -msgid "subscribe to comments and answers" -msgstr "най-старите" - -#: forum/skins/default/templates/subscription_status.html:42 -#: forum/skins/zapprotect/templates/subscription_status.html:42 -#, fuzzy -msgid "Answers and Comments" -msgstr "добави коментари" - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -#: forum/skins/zapprotect/templates/tag_selector.html:4 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "Интересни тагове" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#: forum/skins/zapprotect/templates/tag_selector.html:10 -#: forum/skins/zapprotect/templates/tag_selector.html:27 -#: forum/skins/zapprotect/templates/question_list/related_tags.html:9 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:12 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "виж въпросите с таг '%(tag_name)s'" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#: forum/skins/zapprotect/templates/tag_selector.html:14 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "премахни '%(tag_name)s' от списъка с интересни тагове" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -#: forum/skins/zapprotect/templates/tag_selector.html:20 -#: forum/skins/zapprotect/templates/tag_selector.html:37 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:22 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "Добави" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -#: forum/skins/zapprotect/templates/tag_selector.html:21 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "Игнорирани тагове" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#: forum/skins/zapprotect/templates/tag_selector.html:31 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "премахни '%(tag_name)s' от списъка с игнорирани тагове" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:43 -#: forum/skins/zapprotect/templates/tag_selector.html:40 -#: forum/skins/zapprotect/templates/question_list/tag_selector.html:43 -msgid "keep ignored questions hidden" -msgstr "скривай игнорираните въпроси" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:29 -#: forum/skins/zapprotect/templates/tags.html:6 -#: forum/skins/zapprotect/templates/tags.html:29 -msgid "Tag list" -msgstr "Списък тагове" - -#: forum/skins/default/templates/tags.html:35 -#: forum/skins/zapprotect/templates/tags.html:35 -msgid "All tags matching query" -msgstr "Всички тагове отговарящи на заявката" - -#: forum/skins/default/templates/tags.html:38 -#: forum/skins/zapprotect/templates/tags.html:38 -msgid "Nothing found" -msgstr "Нищо не беше намерено" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:5 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "Опции за оторизиране" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:9 -msgid "" -"These are the external authentication providers currently associated with " -"your account." -msgstr "Това са външни оторизатори свързани с Вашия акаунт" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:17 -msgid "" -"You currently have no external authentication provider associated with your " -"account." -msgstr "В момента нямате външни оторизатори свързани с Вашия акаунт." - -#: forum/skins/default/templates/auth/auth_settings.html:20 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:20 -msgid "Add new provider" -msgstr "Добави нов оторизатор" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:24 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" -"За да промените паролата попълнете и изпратете " -"формата." - -#: forum/skins/default/templates/auth/auth_settings.html:26 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:26 -msgid "" -"You can set up a password for your account, so you can login using standard " -"username and password!" -msgstr "" -"Можете да зададете парола за Вашия акаунт, така че да използвате стандартно " -"потребителско име и парола!" - -#: forum/skins/default/templates/auth/auth_settings.html:33 -#: forum/skins/zapprotect/templates/auth/auth_settings.html:33 -#, fuzzy -msgid "Create password" -msgstr "Парола (напишете отново)" - -#: forum/skins/default/templates/auth/complete.html:5 -#: forum/skins/zapprotect/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "Свържете OpenID към този сайт" - -#: forum/skins/default/templates/auth/complete.html:8 -#: forum/skins/zapprotect/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "Нова потребителска регистрация" - -#: forum/skins/default/templates/auth/complete.html:12 -#: forum/skins/zapprotect/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "Вие сте тук за пръв път от " - -#: forum/skins/default/templates/auth/complete.html:13 -#: forum/skins/zapprotect/templates/auth/complete.html:13 -msgid "" -"Please create your screen name and save your email address. Saved email " -"address will let you subscribe for the updates on the most interesting " -"questions and will be used to create and retrieve your unique avatar image. " -msgstr "" -"Създайте Вашето публично име и запазете имейла си. Запазените имейл адреси " -"ще можете да използвате за да се абонирате за известия за най-интересните " -"въпроси." - -#: forum/skins/default/templates/auth/complete.html:15 -#: forum/skins/zapprotect/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "Този акаунт вече съществува, изплозвайте друг." - -#: forum/skins/default/templates/auth/complete.html:70 -#: forum/skins/zapprotect/templates/auth/complete.html:70 -msgid "receive updates motivational blurb" -msgstr "" -"Получавайте ъпдейти по имейл - това ще помогне на нашата " -"общност да помогне и да стане по-ползотворна.
    По подразбиране, се " -"изпраща само един имейл на седмица с цялата най-важна информация.
    Ако " -"желаете, можете да промените тази опция сега или по всяко едно време през " -"настройките на Вашия акаунт." - -#: forum/skins/default/templates/auth/complete.html:74 -#: forum/skins/zapprotect/templates/auth/complete.html:74 -msgid "please select one of the options above" -msgstr "изберете една от посочените опции" - -#: forum/skins/default/templates/auth/complete.html:77 -#: forum/skins/zapprotect/templates/auth/complete.html:77 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "Инстромент за филтриране на тагове, намира се отдясно след оторизация." - -#: forum/skins/default/templates/auth/complete.html:78 -#: forum/skins/zapprotect/templates/auth/complete.html:78 -msgid "create account" -msgstr "Регистрация" - -#: forum/skins/default/templates/auth/complete.html:87 -#: forum/skins/zapprotect/templates/auth/complete.html:87 -msgid "Existing account" -msgstr "Съществуващ акаунт" - -#: forum/skins/default/templates/auth/complete.html:88 -#: forum/skins/zapprotect/templates/auth/complete.html:88 -msgid "user name" -msgstr "потребителско име" - -#: forum/skins/default/templates/auth/complete.html:89 -#: forum/skins/zapprotect/templates/auth/complete.html:89 -msgid "password" -msgstr "парола" - -#: forum/skins/default/templates/auth/complete.html:96 -#: forum/skins/zapprotect/templates/auth/complete.html:96 -msgid "Register" -msgstr "Регистрация" - -#: forum/skins/default/templates/auth/complete.html:97 -#: forum/skins/zapprotect/templates/auth/complete.html:97 -#: forum_modules/localauth/templates/loginform.html:27 -msgid "Forgot your password?" -msgstr "Забравена парола?" - -#: forum/skins/default/templates/auth/mail_validation.html:11 -#: forum/skins/zapprotect/templates/auth/mail_validation.html:11 -#, python-format -msgid "%(prefix)s Your email validation link %(app_name)s" -msgstr "" - -#: forum/skins/default/templates/auth/mail_validation.html:14 -#: forum/skins/zapprotect/templates/auth/mail_validation.html:14 -#, fuzzy -msgid "Please use the following link to help us verify your email address:" -msgstr "Използването на посочения линк ще потвърди Вашия имейл." - -#: forum/skins/default/templates/auth/mail_validation.html:16 -#: forum/skins/default/templates/auth/welcome_email.html:26 -#: forum/skins/zapprotect/templates/auth/mail_validation.html:16 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:26 -#, fuzzy -msgid "Validate my email address" -msgstr "Your email (never shared)" - -#: forum/skins/default/templates/auth/mail_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:19 -#: forum/skins/default/templates/auth/welcome_email.html:28 -#: forum/skins/zapprotect/templates/auth/mail_validation.html:18 -#: forum/skins/zapprotect/templates/auth/temp_login_email.html:19 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:28 -msgid "" -"If the above link is not clickable, copy and paste this url into your web " -"browser's address bar:" -msgstr "" - -#: forum/skins/default/templates/auth/mail_validation.html:24 -#: forum/skins/default/templates/auth/welcome_email.html:40 -#: forum/skins/zapprotect/templates/auth/mail_validation.html:24 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:40 -msgid "" -"Copy and paste this url into your web browser's address bar to help us " -"verify your email address:" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -#: forum/skins/zapprotect/templates/auth/signin.html:6 -#: forum_modules/localauth/templates/loginform.html:24 -#: forum_modules/openidauth/templates/openidurl.html:15 -msgid "Login" -msgstr "Вход" - -#: forum/skins/default/templates/auth/signin.html:24 -#: forum/skins/zapprotect/templates/auth/signin.html:24 -msgid "User login" -msgstr "Потребителски вход" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:93 -#: forum/skins/default/templates/auth/signin.html:99 -#: forum/skins/zapprotect/templates/auth/signin.html:36 -#: forum/skins/zapprotect/templates/auth/signin.html:93 -#: forum/skins/zapprotect/templates/auth/signin.html:99 -msgid "Or..." -msgstr "Или..." - -#: forum/skins/default/templates/auth/signin.html:39 -#: forum/skins/zapprotect/templates/auth/signin.html:39 -msgid "" -"\n" -" External login services use OpenID technology, where your password always stays confidential " -"between\n" -" you and your login provider and you don't have to remember another " -"one.\n" -" " -msgstr "" -"\n" -"Външните услуги за оторизация използват OpenID технология, като цялата информация между клиента и сървъра " -"остава защитена. " - -#: forum/skins/default/templates/auth/signin.html:47 -#: forum/skins/zapprotect/templates/auth/signin.html:47 -msgid "Validate my email after I login." -msgstr "Потвърди моя имейл след като влезна." - -#: forum/skins/default/templates/auth/signin.html:102 -#: forum/skins/zapprotect/templates/auth/signin.html:102 -msgid "Click" -msgstr "Кликнете" - -#: forum/skins/default/templates/auth/signin.html:102 -#: forum/skins/zapprotect/templates/auth/signin.html:102 -msgid "if you're having troubles signing in." -msgstr "ако имате проблем с влизането." - -#: forum/skins/default/templates/auth/signin.html:107 -#: forum/skins/zapprotect/templates/auth/signin.html:107 -msgid "Enter your " -msgstr "Въведете Вашия " - -#: forum/skins/default/templates/auth/signin.html:163 -#: forum/skins/zapprotect/templates/auth/signin.html:163 -msgid "Why use OpenID?" -msgstr "Защо да използваме OpenID?" - -#: forum/skins/default/templates/auth/signin.html:166 -#: forum/skins/zapprotect/templates/auth/signin.html:166 -msgid "with openid it is easier" -msgstr "Използвайки OpenID не е нужно да създавате нов потребител." - -#: forum/skins/default/templates/auth/signin.html:169 -#: forum/skins/zapprotect/templates/auth/signin.html:169 -msgid "reuse openid" -msgstr "" -"Можете спокойно да използвате същия OpenID профил за останалите сайтове, " -"поддържащи технологията." - -#: forum/skins/default/templates/auth/signin.html:172 -#: forum/skins/zapprotect/templates/auth/signin.html:172 -msgid "openid is widely adopted" -msgstr "" -"Има повече от 200 000 000 OpenID профила и повече от 15 000 сайта поддържащи " -"технологията." - -#: forum/skins/default/templates/auth/signin.html:175 -#: forum/skins/zapprotect/templates/auth/signin.html:175 -msgid "openid is supported open standard" -msgstr "OpenID е базиран на отворен стандарт, поддържан от много компании." - -#: forum/skins/default/templates/auth/signin.html:180 -#: forum/skins/zapprotect/templates/auth/signin.html:180 -msgid "Find out more" -msgstr "Разбери повече" - -#: forum/skins/default/templates/auth/signin.html:181 -#: forum/skins/zapprotect/templates/auth/signin.html:181 -msgid "Get OpenID" -msgstr "Вземи OpenID" - -#: forum/skins/default/templates/auth/temp_login_email.html:11 -#: forum/skins/zapprotect/templates/auth/temp_login_email.html:11 -#, python-format -msgid "%(prefix)s Temporary login link" -msgstr "%(prefix)s Временен линк за вход" - -#: forum/skins/default/templates/auth/temp_login_email.html:15 -#: forum/skins/zapprotect/templates/auth/temp_login_email.html:15 -#, python-format -msgid "" -"The following link grants you a one time access to your account at %" -"(app_name)s." -msgstr "" -"Следния линк предоставя възможност за еднократна оторизация на %(app_name)s" - -#: forum/skins/default/templates/auth/temp_login_email.html:17 -#: forum/skins/zapprotect/templates/auth/temp_login_email.html:17 -#, fuzzy -msgid "Go to your account" -msgstr "" -"Нов имейл: (няма да бъде споделян, трябва да бъде " -"действителен)" - -#: forum/skins/default/templates/auth/temp_login_email.html:25 -#: forum/skins/zapprotect/templates/auth/temp_login_email.html:25 -#, python-format -msgid "" -"The following url grants you a one time access to your account at %(app_name)" -"s." -msgstr "" -"Следния адрес предоставя права за еднократна оторизация във Вашия профил на %" -"(app_name)s" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -#: forum/skins/zapprotect/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "Поискай временен ключ за достъп" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -#: forum/skins/zapprotect/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "Профил: поискай временен ключ за достъп" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -#: forum/skins/zapprotect/templates/auth/temp_login_request.html:8 -#, fuzzy -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot " -"your password,\n" -" here you can request a temporary login key. Fill out your account email " -"and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once " -"and for a limited period of time.\n" -" " -msgstr "" -"Ако изпитвате проблеми с достъпа до Вашия акаунт или сте забравили паролата " -"си, тук можете да поискате временен код за достъп. Попълнете Вашия имейл " -"адрес и ние ще изпратим временна връзка, предоставяща достъп до профила. " -"Това ще Ви даде шанс да получите достъп до профила си. Този код е достъпен " -"само веднъж и за определен интервал от време.\n" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -#: forum/skins/zapprotect/templates/auth/temp_login_request.html:25 -#, fuzzy -msgid "Send link" -msgstr "Изпрати връзка" - -#: forum/skins/default/templates/auth/welcome_email.html:12 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:12 -#, fuzzy, python-format -msgid "%(prefix)s Welcome to %(app_name)s" -msgstr "%(username)s е нов потребител на %(app_name)s" - -#: forum/skins/default/templates/auth/welcome_email.html:16 -#: forum/skins/default/templates/auth/welcome_email.html:34 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:16 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:34 -#, python-format -msgid "" -"Howdy and welcome to %(app_name)s. We know you're busy, so we'll keep this " -"real simple." -msgstr "" -"Добре дошли на %(app_name)s. Знаем, че сте заети, за това обещаваме всичко " -"да бъде максимално просто." - -#: forum/skins/default/templates/auth/welcome_email.html:19 -#: forum/skins/default/templates/auth/welcome_email.html:35 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:19 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:35 -msgid "Here's your login info (store it in a cool dry place):" -msgstr "Това е Вашата информация за логин (запазете я на сигурно място):" - -#: forum/skins/default/templates/auth/welcome_email.html:21 -#: forum/skins/default/templates/auth/welcome_email.html:37 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:21 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:37 -#, fuzzy -msgid "Username: " -msgstr "Потребителско име: " - -#: forum/skins/default/templates/auth/welcome_email.html:22 -#: forum/skins/default/templates/auth/welcome_email.html:38 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:22 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:38 -msgid "Password: As IF we would send your password in cleartext!" -msgstr "Парола: " - -#: forum/skins/default/templates/auth/welcome_email.html:24 -#: forum/skins/zapprotect/templates/auth/welcome_email.html:24 -#, fuzzy -msgid "The following link will help us verify your email address:" -msgstr "Използването на посочения линк ще потвърди Вашия имейл." - -#: forum/skins/default/templates/feeds/rss_answer_title.html:2 -#: forum/skins/zapprotect/templates/feeds/rss_answer_title.html:2 -#, python-format -msgid "Answer by %(author)s" -msgstr "Отговор от %(author)s" - -#: forum/skins/default/templates/node/accept_button.html:5 -#: forum/skins/zapprotect/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "%(who)s избра този отговор за верен" - -#: forum/skins/default/templates/node/accept_button.html:5 -#: forum/skins/zapprotect/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "отбележи този отговор като приет" - -#: forum/skins/default/templates/node/comments.html:13 -#: forum/skins/zapprotect/templates/node/comments.html:13 -msgid "I like this comment (click again to cancel)" -msgstr "Аз харесвам този коментар" - -#: forum/skins/default/templates/node/comments.html:17 -#: forum/skins/zapprotect/templates/node/comments.html:17 -#, fuzzy -msgid "Edit comment" -msgstr "Редактирай" - -#: forum/skins/default/templates/node/comments.html:21 -#: forum/skins/zapprotect/templates/node/comments.html:21 -#, fuzzy -msgid "Delete comment" -msgstr "Изтрий" - -#: forum/skins/default/templates/node/comments.html:34 -#: forum/skins/zapprotect/templates/node/comments.html:34 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "показани %(showing)s от %(total)s" - -#: forum/skins/default/templates/node/comments.html:36 -#: forum/skins/zapprotect/templates/node/comments.html:36 -msgid "show all" -msgstr "покажи всички" - -#: forum/skins/default/templates/node/comments.html:39 -#: forum/skins/zapprotect/templates/node/comments.html:39 -#, fuzzy -msgid "add new comment" -msgstr "добави коментар" - -#: forum/skins/default/templates/node/comments.html:50 -#: forum/skins/zapprotect/templates/node/comments.html:50 -msgid "characters needed" -msgstr "необходими символи" - -#: forum/skins/default/templates/node/comments.html:51 -#: forum/skins/zapprotect/templates/node/comments.html:51 -msgid "characters left" -msgstr "оставащи символи" - -#: forum/skins/default/templates/node/comments.html:53 -#: forum/skins/zapprotect/templates/node/comments.html:53 -#, fuzzy -msgid " comment" -msgstr " коментар" - -#: forum/skins/default/templates/node/comments.html:54 -#: forum/skins/zapprotect/templates/node/comments.html:54 -#, fuzzy -msgid " cancel" -msgstr "Откажи" - -#: forum/skins/default/templates/node/comments.html:66 -#: forum/skins/zapprotect/templates/node/comments.html:66 -#, fuzzy -msgid "just now" -msgstr "Logout Now" - -#: forum/skins/default/templates/node/convert_to_comment.html:4 -#: forum/skins/zapprotect/templates/node/convert_to_comment.html:4 -#, fuzzy -msgid "Place the comment under:" -msgstr "Постави коментара под:" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -#: forum/skins/zapprotect/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "отбележи въпроса като любим" - -#: forum/skins/default/templates/node/post_controls.html:14 -#: forum/skins/zapprotect/templates/node/post_controls.html:14 -#, fuzzy -msgid "more" -msgstr "повече" - -#: forum/skins/default/templates/node/report.html:3 -#: forum/skins/zapprotect/templates/node/report.html:3 -msgid "" -"Please select a reason bellow or use the text box to input your own reason." -msgstr "Изберете някоя от посочените причини или използвайте поле." - -#: forum/skins/default/templates/node/vote_buttons.html:3 -#: forum/skins/zapprotect/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "Аз харесвам тази публикация" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -#: forum/skins/zapprotect/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "количество гласове" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -#: forum/skins/zapprotect/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "Аз не харесвам тази публикация" - -#: forum/skins/default/templates/node/wiki_symbol.html:5 -#: forum/skins/zapprotect/templates/node/wiki_symbol.html:5 -#, python-format -msgid "This %(post_type)s is marked \"community wiki\"." -msgstr "Този %(post_type)s е маркиран като \"уики общност\"" - -#: forum/skins/default/templates/node/wiki_symbol.html:7 -#: forum/skins/zapprotect/templates/node/wiki_symbol.html:7 -#, python-format -msgid "Feel free to edit it." -msgstr "Чуствайте се свободни да редактирате" - -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/zapprotect/templates/notifications/answeraccepted.html:15 -#, fuzzy, python-format -msgid "%(prefix)s An answer to: %(question_title)s has been accepted" -msgstr "Отговора на въпроса '%(question_title)s' беше приет" - -#: forum/skins/default/templates/notifications/answeraccepted.html:19 -#: forum/skins/zapprotect/templates/notifications/answeraccepted.html:19 -#, python-format -msgid "" -"\n" -" %(accepted_by_link)s has just accepted %(answer_author_link)s's " -"answer on his question\n" -" %(question_link)s.\n" -" " -msgstr "" -"\n" -" %(accepted_by_link)s току що прие %(answer_author_link)s's " -"отговор на неговия въпрос\n" -" %(question_link)s.\n" -" " - -#: forum/skins/default/templates/notifications/answeraccepted.html:27 -#: forum/skins/zapprotect/templates/notifications/answeraccepted.html:27 -#, python-format -msgid "" -"\n" -"%(accepted_by)s has just accepted %(answer_author)s's answer on his " -"question\n" -"\"%(question_title)s\".\n" -msgstr "" - -#: forum/skins/default/templates/notifications/base.html:21 -#: forum/skins/default/templates/notifications/base_text.html:4 -#: forum/skins/zapprotect/templates/notifications/base.html:21 -#: forum/skins/zapprotect/templates/notifications/base_text.html:4 -msgid "Hello" -msgstr "Здравейте" - -#: forum/skins/default/templates/notifications/base.html:24 -#: forum/skins/default/templates/notifications/base_text.html:9 -#: forum/skins/zapprotect/templates/notifications/base.html:24 -#: forum/skins/zapprotect/templates/notifications/base_text.html:9 -msgid "Thanks" -msgstr "Поздрави" - -#: forum/skins/default/templates/notifications/base.html:26 -#: forum/skins/zapprotect/templates/notifications/base.html:26 -msgid "P.S. You can always fine-tune which notifications you receive" -msgstr "P.S. Винаги можете да изберете кои известия да получавате" - -#: forum/skins/default/templates/notifications/base_text.html:13 -#: forum/skins/zapprotect/templates/notifications/base_text.html:13 -msgid "P.S. You can always fine-tune which notifications you receive here:" -msgstr "P.S. Винаги можете да изберете кои известия да получавате тук:" - -#: forum/skins/default/templates/notifications/digest.html:14 -#: forum/skins/zapprotect/templates/notifications/digest.html:14 -#, fuzzy, python-format -msgid "%(prefix)s Daily digest" -msgstr "%(prefix)s Дневен бюлетин" - -#: forum/skins/default/templates/notifications/digest.html:18 -#: forum/skins/zapprotect/templates/notifications/digest.html:18 -#, fuzzy, python-format -msgid "" -"\n" -" This is a brief of what's going on the %(app_name)s community " -"since our last update.\n" -" " -msgstr "" -"\n" -"(един коментар)" - -#: forum/skins/default/templates/notifications/digest.html:26 -#: forum/skins/zapprotect/templates/notifications/digest.html:26 -#, fuzzy, python-format -msgid "" -"\n" -" There are %(new_member_count)s new members in the community. %" -"(new_member_links)s were the most active so far.\n" -" " -msgstr "" -"Има %(new_member_count)s нови потребители в общността. %(new_member_links)s " -"са били най-активни до сега.\n" - -#: forum/skins/default/templates/notifications/digest.html:30 -#: forum/skins/zapprotect/templates/notifications/digest.html:30 -#, fuzzy, python-format -msgid "" -"\n" -" %(new_member_links)s have joined the %(app_name)s community.\n" -" " -msgstr "" -"\n" -"

    %(q_num)s

    тагнати въпроса

    %(tagname)s

    " - -#: forum/skins/default/templates/notifications/digest.html:46 -#: forum/skins/zapprotect/templates/notifications/digest.html:46 -#, fuzzy, python-format -msgid "" -"\n" -" %(new_question_count)s %(new_questions_link)s were posted since " -"our last update.\n" -" " -msgstr "" -"\n" -"(един коментар)" - -#: forum/skins/default/templates/notifications/digest.html:53 -#: forum/skins/zapprotect/templates/notifications/digest.html:53 -#, fuzzy -msgid "We think you might like the following questions:" -msgstr "Това може да е станало поради следните причини:" - -#: forum/skins/default/templates/notifications/digest.html:66 -#: forum/skins/zapprotect/templates/notifications/digest.html:66 -msgid "" -"These new questions didn't get many attention from the community, but we " -"think you may be able to help:" -msgstr "" -"Тези въпроси не са предизвикали много внимание в общността, но ние смятаме, " -"че Вие бихте могли да помогнете:" - -#: forum/skins/default/templates/notifications/digest.html:78 -#: forum/skins/zapprotect/templates/notifications/digest.html:78 -#, python-format -msgid "" -"Meanwhile, some of your %(subscriptions_link)s have new updates since you " -"last visited them:" -msgstr "" -"Междувременно, някои от Вашите %(subscriptions_link)s абонаменти имат " -"обновявания след като последно сте ги прегледали:" - -#: forum/skins/default/templates/notifications/feedback.html:12 -#: forum/skins/zapprotect/templates/notifications/feedback.html:12 -#, fuzzy, python-format -msgid "%(prefix)s Feedback message from %(app_name)s" -msgstr "%(prefix)s съобщение за Обратна Връзка от %(app_name)s" - -#: forum/skins/default/templates/notifications/feedback.html:16 -#: forum/skins/default/templates/notifications/feedback.html:29 -#: forum/skins/zapprotect/templates/notifications/feedback.html:16 -#: forum/skins/zapprotect/templates/notifications/feedback.html:29 -msgid "Sender" -msgstr "Изпратил" - -#: forum/skins/default/templates/notifications/feedback.html:16 -#: forum/skins/default/templates/notifications/feedback.html:29 -#: forum/skins/zapprotect/templates/notifications/feedback.html:16 -#: forum/skins/zapprotect/templates/notifications/feedback.html:29 -msgid "anonymous" -msgstr "анонимен" - -#: forum/skins/default/templates/notifications/feedback.html:17 -#: forum/skins/default/templates/notifications/feedback.html:30 -#: forum/skins/default/templates/users/info.html:80 -#: forum/skins/zapprotect/templates/notifications/feedback.html:17 -#: forum/skins/zapprotect/templates/notifications/feedback.html:30 -#: forum/skins/zapprotect/templates/users/info.html:80 -msgid "email" -msgstr "имейл" - -#: forum/skins/default/templates/notifications/feedback.html:23 -#: forum/skins/default/templates/notifications/feedback.html:33 -#: forum/skins/zapprotect/templates/notifications/feedback.html:23 -#: forum/skins/zapprotect/templates/notifications/feedback.html:33 -msgid "Message body:" -msgstr "Съдържание:" - -#: forum/skins/default/templates/notifications/newanswer.html:16 -#: forum/skins/zapprotect/templates/notifications/newanswer.html:16 -#, fuzzy, python-format -msgid "%(prefix)s New answer to: %(question_title)s" -msgstr "%(prefix)s Нов отговор до: %(question_title)s" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/zapprotect/templates/notifications/newanswer.html:20 -#, fuzzy, python-format -msgid "" -"\n" -" %(author_link)s has just posted a new answer on %(app_name)s to " -"the question\n" -" %(question_link)s:\n" -" " -msgstr "" -"\n" -" %(author_link)s току що публикува нов отговор в %(app_name)s на " -"въпроса \n" -" %(question_link)s:\n" -" " - -#: forum/skins/default/templates/notifications/newanswer.html:30 -#: forum/skins/default/templates/notifications/newanswer.html:40 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newcomment.html:43 -#: forum/skins/default/templates/notifications/newquestion.html:33 -#: forum/skins/default/templates/notifications/newquestion.html:43 -#: forum/skins/zapprotect/templates/notifications/newanswer.html:30 -#: forum/skins/zapprotect/templates/notifications/newanswer.html:40 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:32 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:43 -#: forum/skins/zapprotect/templates/notifications/newquestion.html:33 -#: forum/skins/zapprotect/templates/notifications/newquestion.html:43 -msgid "Don't forget to come over and cast your vote." -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:34 -#: forum/skins/zapprotect/templates/notifications/newanswer.html:34 -#, python-format -msgid "" -"\n" -"%(answer_author)s has just posted a new answer on %(safe_app_name)s to the " -"question\n" -"\"%(question_title)s\":\n" -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:17 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:17 -#, fuzzy, python-format -msgid "%(prefix)s New comment on: %(question_title)s" -msgstr "Нов коментар на %(question_title)s" - -#: forum/skins/default/templates/notifications/newcomment.html:21 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:21 -#, fuzzy, python-format -msgid "%(author_link)s has just posted a comment on " -msgstr "" -"\n" -"
    %(q_num)s

    question tagged

    %(tagname)s

    " - -#: forum/skins/default/templates/notifications/newcomment.html:23 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:23 -#, python-format -msgid "the answer posted by %(post_author)s to " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:25 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:25 -#, fuzzy, python-format -msgid "the question %(question_link)s" -msgstr "Нов коментар на %(question_title)s" - -#: forum/skins/default/templates/notifications/newcomment.html:36 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:36 -#, fuzzy, python-format -msgid "%(comment_author)s has just posted a comment on " -msgstr "" -"\n" -"
    %(q_num)s

    question tagged

    %(tagname)s

    " - -#: forum/skins/default/templates/notifications/newcomment.html:38 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:38 -#, python-format -msgid "the answer posted by %(safe_post_author)s to " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:40 -#: forum/skins/zapprotect/templates/notifications/newcomment.html:40 -#, fuzzy, python-format -msgid "the question \"%(question_title)s\"" -msgstr "Нов коментар на %(question_title)s" - -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/zapprotect/templates/notifications/newmember.html:15 -#, fuzzy, python-format -msgid "%(prefix)s %(safe_newmember_name)s is a new member on %(safe_app_name)s" -msgstr "%(username)s е нов потребител на %(app_name)s" - -#: forum/skins/default/templates/notifications/newmember.html:19 -#: forum/skins/zapprotect/templates/notifications/newmember.html:19 -#, python-format -msgid "" -"\n" -" %(newmember_link)s has just joined %(app_name)s.\n" -" View %(newmember_name)s's profile.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:27 -#: forum/skins/zapprotect/templates/notifications/newmember.html:27 -#, python-format -msgid "" -"\n" -"%(safe_newmember_name)s has just joined %(safe_app_name)s. You can visit %" -"(safe_newmember_name)s's profile using the following url:\n" -"%(app_url)s%(newmember_url)s\n" -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:18 -#: forum/skins/zapprotect/templates/notifications/newquestion.html:18 -#, fuzzy, python-format -msgid "%(prefix)s New question: %(question_title)s on %(safe_app_name)s" -msgstr "Нов въпрос на %(app_name)s" - -#: forum/skins/default/templates/notifications/newquestion.html:22 -#: forum/skins/zapprotect/templates/notifications/newquestion.html:22 -#, python-format -msgid "" -"\n" -" %(author_link)s has just posted a new question on %(app_name)s, " -"entitled\n" -" %(question_link)s\n" -" and tagged \"%(tag_links)s\". Here's what it says:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:37 -#: forum/skins/zapprotect/templates/notifications/newquestion.html:37 -#, python-format -msgid "" -"\n" -"%(question_author)s has just posted a new question on %(safe_app_name)s, " -"entitled\n" -"\"%(question_title)s\" and tagged %(question_tags)s:\n" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:22 -#: forum/skins/zapprotect/templates/osqaadmin/base.html:13 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:22 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -#: forum/skins/zapprotect/templates/osqaadmin/base.html:26 -msgid "Switch to django style interface" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:27 -#: forum/skins/zapprotect/templates/osqaadmin/base.html:27 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/createuser.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/createuser.html:7 -#, fuzzy -msgid "Create User" -msgstr "Парола (напишете отново)" - -#: forum/skins/default/templates/osqaadmin/createuser.html:10 -#: forum/skins/zapprotect/templates/osqaadmin/createuser.html:10 -#, fuzzy -msgid "Quick creation of a new user" -msgstr "answer" - -#: forum/skins/default/templates/osqaadmin/createuser.html:17 -#: forum/skins/default/templates/osqaadmin/edit_page.html:25 -#: forum/skins/default/templates/osqaadmin/nodeman.html:397 -#: forum/skins/default/templates/osqaadmin/set.html:16 -#: forum/skins/default/templates/users/preferences.html:25 -#: forum/skins/zapprotect/templates/osqaadmin/createuser.html:17 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:25 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:397 -#: forum/skins/zapprotect/templates/osqaadmin/set.html:16 -#: forum/skins/zapprotect/templates/users/preferences.html:25 -#, fuzzy -msgid "Save" -msgstr "Запази промените" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:7 -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:42 -#: forum/skins/default/templates/osqaadmin/index.html:7 -#: forum/skins/default/templates/osqaadmin/statistics.html:25 -#: forum/skins/default/templates/osqaadmin/statistics.html:26 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:42 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/statistics.html:25 -#: forum/skins/zapprotect/templates/osqaadmin/statistics.html:26 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:10 -#: forum/skins/default/templates/osqaadmin/index.html:10 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:10 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:16 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:16 -msgid "Quick statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:19 -#: forum/skins/default/templates/osqaadmin/dashboard.html:24 -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:19 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:24 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:21 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:29 -#: forum/skins/default/templates/osqaadmin/index.html:31 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:29 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:29 -#: forum/skins/default/templates/osqaadmin/index.html:31 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:29 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:36 -#: forum/skins/default/templates/osqaadmin/index.html:37 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:36 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:40 -#: forum/skins/default/templates/osqaadmin/index.html:42 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:40 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:42 -msgid "" -"Your site is running in bootstrap mode, click the button below to revert to " -"defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:43 -#: forum/skins/default/templates/osqaadmin/index.html:45 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:43 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:45 -msgid "" -"Your site is running in standard mode, click the button below to run in " -"bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:45 -#: forum/skins/default/templates/osqaadmin/index.html:47 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:45 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:47 -msgid "" -"Your site is running with some customized settings, click the buttons below " -"to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:49 -#: forum/skins/default/templates/osqaadmin/index.html:51 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:49 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:49 -#: forum/skins/default/templates/osqaadmin/index.html:51 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:49 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:52 -#: forum/skins/default/templates/osqaadmin/index.html:54 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:52 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:52 -#: forum/skins/default/templates/osqaadmin/index.html:54 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:52 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/dashboard.html:66 -#: forum/skins/default/templates/osqaadmin/index.html:71 -#: forum/skins/zapprotect/templates/osqaadmin/dashboard.html:66 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:71 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:29 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:29 -#, fuzzy -msgid "Administration Area" -msgstr "администрация" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:33 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:33 -#, fuzzy -msgid "Welcome," -msgstr "Добре дошли в Zapprotect Q&A" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:35 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:35 -msgid "To standard interface" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:36 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:36 -#, fuzzy -msgid "Back to home page" -msgstr "обратно на началната страница" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:37 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:37 -#, fuzzy -msgid "Log out" -msgstr "Изход" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:41 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:41 -#: rosetta/templates/rosetta/languages.html:6 -#: rosetta/templates/rosetta/pofile.html:18 -msgid "Home" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:59 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:59 -msgid "Unpublished changes" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:62 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:62 -msgid "Items marked with this icon have unpublished changes." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:78 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:78 -msgid "Workflow settings" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:88 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:88 -msgid "Forum settings" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:96 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:96 -#, fuzzy -msgid "Static content" -msgstr "съдържание" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:98 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:98 -#, fuzzy -msgid "Custom Pages" -msgstr "Тагове" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:104 -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:108 -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:112 -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:122 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:104 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:108 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:112 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:122 -msgid "Unsaved changes" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:117 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:117 -#, fuzzy -msgid "Other settings" -msgstr "Опции за оторизиране" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:128 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:128 -msgid "Tools" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:130 -#: forum/skins/default/templates/osqaadmin/maintenance.html:5 -#: forum/skins/default/templates/osqaadmin/maintenance.html:6 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:130 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:5 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:6 -msgid "Maintenance mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/djstyle_base.html:131 -#: forum/skins/default/templates/osqaadmin/flagged_posts.html:6 -#: forum/skins/default/templates/osqaadmin/flagged_posts.html:7 -#: forum/skins/default/templates/osqaadmin/flagged_posts.html:13 -#: forum/skins/zapprotect/templates/osqaadmin/djstyle_base.html:131 -#: forum/skins/zapprotect/templates/osqaadmin/flagged_posts.html:6 -#: forum/skins/zapprotect/templates/osqaadmin/flagged_posts.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/flagged_posts.html:13 -msgid "Flagged Posts" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:5 -#: forum/skins/default/templates/osqaadmin/edit_page.html:8 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:5 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:8 -#, fuzzy -msgid "Editing page" -msgstr "Редактирай отговора" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:7 -msgid "Static Pages" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:8 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:8 -#, fuzzy -msgid "Creating page" -msgstr "текуща страница" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:11 -#: forum/skins/default/templates/osqaadmin/static_pages.html:12 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:11 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:12 -#, fuzzy -msgid "New page" -msgstr "следваща страница" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:12 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:12 -msgid "Published" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:12 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:12 -msgid "Unpublished" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:23 -#: forum/skins/default/templates/osqaadmin/static_pages.html:21 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:23 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:21 -#, fuzzy -msgid "Edit" -msgstr "редактирай" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:28 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:28 -msgid "Unpublish" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/edit_page.html:30 -#: forum/skins/zapprotect/templates/osqaadmin/edit_page.html:30 -msgid "Publish" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/flagged_posts.html:8 -#: forum/skins/zapprotect/templates/osqaadmin/flagged_posts.html:8 -msgid "This are the posts that have been flagged by users." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:65 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:66 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:66 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:66 -#: forum/skins/zapprotect/templates/osqaadmin/index.html:66 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/maintenance.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:7 -msgid "" -"Maintainance mode allows you to close your site for maintainance, allowing " -"only a predetermined set of ip addresses to access it normally." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/maintenance.html:12 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:12 -msgid "Your site is currently running on maintenance mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/maintenance.html:13 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:13 -msgid "You can adjust the settings bellow" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/maintenance.html:19 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:19 -#, fuzzy -msgid "Adjust settings" -msgstr "" -"Adjust frequency of email updates. Receive " -"updates on interesting questions by email,
    help the community by answering questions of your colleagues. If you do not wish to " -"receive emails - select 'no email' on all items below.
    Updates are only " -"sent when there is any new activity on selected items." - -#: forum/skins/default/templates/osqaadmin/maintenance.html:20 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:20 -#, fuzzy -msgid "Open site" -msgstr "Уеб сайт" - -#: forum/skins/default/templates/osqaadmin/maintenance.html:22 -#: forum/skins/zapprotect/templates/osqaadmin/maintenance.html:22 -msgid "Close for maintenance" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:5 -#: forum/skins/default/templates/osqaadmin/moderation.html:6 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:5 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:6 -#, fuzzy -msgid "Moderation" -msgstr "Местоположение" - -#: forum/skins/default/templates/osqaadmin/moderation.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:7 -msgid "" -"These tools allow you to search for undesired behaviours and cheating " -"patterns." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:13 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:13 -msgid "Verify:" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:16 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:16 -msgid "highest ranking users" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:17 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:17 -#, fuzzy -msgid "newer users" -msgstr "най-новите" - -#: forum/skins/default/templates/osqaadmin/moderation.html:18 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:18 -#, fuzzy -msgid "older users" -msgstr "най-старите" - -#: forum/skins/default/templates/osqaadmin/moderation.html:19 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:19 -msgid "users with these ids" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:23 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:23 -msgid "(Comma separated list of user ids)" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:25 -#: forum/skins/default/templates/osqaadmin/nodeman.html:419 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:25 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:419 -#: rosetta/templates/rosetta/pofile.html:44 -msgid "Go" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:50 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:50 -msgid "Possible cheaters" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:56 -#: forum/skins/default/templates/osqaadmin/moderation.html:69 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:56 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:69 -#, fuzzy -msgid "Email" -msgstr "" -"Your Email (must be valid, never shown to others)" - -#: forum/skins/default/templates/osqaadmin/moderation.html:58 -#: forum/skins/default/templates/osqaadmin/moderation.html:82 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:58 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:82 -#, fuzzy -msgid "Validated" -msgstr "обновено" - -#: forum/skins/default/templates/osqaadmin/moderation.html:60 -#: forum/skins/default/templates/osqaadmin/moderation.html:84 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:60 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:84 -msgid "Not validated" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:63 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:63 -#, fuzzy -msgid "Reputation:" -msgstr "karma" - -#: forum/skins/default/templates/osqaadmin/moderation.html:70 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:70 -#, fuzzy -msgid "Reputation" -msgstr "karma" - -#: forum/skins/default/templates/osqaadmin/moderation.html:71 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:71 -msgid "Affecting actions" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:72 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:72 -msgid "Cross ips" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/moderation.html:73 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:73 -#, fuzzy -msgid "Cheating score" -msgstr "Смяна на паролата" - -#: forum/skins/default/templates/osqaadmin/moderation.html:76 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:76 -#, fuzzy -msgid "Possible fake accounts" -msgstr "Изтрий профила" - -#: forum/skins/default/templates/osqaadmin/moderation.html:89 -#: forum/skins/default/templates/osqaadmin/moderation.html:90 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:89 -#: forum/skins/zapprotect/templates/osqaadmin/moderation.html:90 -#, fuzzy -msgid "out of" -msgstr "Излез сега" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:73 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:73 -msgid "rep" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:102 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:102 -#, fuzzy -msgid "uses" -msgstr "потребители" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:261 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:261 -#, fuzzy -msgid "Node manager" -msgstr "най-старите" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:264 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:264 -msgid "Nodes bulk management" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:277 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:277 -msgid "reset text filter" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:289 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:289 -msgid "Body" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:294 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:294 -msgid "Title and Body" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:324 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:324 -#, fuzzy -msgid "Filter" -msgstr "сребро" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:324 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:324 -msgid "Click to show/hide" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:326 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:326 -msgid "By type" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:329 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:329 -msgid "click to clear the type filter" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:329 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:329 -msgid "all" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:332 -#: forum/skins/default/templates/osqaadmin/nodeman.html:343 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:332 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:343 -msgid "click to remove from the filter" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:332 -#: forum/skins/default/templates/osqaadmin/nodeman.html:343 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:332 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:343 -msgid "click to add to the filter" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:337 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:337 -msgid "By state" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:340 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:340 -msgid "click to clear the state filter" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:340 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:340 -msgid "any" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:349 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:349 -msgid "Match any selected" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:350 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:350 -msgid "Match all selected" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:354 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:354 -msgid "By author(s)" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:356 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:356 -msgid "No users selected, use the box bellow to add users to the filter." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:366 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:366 -msgid "Click on the cross next to a user name to remove it from the filter." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:370 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:370 -#, fuzzy -msgid "By tag(s)" -msgstr "тагове" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:372 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:372 -msgid "No tags selected, use the box bellow to add tags to the filter." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:382 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:382 -msgid "Click on the cross next to a tag name to remove it from the filter." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:386 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:386 -msgid "Pre defined" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:388 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:388 -msgid "There are no saved filters. Click bellow to add." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:396 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:396 -#, fuzzy -msgid "Filter name..." -msgstr "потребителско име" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:397 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:397 -msgid "Click to save the current filter" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:400 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:400 -msgid "Show" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:403 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:403 -msgid "Refresh" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:410 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:410 -#, fuzzy -msgid "Action" -msgstr "Местоположение" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:413 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:413 -#, fuzzy -msgid "Mark deleted" -msgstr "[изтрито]" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:414 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:414 -#, fuzzy -msgid "Undelete" -msgstr "[изтрито]" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:415 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:415 -#, fuzzy -msgid "Delete completely" -msgstr "post a comment" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:416 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:416 -#, fuzzy -msgid "Close (questions only)" -msgstr "Newest questions are shown first." - -#: forum/skins/default/templates/osqaadmin/nodeman.html:419 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:419 -msgid "Run the selected action" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:442 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:442 -msgid "Type" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:443 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:443 -msgid "Summary" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:445 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:445 -#, fuzzy -msgid "State" -msgstr "заглавие" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:447 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:447 -msgid "Author" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:450 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:450 -msgid "Added at" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:453 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:453 -msgid "Score" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:456 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:456 -msgid "Last activity by" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:459 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:459 -msgid "Last activity at" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:461 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:461 -#: forum_modules/exporter/exporter.py:326 -#: forum_modules/exporter/importer.py:357 -#, fuzzy -msgid "Tags" -msgstr "тагове" - -#: forum/skins/default/templates/osqaadmin/nodeman.html:490 -#: forum/skins/zapprotect/templates/osqaadmin/nodeman.html:490 -msgid "by" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/set.html:18 -#: forum/skins/zapprotect/templates/osqaadmin/set.html:18 -#, fuzzy -msgid "Preview" -msgstr "преглеждания" - -#: forum/skins/default/templates/osqaadmin/set.html:20 -#: forum/skins/zapprotect/templates/osqaadmin/set.html:20 -msgid "Reset Changes" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/static_pages.html:5 -#: forum/skins/default/templates/osqaadmin/static_pages.html:6 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:5 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:6 -msgid "Static pages" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/static_pages.html:7 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:7 -msgid "Allows you to create a set of static pages" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/static_pages.html:10 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:10 -msgid "Select page to edit" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/static_pages.html:16 -#: forum/skins/zapprotect/templates/osqaadmin/static_pages.html:16 -#, fuzzy -msgid "Pages" -msgstr "Точки" - -#: forum/skins/default/templates/osqaadmin/statistics.html:27 -#: forum/skins/zapprotect/templates/osqaadmin/statistics.html:27 -msgid "" -"Some simple graphics to help you get a notion of whats going on in your site." -msgstr "" - -#: forum/skins/default/templates/paginator/sort_tabs.html:9 -#: forum/skins/zapprotect/templates/paginator/sort_tabs.html:9 -msgid "Check to make the sort order sticky" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:11 -#: forum/skins/zapprotect/templates/question_list/item.html:11 -#: forum/views/commands.py:66 forum/views/commands.py:69 -#: forum/views/commands.py:112 -msgid "vote" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:13 -#: forum/skins/zapprotect/templates/question_list/item.html:13 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:19 -#: forum/skins/zapprotect/templates/question_list/item.html:19 -#, fuzzy -msgid "view" -msgstr "преглеждания" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -#: forum/skins/zapprotect/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "Tags" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:4 -#: forum/views/readers.py:44 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:5 -#: forum/views/readers.py:45 forum/views/readers.py:61 -#: forum/views/readers.py:263 forum/views/users.py:40 forum/views/users.py:53 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:6 -#: forum/views/readers.py:46 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -#: forum/skins/zapprotect/templates/question_list/sort_tabs.html:7 -#: forum/views/readers.py:47 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/subscription_item.html:4 -#: forum/skins/zapprotect/templates/question_list/subscription_item.html:4 -#, fuzzy -msgid "Unsubscribe" -msgstr "махни абонамента ми" - -#: forum/skins/default/templates/question_list/subscription_item.html:8 -#: forum/skins/zapprotect/templates/question_list/subscription_item.html:8 -msgid "Last checked" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -#: forum/skins/zapprotect/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "Tagged questions" - -#: forum/skins/default/templates/question_list/title.html:9 -#: forum/skins/zapprotect/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -#: forum/skins/zapprotect/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -#: forum/skins/zapprotect/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "Въпроси без отговор" - -#: forum/skins/default/templates/question_list/title.html:20 -#: forum/skins/zapprotect/templates/question_list/title.html:20 -#: forum/views/readers.py:141 -#, fuzzy -msgid "All Questions" -msgstr "Въпроси" - -#: forum/skins/default/templates/sidebar/markdown_help.html:3 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:3 -#, fuzzy -msgid "Markdown Basics" -msgstr "Markdown съвети" - -#: forum/skins/default/templates/sidebar/markdown_help.html:6 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:6 -msgid "*italic* or __italic__" -msgstr "*италик* или __италик__" - -#: forum/skins/default/templates/sidebar/markdown_help.html:9 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:9 -msgid "**bold** or __bold__" -msgstr "**дебел** или __дебел__" - -#: forum/skins/default/templates/sidebar/markdown_help.html:12 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:12 -msgid "link" -msgstr "връзка" - -#: forum/skins/default/templates/sidebar/markdown_help.html:12 -#: forum/skins/default/templates/sidebar/markdown_help.html:17 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:12 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:17 -msgid "text" -msgstr "текст" - -#: forum/skins/default/templates/sidebar/markdown_help.html:17 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:17 -msgid "image" -msgstr "снимка" - -#: forum/skins/default/templates/sidebar/markdown_help.html:21 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:21 -msgid "numbered list:" -msgstr "подреден лист:" - -#: forum/skins/default/templates/sidebar/markdown_help.html:26 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:26 -msgid "" -"to add a line break simply add two spaces to where you would like the new " -"line to be." -msgstr "" - -#: forum/skins/default/templates/sidebar/markdown_help.html:29 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:29 -msgid "basic HTML tags are also supported" -msgstr "основни HTML тагове също се поддържат" - -#: forum/skins/default/templates/sidebar/markdown_help.html:33 -#: forum/skins/zapprotect/templates/sidebar/markdown_help.html:33 -msgid "learn more about Markdown" -msgstr "научете повече относно Markdown" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -#: forum/skins/zapprotect/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "Последни точки" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -#: forum/skins/zapprotect/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "всички точки" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -#: forum/skins/zapprotect/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "Последни тагове" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -#: forum/skins/zapprotect/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "популярни тагове" - -#: forum/skins/default/templates/users/edit.html:6 -#: forum/skins/zapprotect/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "Редактирай потребителския профил" - -#: forum/skins/default/templates/users/edit.html:45 -#: forum/skins/zapprotect/templates/users/edit.html:45 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:45 -#: forum/skins/zapprotect/templates/users/edit.html:45 -#, fuzzy -msgid "gravatar" -msgstr "Какво е Gravatar?" - -#: forum/skins/default/templates/users/edit.html:50 -#: forum/skins/default/templates/users/info.html:39 -#: forum/skins/zapprotect/templates/users/edit.html:50 -#: forum/skins/zapprotect/templates/users/info.html:39 -msgid "Registered user" -msgstr "Регистриран потребител" - -#: forum/skins/default/templates/users/edit.html:57 -#: forum/skins/zapprotect/templates/users/edit.html:57 -msgid "Screen Name" -msgstr "Публично име" - -#: forum/skins/default/templates/users/edit.html:98 -#: forum/skins/default/templates/users/subscriptions_settings.html:119 -#: forum/skins/zapprotect/templates/users/edit.html:98 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:119 -msgid "Update" -msgstr "Обнови" - -#: forum/skins/default/templates/users/info.html:26 -#: forum/skins/default/templates/users/signature.html:8 -#: forum/skins/zapprotect/templates/users/info.html:26 -#: forum/skins/zapprotect/templates/users/signature.html:8 -#: forum/views/users.py:39 -msgid "reputation" -msgstr "Карма" - -#: forum/skins/default/templates/users/info.html:28 -#: forum/skins/zapprotect/templates/users/info.html:28 -#, fuzzy -msgid "Suspended" -msgstr "Преостановено" - -#: forum/skins/default/templates/users/info.html:43 -#: forum/skins/zapprotect/templates/users/info.html:43 -msgid "real name" -msgstr "Истинско име" - -#: forum/skins/default/templates/users/info.html:48 -#: forum/skins/zapprotect/templates/users/info.html:48 -msgid "member for" -msgstr "member since" - -#: forum/skins/default/templates/users/info.html:53 -#: forum/skins/zapprotect/templates/users/info.html:53 -msgid "last seen" -msgstr "последно видян" - -#: forum/skins/default/templates/users/info.html:59 -#: forum/skins/zapprotect/templates/users/info.html:59 -msgid "user's website" -msgstr "потребителски сайт" - -#: forum/skins/default/templates/users/info.html:65 -#: forum/skins/zapprotect/templates/users/info.html:65 -msgid "location" -msgstr "местоположение" - -#: forum/skins/default/templates/users/info.html:73 -#: forum/skins/zapprotect/templates/users/info.html:73 -msgid "age" -msgstr "възраст" - -#: forum/skins/default/templates/users/info.html:74 -#: forum/skins/zapprotect/templates/users/info.html:74 -msgid "age unit" -msgstr "years old" - -#: forum/skins/default/templates/users/info.html:84 -#: forum/skins/zapprotect/templates/users/info.html:84 -msgid "not validated" -msgstr "не е проверено" - -#: forum/skins/default/templates/users/info.html:95 -#: forum/skins/zapprotect/templates/users/info.html:95 -msgid "todays unused votes" -msgstr "неизползвани гласове днес" - -#: forum/skins/default/templates/users/info.html:96 -#: forum/skins/zapprotect/templates/users/info.html:96 -msgid "votes left" -msgstr "останали гласове" - -#: forum/skins/default/templates/users/karma_bonus.html:5 -#: forum/skins/zapprotect/templates/users/karma_bonus.html:5 -msgid "Points" -msgstr "Точки" - -#: forum/skins/default/templates/users/menu.html:4 -#: forum/skins/zapprotect/templates/users/menu.html:4 -#, fuzzy -msgid "User tools" -msgstr "Потребителски вход" - -#: forum/skins/default/templates/users/online_users.html:6 -#: forum/skins/default/templates/users/online_users.html:23 -#: forum/skins/zapprotect/templates/users/online_users.html:6 -#: forum/skins/zapprotect/templates/users/online_users.html:23 -#, fuzzy -msgid "Users Online" -msgstr "Потребителски вход" - -#: forum/skins/default/templates/users/online_users.html:29 -#: forum/skins/default/templates/users/users.html:29 -#: forum/skins/zapprotect/templates/users/online_users.html:29 -#: forum/skins/zapprotect/templates/users/users.html:29 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/online_users.html:33 -#: forum/skins/default/templates/users/users.html:33 -#: forum/skins/zapprotect/templates/users/online_users.html:33 -#: forum/skins/zapprotect/templates/users/users.html:33 -msgid "Nothing found." -msgstr "" - -#: forum/skins/default/templates/users/preferences.html:6 -#: forum/skins/zapprotect/templates/users/preferences.html:6 -msgid "Preferences" -msgstr "" - -#: forum/skins/default/templates/users/preferences.html:10 -#: forum/skins/zapprotect/templates/users/preferences.html:10 -msgid "Here you can set some personal preferences." -msgstr "" - -#: forum/skins/default/templates/users/preferences.html:16 -#: forum/skins/zapprotect/templates/users/preferences.html:16 -msgid "Navigation:" -msgstr "" - -#: forum/skins/default/templates/users/preferences.html:21 -#: forum/skins/zapprotect/templates/users/preferences.html:21 -msgid "Allways remember the sort order I apply to the lists I view" -msgstr "" - -#: forum/skins/default/templates/users/signature.html:11 -#: forum/skins/default/templates/users/signature.html:17 -#: forum/skins/default/templates/users/signature.html:23 -#: forum/skins/zapprotect/templates/users/signature.html:11 -#: forum/skins/zapprotect/templates/users/signature.html:17 -#: forum/skins/zapprotect/templates/users/signature.html:23 -#: forum/templatetags/extra_tags.py:76 forum/views/meta.py:81 -msgid "badges" -msgstr "точки" - -#: forum/skins/default/templates/users/signature.html:31 -#: forum/skins/zapprotect/templates/users/signature.html:31 -#: forum/templatetags/extra_tags.py:49 -msgid "(suspended)" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#: forum/skins/zapprotect/templates/users/stats.html:13 -#, fuzzy, python-format -msgid "" -"\n" -" %(counter)s Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -"\n" -"
    %(q_num)s

    question without an " -"accepted answer

    " -msgstr[1] "" -"\n" -"
    %(q_num)s

    questions without an " -"accepted answer

    " - -#: forum/skins/default/templates/users/stats.html:35 -#: forum/skins/zapprotect/templates/users/stats.html:35 -#, fuzzy, python-format -msgid "" -"\n" -" %(counter)s Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -"\n" -"(one comment)" -msgstr[1] "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/users/stats.html:49 -#: forum/skins/zapprotect/templates/users/stats.html:49 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:49 -#: forum/skins/zapprotect/templates/users/stats.html:49 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:67 -#: forum/skins/zapprotect/templates/users/stats.html:67 -#, fuzzy, python-format -msgid "" -"\n" -" %(cnt)s Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -"\n" -"(one comment)" -msgstr[1] "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/users/stats.html:78 -#: forum/skins/zapprotect/templates/users/stats.html:78 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:79 -#: forum/skins/zapprotect/templates/users/stats.html:79 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:83 -#: forum/skins/zapprotect/templates/users/stats.html:83 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#: forum/skins/zapprotect/templates/users/stats.html:84 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:93 -#: forum/skins/zapprotect/templates/users/stats.html:93 -#, fuzzy, python-format -msgid "" -"\n" -" %(counter)s Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -"\n" -"(one comment)" -msgstr[1] "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/users/stats.html:106 -#: forum/skins/zapprotect/templates/users/stats.html:106 -#, python-format -msgid "" -"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:121 -#: forum/skins/zapprotect/templates/users/stats.html:121 -#, python-format -msgid "" -"\n" -" %(counter)s Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions_management.html:6 -#: forum/skins/zapprotect/templates/users/subscriptions_management.html:6 -msgid "Manage your current subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_management.html:9 -#: forum/skins/zapprotect/templates/users/subscriptions_management.html:9 -msgid "don't show auto-subscribe" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_management.html:11 -#: forum/skins/zapprotect/templates/users/subscriptions_management.html:11 -#, fuzzy -msgid "show auto-subscribe" -msgstr "махни абонамента ми" - -#: forum/skins/default/templates/users/subscriptions_settings.html:5 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:5 -#, fuzzy -msgid "Notifications and subscription settings" -msgstr "" -"Adjust frequency of email updates. Receive " -"updates on interesting questions by email,
    help the community by answering questions of your colleagues. If you do not wish to " -"receive emails - select 'no email' on all items below.
    Updates are only " -"sent when there is any new activity on selected items." - -#: forum/skins/default/templates/users/subscriptions_settings.html:7 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:7 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to receive, " -"and their frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:11 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:11 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all " -"notifications without losing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:15 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:15 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them by " -"clicking on the Start notifications button below.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:26 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:26 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:30 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:30 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:34 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:34 -#, fuzzy -msgid "A new question is posted" -msgstr "Tips" - -#: forum/skins/default/templates/users/subscriptions_settings.html:38 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:38 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:42 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:42 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:50 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:50 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:55 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:55 -#, fuzzy -msgid "Questions I ask" -msgstr "Tags" - -#: forum/skins/default/templates/users/subscriptions_settings.html:58 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:58 -#, fuzzy -msgid "Questions I answer" -msgstr "answer" - -#: forum/skins/default/templates/users/subscriptions_settings.html:61 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:61 -#, fuzzy -msgid "Questions I comment" -msgstr "question comment" - -#: forum/skins/default/templates/users/subscriptions_settings.html:66 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:66 -#, fuzzy -msgid "Questions I view" -msgstr "Tags" - -#: forum/skins/default/templates/users/subscriptions_settings.html:69 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:69 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:72 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:72 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:80 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:80 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:85 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:85 -#, fuzzy -msgid "An answer is posted" -msgstr "Tips" - -#: forum/skins/default/templates/users/subscriptions_settings.html:88 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:88 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:93 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:93 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:96 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:96 -#, fuzzy -msgid "An answer is accepted" -msgstr "answer accepted" - -#: forum/skins/default/templates/users/subscriptions_settings.html:104 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:104 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:109 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:109 -msgid "" -"Notify me when someone replies to one of my comments on any post using the " -"
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:114 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:114 -msgid "Send me the daily digest with information about the site activity" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:121 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:121 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions_settings.html:123 -#: forum/skins/zapprotect/templates/users/subscriptions_settings.html:123 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/suspend_user.html:4 -#: forum/skins/zapprotect/templates/users/suspend_user.html:4 -msgid "Suspend user" -msgstr "" - -#: forum/skins/default/templates/users/suspend_user.html:8 -#: forum/skins/zapprotect/templates/users/suspend_user.html:8 -#, fuzzy -msgid "Indefinetly" -msgstr "Моментално" - -#: forum/skins/default/templates/users/suspend_user.html:9 -#: forum/skins/zapprotect/templates/users/suspend_user.html:9 -msgid "For X days" -msgstr "" - -#: forum/skins/default/templates/users/suspend_user.html:15 -#: forum/skins/zapprotect/templates/users/suspend_user.html:15 -msgid "Suspend for" -msgstr "" - -#: forum/skins/default/templates/users/suspend_user.html:15 -#: forum/skins/zapprotect/templates/users/suspend_user.html:15 -msgid "days" -msgstr "" - -#: forum/skins/default/templates/users/suspend_user.html:20 -#: forum/skins/zapprotect/templates/users/suspend_user.html:20 -#, fuzzy -msgid "Public message" -msgstr "Вашето съобщение:" - -#: forum/skins/default/templates/users/suspend_user.html:26 -#: forum/skins/zapprotect/templates/users/suspend_user.html:26 -msgid "This message will be visible through the user activity log." -msgstr "" - -#: forum/skins/default/templates/users/suspend_user.html:31 -#: forum/skins/zapprotect/templates/users/suspend_user.html:31 -#, fuzzy -msgid "Private message" -msgstr "Вашето съобщение:" - -#: forum/skins/default/templates/users/suspend_user.html:37 -#: forum/skins/zapprotect/templates/users/suspend_user.html:37 -msgid "If set, only the suspended user will see this message." -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:23 -#: forum/skins/zapprotect/templates/users/users.html:6 -#: forum/skins/zapprotect/templates/users/users.html:23 -#: forum_modules/exporter/exporter.py:334 -#: forum_modules/exporter/importer.py:300 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/votes.html:15 -#: forum/skins/zapprotect/templates/users/votes.html:15 -#: forum/views/commands.py:72 -msgid "upvote" -msgstr "плюс" - -#: forum/skins/default/templates/users/votes.html:17 -#: forum/skins/zapprotect/templates/users/votes.html:17 -#: forum/views/commands.py:72 -msgid "downvote" -msgstr "минус" - -#: forum/templatetags/extra_tags.py:77 -msgid "reputation points" -msgstr "karma" - -#: forum/templatetags/extra_tags.py:107 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:109 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:111 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:113 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:115 -#, python-format -msgid "%(sec)d sec ago" -msgid_plural "%(sec)d secs ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:90 -msgid "permanent link" -msgstr "link" - -#: forum/templatetags/node_tags.py:90 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:96 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:100 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:102 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:105 -msgid "report" -msgstr "" - -#: forum/templatetags/node_tags.py:111 -msgid "" -"report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:115 -#, fuzzy -msgid "undelete" -msgstr "[изтрито]" - -#: forum/templatetags/node_tags.py:122 -#, fuzzy -msgid "see revisions" -msgstr "изберете ревизия" - -#: forum/templatetags/node_tags.py:129 -#, fuzzy -msgid "mark as community wiki" -msgstr "уики общност" - -#: forum/templatetags/node_tags.py:133 -#, fuzzy -msgid "cancel community wiki" -msgstr "уики общност" - -#: forum/templatetags/node_tags.py:137 -#, fuzzy -msgid "convert to comment" -msgstr "post a comment" - -#: forum/templatetags/node_tags.py:204 -msgid "posted" -msgstr "добавено" - -#: forum/views/admin.py:116 -#, fuzzy -msgid "Questions Graph" -msgstr "Въпроси" - -#: forum/views/admin.py:120 -msgid "Users Graph" -msgstr "" - -#: forum/views/admin.py:159 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:266 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:280 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:296 -msgid "All values recalculated" -msgstr "" - -#: forum/views/admin.py:311 -msgid "Maintenance mode enabled" -msgstr "" - -#: forum/views/admin.py:313 -msgid "Settings adjusted" -msgstr "" - -#: forum/views/admin.py:320 -msgid "Your site is now running normally" -msgstr "" - -#: forum/views/admin.py:324 -msgid "Currently down for maintenance. We'll be back soon" -msgstr "" - -#: forum/views/admin.py:384 -msgid "createuser" -msgstr "" - -#: forum/views/admin.py:384 -#, fuzzy -msgid "Create new user" -msgstr "Парола (напишете отново)" - -#: forum/views/admin.py:399 -#, python-format -msgid "New user created sucessfully. %s." -msgstr "" - -#: forum/views/admin.py:400 -#, fuzzy, python-format -msgid "See %s profile" -msgstr "завършен потребителски профил" - -#: forum/views/admin.py:413 -msgid "added_at" -msgstr "" - -#: forum/views/admin.py:414 -msgid "added_at_asc" -msgstr "" - -#: forum/views/admin.py:415 -msgid "author" -msgstr "" - -#: forum/views/admin.py:416 -msgid "author_asc" -msgstr "" - -#: forum/views/admin.py:417 -msgid "score" -msgstr "" - -#: forum/views/admin.py:418 -msgid "score_asc" -msgstr "" - -#: forum/views/admin.py:419 -msgid "act_at" -msgstr "" - -#: forum/views/admin.py:420 -msgid "act_at_asc" -msgstr "" - -#: forum/views/admin.py:421 -msgid "act_by" -msgstr "" - -#: forum/views/admin.py:422 -msgid "act_by_asc" -msgstr "" - -#: forum/views/admin.py:425 -msgid "nodeman" -msgstr "" - -#: forum/views/admin.py:425 -msgid "Bulk management" -msgstr "" - -#: forum/views/admin.py:431 -#, fuzzy -msgid "filter" -msgstr "сребро" - -#: forum/views/admin.py:444 -msgid "No action performed" -msgstr "" - -#: forum/views/admin.py:451 -msgid "All selected nodes marked as deleted" -msgstr "" - -#: forum/views/admin.py:458 -msgid "All selected nodes undeleted" -msgstr "" - -#: forum/views/admin.py:463 -msgid "bulk close" -msgstr "" - -#: forum/views/admin.py:465 -#, fuzzy -msgid "Selected questions were closed" -msgstr "изтрит въпрос" - -#: forum/views/admin.py:477 -msgid "All selected nodes deleted" -msgstr "" - -#: forum/views/auth.py:111 forum/views/auth.py:123 -msgid "" -"Sorry, these login credentials belong to anoother user. Plese terminate your " -"current session and try again." -msgstr "" - -#: forum/views/auth.py:114 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:120 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:129 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:170 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again. " -"Note that you need to have cookies enabled for the authentication to work." -msgstr "" - -#: forum/views/auth.py:186 forum_modules/localauth/views.py:35 -msgid "A welcome email has been sent to your email address. " -msgstr "" - -#: forum/views/auth.py:191 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:247 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:263 -msgid "" -"You are logged in with a temporary access key, please take the time to fix " -"your issue with authentication." -msgstr "" - -#: forum/views/auth.py:279 -msgid "A message with an email validation link was just sent to your address." -msgstr "" - -#: forum/views/auth.py:290 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:315 -#, fuzzy -msgid "New password set" -msgstr "Recover password" - -#: forum/views/auth.py:319 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:355 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:367 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/auth.py:381 -#, python-format -msgid "You have a %s pending submission." -msgstr "" - -#: forum/views/auth.py:382 -#, fuzzy -msgid "save it" -msgstr "Запази промените" - -#: forum/views/auth.py:383 forum/views/writers.py:264 -#, fuzzy -msgid "review" -msgstr "преглеждания" - -#: forum/views/auth.py:384 forum/views/writers.py:261 -#, fuzzy -msgid "cancel" -msgstr "Откажи" - -#: forum/views/auth.py:392 -msgid "Sorry, but this account is suspended" -msgstr "" - -#: forum/views/commands.py:23 -#, python-format -msgid "" -"Sorry, but you don't have enough reputation points to %(action)s.
    Please check the faq" -msgstr "" - -#: forum/views/commands.py:31 -#, python-format -msgid "" -"Sorry but you cannot %(action)s your own post.
    Please check the faq" -msgstr "" - -#: forum/views/commands.py:39 -#, python-format -msgid "" -"Sorry but anonymous users cannot %(action)s.
    Please login or create an " -"account here." -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"Sorry, but you don't have enough %(action)s left for today..
    The limit " -"is %(limit)s per day..
    Please check the faq" -msgstr "" - -#: forum/views/commands.py:55 -#, python-format -msgid "" -"Sorry, but you cannot %(action)s twice the same post.
    Please check the " -"faq" -msgstr "" - -#: forum/views/commands.py:87 -#, python-format -msgid "" -"Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the " -"original vote" -msgstr "" - -#: forum/views/commands.py:89 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:111 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:125 forum/views/commands.py:131 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:128 -msgid "flag" -msgstr "" - -#: forum/views/commands.py:136 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:141 -#, python-format -msgid "You already flagged this post with the following reason: %(reason)s" -msgstr "" - -#: forum/views/commands.py:146 forum/views/commands.py:374 -#, fuzzy -msgid "Reason is empty" -msgstr "История на ревизиите" - -#: forum/views/commands.py:150 -msgid "" -"Thank you for your report. A moderator will review your submission shortly." -msgstr "" - -#: forum/views/commands.py:158 forum/views/commands.py:164 -#, fuzzy -msgid "like comments" -msgstr "post a comment" - -#: forum/views/commands.py:161 -msgid "like" -msgstr "" - -#: forum/views/commands.py:188 forum/views/commands.py:191 -#, fuzzy -msgid "delete comments" -msgstr "post a comment" - -#: forum/views/commands.py:207 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:233 forum/views/commands.py:491 -#: forum/views/commands.py:502 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:238 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:241 -#, python-format -msgid "At least %d characters required on comment body." -msgstr "" - -#: forum/views/commands.py:244 -#, python-format -msgid "No more than %d characters on comment body." -msgstr "" - -#: forum/views/commands.py:250 -#, fuzzy -msgid "edit comments" -msgstr "post a comment" - -#: forum/views/commands.py:283 forum/views/commands.py:297 -#, fuzzy -msgid "accept answers" -msgstr "oldest" - -#: forum/views/commands.py:303 -msgid "Sorry but you cannot accept the answer" -msgstr "" - -#: forum/views/commands.py:312 -#, fuzzy -msgid "This question already has an accepted answer." -msgid_plural "" -"Sorry but this question has reached the limit of accepted answers." -msgstr[0] "въпроса е отговорен, приет е верен отговор" -msgstr[1] "въпроса е отговорен, приет е верен отговор" - -#: forum/views/commands.py:319 -msgid "" -"The author of this answer already has an accepted answer in this question." -msgid_plural "" -"Sorry but the author of this answer has reached the limit of accepted " -"answers per question." -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:334 forum/views/commands.py:337 -msgid "delete posts" -msgstr "" - -#: forum/views/commands.py:360 forum/views/commands.py:369 -#, fuzzy -msgid "close questions" -msgstr "последни въпроси" - -#: forum/views/commands.py:364 -#, fuzzy -msgid "reopen questions" -msgstr "Отвори отново въпроса" - -#: forum/views/commands.py:386 forum/views/commands.py:398 -#, fuzzy -msgid "mark posts as community wiki" -msgstr "уики общност" - -#: forum/views/commands.py:390 -#, fuzzy -msgid "cancel a community wiki post" -msgstr "уики общност" - -#: forum/views/commands.py:411 -#, python-format -msgid "Answer by %(uname)s: %(snippet)s..." -msgstr "" - -#: forum/views/commands.py:413 -#, fuzzy -msgid "Question" -msgstr "Въпроси" - -#: forum/views/commands.py:420 forum/views/commands.py:423 -#, fuzzy -msgid "convert answers to comments" -msgstr "коментар на отговора" - -#: forum/views/commands.py:428 forum/views/commands.py:431 -msgid "That is an invalid post to put the comment under" -msgstr "" - -#: forum/views/commands.py:446 -msgid "You do not have the correct credentials to preform this action." -msgstr "" - -#: forum/views/decorators.py:73 -msgid "" -"We're sorry, but an unknown error ocurred.
    Please try again in a while." -msgstr "" - -#: forum/views/meta.py:62 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:70 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:44 -#, fuzzy -msgid "Most recently updated questions" -msgstr " " - -#: forum/views/readers.py:45 -#, fuzzy -msgid "most recently asked questions" -msgstr "вижте често задаваните въпроси" - -#: forum/views/readers.py:46 -#, fuzzy -msgid "most active questions in the last 24 hours
    " -msgstr " " - -#: forum/views/readers.py:47 -#, fuzzy -msgid "mostvoted" -msgstr "отхвърлен" - -#: forum/views/readers.py:47 -#, fuzzy -msgid "most voted questions" -msgstr " " - -#: forum/views/readers.py:60 forum/views/readers.py:261 -#: forum/views/users.py:41 forum/views/users.py:52 -msgid "oldest" -msgstr "" - -#: forum/views/readers.py:60 forum/views/users.py:52 -msgid "oldest answers" -msgstr "най-старите" - -#: forum/views/readers.py:60 forum/views/users.py:52 -msgid "oldest answers will be shown first" -msgstr "най-старите отговори ще бъдат показани първи" - -#: forum/views/readers.py:61 forum/views/users.py:53 -msgid "newest answers" -msgstr "най-новите" - -#: forum/views/readers.py:61 forum/views/users.py:53 -msgid "newest answers will be shown first" -msgstr "най-новите отговори ще бъдат показани първи" - -#: forum/views/readers.py:62 forum/views/users.py:54 -msgid "popular answers" -msgstr "с най-много гласове" - -#: forum/views/readers.py:62 forum/views/users.py:54 -msgid "most voted answers will be shown first" -msgstr "отговорите с най-много гласове ще бъдат показани първи" - -#: forum/views/readers.py:68 forum/views/users.py:42 -#, fuzzy -msgid "name" -msgstr "по име" - -#: forum/views/readers.py:68 -msgid "by name" -msgstr "по име" - -#: forum/views/readers.py:68 -msgid "sorted alphabetically" -msgstr "сортирай по азбучен ред" - -#: forum/views/readers.py:69 forum/views/readers.py:70 -#, fuzzy -msgid "used" -msgstr "зададено" - -#: forum/views/readers.py:69 -msgid "by popularity" -msgstr "по популярност" - -#: forum/views/readers.py:69 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/views/readers.py:77 -msgid " - " -msgstr "" - -#: forum/views/readers.py:77 -msgid "latest questions" -msgstr "последни въпроси" - -#: forum/views/readers.py:90 -#, fuzzy -msgid "unanswered" -msgstr "неотговорени" - -#: forum/views/readers.py:94 -#, fuzzy -msgid "open questions without an accepted answer" -msgstr "въпроса е отговорен, приет е верен отговор" - -#: forum/views/readers.py:96 -#, fuzzy -msgid "Unanswered Questions" -msgstr "Неотговорени въпроси" - -#: forum/views/readers.py:106 -#, python-format -msgid "questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:108 -#, fuzzy, python-format -msgid "Questions Tagged With %(tag)s" -msgstr "още въпроси с таг '%(tagname)s'" - -#: forum/views/readers.py:117 -#, fuzzy, python-format -msgid "Questions asked by %s" -msgstr "Зададен въпрос" - -#: forum/views/readers.py:120 -#, fuzzy, python-format -msgid "Questions answered by %s" -msgstr "answer" - -#: forum/views/readers.py:127 -#, fuzzy, python-format -msgid "Questions you subscribed %s" -msgstr "Tags" - -#: forum/views/readers.py:129 -#, fuzzy, python-format -msgid "Questions subscribed by %s" -msgstr "махни абонамента ми" - -#: forum/views/readers.py:152 -msgid "Questions" -msgstr "Въпроси" - -#: forum/views/readers.py:206 forum/views/readers.py:207 -msgid "ranking" -msgstr "" - -#: forum/views/readers.py:206 -msgid "relevance" -msgstr "" - -#: forum/views/readers.py:206 -#, fuzzy -msgid "most relevant questions" -msgstr "ask a question relevant to the CNPROG community" - -#: forum/views/readers.py:212 forum/views/readers.py:214 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/readers.py:362 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/views/users.py:39 -#, fuzzy -msgid "sorted by reputation" -msgstr "karma" - -#: forum/views/users.py:40 -msgid "recent" -msgstr "" - -#: forum/views/users.py:40 -#, fuzzy -msgid "newest members" -msgstr "най-новите" - -#: forum/views/users.py:41 -msgid "last" -msgstr "" - -#: forum/views/users.py:41 -#, fuzzy -msgid "oldest members" -msgstr "най-старите" - -#: forum/views/users.py:42 -msgid "by username" -msgstr "" - -#: forum/views/users.py:42 -#, fuzzy -msgid "sorted by username" -msgstr "Choose screen name" - -#: forum/views/users.py:73 -msgid "Online Users" -msgstr "" - -#: forum/views/users.py:167 -#, fuzzy -msgid "Profile updated." -msgstr "Последно обновен" - -#: forum/views/users.py:181 -msgid "Only superusers are allowed to alter other users permissions." -msgstr "" - -#: forum/views/users.py:184 -msgid "Only the site owner can remove the super user status from other user." -msgstr "" - -#: forum/views/users.py:206 -msgid "Only superusers are allowed to award reputation points" -msgstr "" - -#: forum/views/users.py:211 -msgid "Invalid number of points to award." -msgstr "" - -#: forum/views/users.py:229 -msgid "Only superusers can suspend other users" -msgstr "" - -#: forum/views/users.py:250 -msgid "Invalid numeric argument for the number of days." -msgstr "" - -#: forum/views/users.py:300 -msgid "overview" -msgstr "" - -#: forum/views/users.py:300 -msgid "user overview" -msgstr "" - -#: forum/views/users.py:332 -msgid "recent activity" -msgstr "" - -#: forum/views/users.py:332 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:341 -#, fuzzy -msgid "karma history" -msgstr "karma history" - -#: forum/views/users.py:341 -#, fuzzy -msgid "graph of user karma" -msgstr "Graph of user karma" - -#: forum/views/users.py:356 -msgid "user vote record" -msgstr "" - -#: forum/views/users.py:363 -msgid "favorites" -msgstr "" - -#: forum/views/users.py:363 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/views/users.py:369 -#, fuzzy -msgid "subscription" -msgstr "Абонамент" - -#: forum/views/users.py:369 -msgid "subscriptions" -msgstr "" - -#: forum/views/users.py:383 -#, fuzzy -msgid "New subscription settings are now saved" -msgstr "" -"Adjust frequency of email updates. Receive " -"updates on interesting questions by email,
    help the community by answering questions of your colleagues. If you do not wish to " -"receive emails - select 'no email' on all items below.
    Updates are only " -"sent when there is any new activity on selected items." - -#: forum/views/users.py:389 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:391 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:435 -msgid "preferences" -msgstr "" - -#: forum/views/users.py:442 -msgid "New preferences saved" -msgstr "" - -#: forum/views/writers.py:59 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "sorry, file uploading requires karma >60" - -#: forum/views/writers.py:61 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:63 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:65 -#, python-format -msgid "" -"Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:96 -#, python-format -msgid "Your question is pending until you %s." -msgstr "" - -#: forum/views/writers.py:97 forum/views/writers.py:246 -#, fuzzy -msgid "validate your email" -msgstr "How to validate email and why?" - -#: forum/views/writers.py:245 -#, python-format -msgid "Your answer is pending until you %s." -msgstr "" - -#: forum_modules/akismet/settings.py:7 -msgid "WordPress API key" -msgstr "" - -#: forum_modules/akismet/settings.py:8 -msgid "" -"Your WordPress API key. You can get one at http://wordpress.com/" -msgstr "" - -#: forum_modules/akismet/settings.py:12 -#, fuzzy -msgid "Minimum reputation to not have your posts checked" -msgstr "user karma" - -#: forum_modules/akismet/settings.py:13 -msgid "" -"The minimum reputation a user must have so that when they post a question, " -"answer or comment it is not checked for spam." -msgstr "" - -#: forum_modules/akismet/startup.py:45 -#, python-format -msgid "Sorry, but akismet thinks your %s is spam." -msgstr "" - -#: forum_modules/akismet/templates/foundspam.html:3 -msgid "Akismet message" -msgstr "" - -#: forum_modules/akismet/templates/foundspam.html:7 -#, python-format -msgid "Akismet believes your %(action_name)s is spam." -msgstr "" - -#: forum_modules/akismet/templates/foundspam.html:10 -#, python-format -msgid "" -"\n" -"We're sorry, but Akismet believes your %(action_name)s is spam.
    \n" -"If you believe this is an error, please contact the forum administrator.\n" -msgstr "" - -#: forum_modules/default_badges/badges.py:16 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:24 -#, fuzzy -msgid "Popular Question" -msgstr "Задайте Вашия въпрос" - -#: forum_modules/default_badges/badges.py:30 -#, fuzzy -msgid "Notable Question" -msgstr "коментиран въпрос" - -#: forum_modules/default_badges/badges.py:35 -#, fuzzy -msgid "Famous Question" -msgstr "задай въпрос" - -#: forum_modules/default_badges/badges.py:54 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:58 -#, fuzzy -msgid "Nice Question" -msgstr "Tags" - -#: forum_modules/default_badges/badges.py:63 -#, fuzzy -msgid "Good Question" -msgstr "Tags" - -#: forum_modules/default_badges/badges.py:68 -#, fuzzy -msgid "Great Question" -msgstr "Tags" - -#: forum_modules/default_badges/badges.py:77 -#, fuzzy, python-format -msgid "Answer voted up %s times" -msgstr "Post Your Answer" - -#: forum_modules/default_badges/badges.py:81 -#, fuzzy -msgid "Nice Answer" -msgstr "редактиран отговор" - -#: forum_modules/default_badges/badges.py:86 -#, fuzzy -msgid "Good Answer" -msgstr "най-старите" - -#: forum_modules/default_badges/badges.py:91 -#, fuzzy -msgid "Great Answer" -msgstr "отговор" - -#: forum_modules/default_badges/badges.py:100 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, fuzzy -msgid "Favorite Question" -msgstr "редактиран въпрос" - -#: forum_modules/default_badges/badges.py:113 -#, fuzzy -msgid "Stellar Question" -msgstr "Изпратете Вашия отговор" - -#: forum_modules/default_badges/badges.py:119 -msgid "Disciplined" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:128 -msgid "Peer Pressure" -msgstr "" - -#: forum_modules/default_badges/badges.py:129 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:139 -msgid "Critic" -msgstr "Критичен" - -#: forum_modules/default_badges/badges.py:140 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:150 -#, fuzzy -msgid "Supporter" -msgstr "плюс" - -#: forum_modules/default_badges/badges.py:151 -msgid "First up vote" -msgstr "Първи положителен вот" - -#: forum_modules/default_badges/badges.py:168 -msgid "Citizen Patrol" -msgstr "Граждански Патрул" - -#: forum_modules/default_badges/badges.py:169 -msgid "First flagged post" -msgstr "Първа маркирана публикация" - -#: forum_modules/default_badges/badges.py:173 -msgid "Organizer" -msgstr "Организатор" - -#: forum_modules/default_badges/badges.py:174 -msgid "First retag" -msgstr "Първи ретаг" - -#: forum_modules/default_badges/badges.py:178 -#, fuzzy -msgid "Editor" -msgstr "Редактор" - -#: forum_modules/default_badges/badges.py:179 -msgid "First edit" -msgstr "Първа редакция" - -#: forum_modules/default_badges/badges.py:183 -msgid "Scholar" -msgstr "Учен" - -#: forum_modules/default_badges/badges.py:184 -msgid "First accepted answer on your own question" -msgstr "Първи приет отговор на Вашия собствен въпрос" - -#: forum_modules/default_badges/badges.py:188 -msgid "Cleanup" -msgstr "Почистване" - -#: forum_modules/default_badges/badges.py:189 -msgid "First rollback" -msgstr "Първо почистване" - -#: forum_modules/default_badges/badges.py:195 -msgid "Autobiographer" -msgstr "Автобиографист" - -#: forum_modules/default_badges/badges.py:196 -msgid "Completed all user profile fields" -msgstr "Попълнил е всички полета на потребителския профил" - -#: forum_modules/default_badges/badges.py:209 -msgid "Civic Duty" -msgstr "Граждански Дълг" - -#: forum_modules/default_badges/badges.py:210 -#, python-format -msgid "Voted %s times" -msgstr "Гласувал %s пъти" - -#: forum_modules/default_badges/badges.py:220 -#, fuzzy -msgid "Pundit" -msgstr "Учена глава" - -#: forum_modules/default_badges/badges.py:221 -#, python-format -msgid "Left %s comments" -msgstr "Остават %s коментара" - -#: forum_modules/default_badges/badges.py:231 -msgid "Self Learner" -msgstr "Самоучка" - -#: forum_modules/default_badges/badges.py:232 -#, fuzzy, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "Отговорил на собствения си въпрос с поне %s положителни гласа" - -#: forum_modules/default_badges/badges.py:244 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:245 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:255 -msgid "Student" -msgstr "Студент" - -#: forum_modules/default_badges/badges.py:256 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:267 -#, fuzzy -msgid "Teacher" -msgstr "търсене" - -#: forum_modules/default_badges/badges.py:268 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:280 -msgid "Enlightened" -msgstr "" - -#: forum_modules/default_badges/badges.py:281 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:292 -msgid "Guru" -msgstr "Гуру" - -#: forum_modules/default_badges/badges.py:293 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:304 -msgid "Necromancer" -msgstr "" - -#: forum_modules/default_badges/badges.py:305 -#, python-format -msgid "" -"Answered a question more than %(dif_days)s days later with at least %" -"(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:317 -msgid "Taxonomist" -msgstr "" - -#: forum_modules/default_badges/badges.py:318 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "Създаде таг използван от %s въпроса" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -#, fuzzy -msgid "Nice Question up votes" -msgstr "Tags" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -#, fuzzy -msgid "Good Question up votes" -msgstr "Tags" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -#, fuzzy -msgid "Great Question up votes" -msgstr "Tags" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an " -"author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to " -"an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the " -"author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the " -"Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the " -"Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for " -"the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the " -"Taxonomist badge. \n" -msgstr "" - -#: forum_modules/exporter/exporter.py:139 -msgid "Compressing xml files" -msgstr "" - -#: forum_modules/exporter/exporter.py:146 -msgid "Importing uploaded files" -msgstr "" - -#: forum_modules/exporter/exporter.py:151 -msgid "Importing skins folder" -msgstr "" - -#: forum_modules/exporter/exporter.py:155 -msgid "Writing inf file." -msgstr "" - -#: forum_modules/exporter/exporter.py:191 -msgid "Saving backup file" -msgstr "" - -#: forum_modules/exporter/exporter.py:225 -#: forum_modules/exporter/importer.py:214 -msgid "Queued" -msgstr "" - -#: forum_modules/exporter/exporter.py:228 -#: forum_modules/exporter/importer.py:217 -#, fuzzy -msgid "Starting" -msgstr "интересно" - -#: forum_modules/exporter/exporter.py:249 -#, python-format -msgid "Exporting %s" -msgstr "" - -#: forum_modules/exporter/exporter.py:250 -msgid "Exporting" -msgstr "" - -#: forum_modules/exporter/exporter.py:254 -msgid "Writing temp file" -msgstr "" - -#: forum_modules/exporter/exporter.py:255 -#, python-format -msgid "Writing %s temp file" -msgstr "" - -#: forum_modules/exporter/exporter.py:260 -#: forum_modules/exporter/exporter.py:278 -#: forum_modules/exporter/importer.py:244 -#, fuzzy -msgid "Done" -msgstr "бронз" - -#: forum_modules/exporter/exporter.py:272 -msgid "Compressing files" -msgstr "" - -#: forum_modules/exporter/exporter.py:391 -#: forum_modules/exporter/importer.py:367 -#, fuzzy -msgid "Nodes" -msgstr "гласове" - -#: forum_modules/exporter/exporter.py:436 -#: forum_modules/exporter/importer.py:440 -#, fuzzy -msgid "Actions" -msgstr "Местоположение" - -#: forum_modules/exporter/exporter.py:482 -#: forum_modules/exporter/importer.py:509 -#, fuzzy -msgid "Awards" -msgstr "all badges" - -#: forum_modules/exporter/exporter.py:490 -#: forum_modules/exporter/importer.py:528 -msgid "Settings" -msgstr "" - -#: forum_modules/exporter/forms.py:5 -msgid "Anonymized data" -msgstr "" - -#: forum_modules/exporter/forms.py:5 -msgid "Don't export user data and make all content anonymous" -msgstr "" - -#: forum_modules/exporter/forms.py:6 -msgid "Uploaded files" -msgstr "" - -#: forum_modules/exporter/forms.py:6 -msgid "Include uploaded files in the backup" -msgstr "" - -#: forum_modules/exporter/forms.py:7 -msgid "Skins folder" -msgstr "" - -#: forum_modules/exporter/forms.py:7 -msgid "Include skins folder in the backup" -msgstr "" - -#: forum_modules/exporter/importer.py:238 -#, python-format -msgid "Importing %s" -msgstr "" - -#: forum_modules/exporter/importer.py:239 -msgid "Importing" -msgstr "" - -#: forum_modules/exporter/settings.py:7 -msgid "Exporter settings" -msgstr "" - -#: forum_modules/exporter/settings.py:7 -msgid "Data export settings" -msgstr "" - -#: forum_modules/exporter/settings.py:10 -msgid "Backups storage" -msgstr "" - -#: forum_modules/exporter/settings.py:11 -msgid "A folder to keep your backups organized." -msgstr "" - -#: forum_modules/exporter/urls.py:8 forum_modules/exporter/urls.py:10 -#: forum_modules/exporter/urls.py:12 -msgid "exporter/" -msgstr "" - -#: forum_modules/exporter/urls.py:8 -msgid "state/" -msgstr "" - -#: forum_modules/exporter/urls.py:9 -msgid "running/" -msgstr "" - -#: forum_modules/exporter/urls.py:10 -#, fuzzy -msgid "download/" -msgstr "отхвърлен" - -#: forum_modules/exporter/urls.py:12 -msgid "import/" -msgstr "" - -#: forum_modules/exporter/views.py:20 forum_modules/exporter/views.py:68 -msgid "exporter" -msgstr "" - -#: forum_modules/exporter/views.py:20 -msgid "XML data export" -msgstr "" - -#: forum_modules/exporter/templates/exporter.html:6 -#: forum_modules/exporter/templates/running.html:6 -msgid "XML data exporter" -msgstr "" - -#: forum_modules/exporter/templates/exporter.html:9 -#: forum_modules/exporter/templates/running.html:9 -msgid "Export database to XML format" -msgstr "" - -#: forum_modules/exporter/templates/exporter.html:14 -msgid "Available backups" -msgstr "" - -#: forum_modules/exporter/templates/exporter.html:25 -msgid "Start new backup" -msgstr "" - -#: forum_modules/exporter/templates/exporter.html:31 -msgid "Start" -msgstr "" - -#: forum_modules/exporter/templates/importer.html:6 -#: forum_modules/exporter/templates/running.html:6 -msgid "XML data importer" -msgstr "" - -#: forum_modules/exporter/templates/importer.html:9 -msgid "Import data from dump file" -msgstr "" - -#: forum_modules/exporter/templates/running.html:9 -msgid "Restore data from a previouus export" -msgstr "" - -#: forum_modules/exporter/templates/running.html:60 -msgid "Skiped" -msgstr "" - -#: forum_modules/exporter/templates/running.html:96 -msgid "Your backup is ready to be downloaded." -msgstr "" - -#: forum_modules/exporter/templates/running.html:99 -msgid "All data sucessfully imported." -msgstr "" - -#: forum_modules/exporter/templates/running.html:104 -msgid "An error has occurred during de export proccess" -msgstr "" - -#: forum_modules/exporter/templates/running.html:106 -msgid "An error has occurred during de import proccess" -msgstr "" - -#: forum_modules/exporter/templates/running.html:109 -msgid "Please check the log file for a full stack trace." -msgstr "" - -#: forum_modules/exporter/templates/running.html:134 -msgid "Please wait while we prepare your backup file to download." -msgstr "" - -#: forum_modules/exporter/templates/running.html:136 -msgid "Please wait while we import your data." -msgstr "" - -#: forum_modules/exporter/templates/running.html:138 -msgid "" -"\n" -" Started \n" -" " -msgstr "" - -#: forum_modules/exporter/templates/running.html:142 -msgid "Download file" -msgstr "" - -#: forum_modules/exporter/templates/running.html:147 -msgid "Total progress" -msgstr "" - -#: forum_modules/exporter/templates/running.html:157 -msgid " of " -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "" -"The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "" -"The authentication with Facebook connect failed, cannot find authentication " -"tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:83 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:86 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/templates/loginform.html:4 -#, fuzzy -msgid "Enter your local user name and password" -msgstr "" -"Enter your CNPROG login and password
    (or select your OpenID provider above)" - -#: forum_modules/localauth/templates/loginform.html:4 -msgid "or select your external provider above" -msgstr "или изберете външен доставчик" - -#: forum_modules/localauth/templates/loginform.html:8 -#, fuzzy -msgid "Login name" -msgstr "Вход" - -#: forum_modules/localauth/templates/loginform.html:16 -#, fuzzy -msgid "Password" -msgstr "парола" - -#: forum_modules/localauth/templates/loginform.html:27 -#, fuzzy -msgid "Create account" -msgstr "Регистрация" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "Грешка, Auth Token не е на сървъра" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "Нещо се обърка! Auth символите не съвпадат" - -#: forum_modules/openidauth/consumer.py:51 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "За съжаление вашия вход не е валиден OpenID" - -#: forum_modules/openidauth/consumer.py:125 -msgid "The OpenId authentication request was canceled" -msgstr "Удостоверяването с OpenID беше отменено" - -#: forum_modules/openidauth/consumer.py:127 -msgid "The OpenId authentication failed: " -msgstr "Удостоверяването с OpenID се провали:" - -#: forum_modules/openidauth/consumer.py:129 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:131 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -msgid "Bug Buster" -msgstr "" - -#: forum_modules/project_badges/badges.py:10 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:137 -#, fuzzy, python-format -msgid "user-%(id)s" -msgstr "потребители" - -#: forum_modules/sximporter/importer.py:147 -#, python-format -msgid "user-%(id)s (google)" -msgstr "" - -#: forum_modules/sximporter/importer.py:151 -#, python-format -msgid "user-%(id)s (yahoo)" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" - -#: rosetta/templates/rosetta/languages.html:4 -#: rosetta/templates/rosetta/languages.html:6 -msgid "Language selection" -msgstr "" - -#: rosetta/templates/rosetta/languages.html:17 -#, fuzzy -msgid "Application" -msgstr "Лого" - -#: rosetta/templates/rosetta/languages.html:18 -#, fuzzy -msgid "Progress" -msgstr "Точки" - -#: rosetta/templates/rosetta/languages.html:19 -#, fuzzy -msgid "Messages" -msgstr "Вашето съобщение:" - -#: rosetta/templates/rosetta/languages.html:20 -#, fuzzy -msgid "Translated" -msgstr "обновено" - -#: rosetta/templates/rosetta/languages.html:21 -#: rosetta/templates/rosetta/pofile.html:57 -msgid "Fuzzy" -msgstr "" - -#: rosetta/templates/rosetta/languages.html:22 -msgid "Obsolete" -msgstr "" - -#: rosetta/templates/rosetta/languages.html:23 -#, fuzzy -msgid "File" -msgstr "сребро" - -#: rosetta/templates/rosetta/languages.html:44 -msgid "Nothing to translate!" -msgstr "" - -#: rosetta/templates/rosetta/languages.html:45 -msgid "" -"You haven't specified any languages in your settings file, or haven't yet " -"generated a batch of translation catalogs." -msgstr "" - -#: rosetta/templates/rosetta/languages.html:46 -#, python-format -msgid "" -"Please refer to Django's I18N documentation for a guide on how to set up internationalization for your project." -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:8 -msgid "Pick another file" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:9 -msgid "Download this catalog" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:21 -#, python-format -msgid "Progress: %(percent_translated)s%%" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:23 -msgid "File is read-only: download the file when done editing!" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:24 -msgid "" -"Some items in your last translation block couldn't be saved: this usually " -"happens when the catalog file changes on disk after you last loaded it." -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:28 -#, python-format -msgid "Translate into %(rosetta_i18n_lang_name)s" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:31 -#, fuzzy -msgid "Display:" -msgstr "Дневно" - -#: rosetta/templates/rosetta/pofile.html:32 -msgid "Untranslated only" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:33 -msgid "Translated only" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:34 -msgid "Fuzzy only" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:35 -msgid "All" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:54 -msgid "Original" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:58 -msgid "Occurrences(s)" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:82 -msgid "suggest" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:93 -#, python-format -msgid "%(more_count)s more" -msgid_plural "%(more_count)s more" -msgstr[0] "" -msgstr[1] "" - -#: rosetta/templates/rosetta/pofile.html:105 -msgid "Save and translate next block" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:109 -#, fuzzy -msgid "Skip to page:" -msgstr "обратно на началната страница" - -#: rosetta/templates/rosetta/pofile.html:122 -msgid "Displaying:" -msgstr "" - -#: rosetta/templates/rosetta/pofile.html:124 -#, python-format -msgid "%(hits)s/%(message_number)s message" -msgid_plural "%(hits)s/%(message_number)s messages" -msgstr[0] "" -msgstr[1] "" - -#~ msgid "duplicate question" -#~ msgstr "повтарящ се въпрос" - -#~ msgid "question is off-topic or not relevant" -#~ msgstr "въпроса е извън темата или е нерелевантен" - -#~ msgid "too subjective and argumentative" -#~ msgstr "прекалено субективен и спорен" - -#~ msgid "commented answer" -#~ msgstr "коментиран отговор" - -#~ msgid "received award" -#~ msgstr "получена награда" - -#~ msgid "marked best answer" -#~ msgstr "маркиран за най-добър отговор" - -#~ msgid "upvote canceled" -#~ msgstr "поддръжката е отменена" - -#~ msgid "downvote canceled" -#~ msgstr "отхвърлянето е отменено" - -#~ msgid "deleted answer" -#~ msgstr "изтрит отговор" - -#~ msgid "marked offensive" -#~ msgstr "маркирано за обидно" - -#~ msgid "updated tags" -#~ msgstr "обновени тагове" - -#~ msgid "selected favorite" -#~ msgstr "избрано за любимо" - -#~ msgid "email update sent to user" -#~ msgstr "изпратено е имейл известяване до потребителя" - -#~ msgid "question_answered" -#~ msgstr "отговор" - -#~ msgid "answer_accepted" -#~ msgstr "приет отговор" - -#~ msgid "initial version" -#~ msgstr "първоначална версия" - -#~ msgid "Weekly" -#~ msgstr "Седмично" - -#~ msgid "please use 5 tags or less" -#~ msgstr "моля, използвайте до 5 тага" - -#~ msgid "tags must be shorter than 20 characters" -#~ msgstr "таговете трябва да са по-кратки от 20 символа" - -#~ msgid "Automatically accept user's contributions for the email updates" -#~ msgstr "Автоматично приемай потребителските добавяния за имейл ъпдейтите" - -#~ msgid "marked an answer" -#~ msgstr "маркирано като прочетено" - -#~ msgid "commented a question" -#~ msgstr "списък на всички въпроси" - -#~ msgid "edited an answer" -#~ msgstr "най-старите" - -#~ msgid "received badge" -#~ msgstr "получена точка" - -#~ msgid "" -#~ "the page you tried to visit is protected or you don't have sufficient " -#~ "points, see" -#~ msgstr "" -#~ "страницата е защитена или нямате подходящите права за да я преглеждате" - -#~ msgid "this answer has been accepted to be correct" -#~ msgstr "този въпрос" - -#~ msgid "login to post question info" -#~ msgstr "" -#~ "Вие сте свободни да задавате Вашите въпроси " -#~ "анонимно. Когато изберете да изпратите публикацията, тя ще бъде " -#~ "запазена в сесията и след като се оторизирате ще можете да продължите " -#~ "добавянето. Процеса на регистрация и оторизиране е много прост. Отнема по-" -#~ "малко от минута." - -#~ msgid "" -#~ "must have valid %(email)s to post, \n" -#~ " see %(email_validation_faq_url)s\n" -#~ " " -#~ msgstr "" -#~ "Изглежда, че имейла Ви, %(email)s не е бил " -#~ "потвърден. За да добавяте информация, трябва да потвърдите имейла " -#~ "си, можете да намерите повече информация на страницата за потвърждение на имейла." -#~ "
    Можете да изпратите съобщението си и да потвърдите имейла след това, " -#~ "но съобщението няма да бъде визуализирано. " - -#~ msgid "" -#~ "Before asking the question - please make sure to use search to see " -#~ "whether your question has alredy been answered." -#~ msgstr "" -#~ "Before you ask - please make sure to search for a similar question. You " -#~ "can search questions by their title or tags." - -#~ msgid "What questions should I avoid asking?" -#~ msgstr "What kinds of questions should be avoided?" - -#~ msgid "" -#~ "is a Q&A site, not a discussion group. Therefore - please avoid having " -#~ "discussions in your answers, comment facility allows some space for brief " -#~ "discussions." -#~ msgstr "" -#~ "is a question and answer site - it is not a " -#~ "discussion group. Please avoid holding debates in your answers " -#~ "as they tend to dilute the essense of questions and answers. For the " -#~ "brief discussions please use commenting facility." - -#~ msgid "" -#~ "The reputation system allows users earn the authorization to perform a " -#~ "variety of moderation tasks." -#~ msgstr "" -#~ "Karma system allows users to earn rights to perform a variety of " -#~ "moderation tasks" - -#~ msgid "How does reputation system work?" -#~ msgstr "How does karma system work?" - -#~ msgid "Rep system summary" -#~ msgstr "" -#~ "When a question or answer is upvoted, the user who posted them will gain " -#~ "some points, which are called \"karma points\". These points serve as a " -#~ "rough measure of the community trust to him/her. Various moderation tasks " -#~ "are gradually assigned to the users based on those points." - -#~ msgid "use tags" -#~ msgstr "използвай тагове" - -#~ msgid "" -#~ "how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)" -#~ "s" -#~ msgstr "" -#~ "

    How? If you have just set or " -#~ "changed your email address - check your email and click the " -#~ "included link.
    The link contains a key generated specifically " -#~ "for you. You can also and check your " -#~ "email again.

    Why? Email " -#~ "validation is required to make sure that only you can post " -#~ "messages on your behalf and to minimize spam " -#~ "posts.
    With email you can subscribe for updates on " -#~ "the most interesting questions. Also, when you sign up for the first time " -#~ "- create a unique gravatar personal image.

    " - -#~ msgid "" -#~ "Please ask your question at %(ask_question_url)s, help make our community " -#~ "better!" -#~ msgstr "" -#~ "Please ask your question, help make " -#~ "our community better!" - -#~ msgid "give feedback" -#~ msgstr "остави отзив" - -#~ msgid "close date %(closed_at)s" -#~ msgstr "дата на затваряне %(closed_at)s" - -#~ msgid "question tips" -#~ msgstr "Съвети" - -#~ msgid "up to 5 tags, less than 20 characters each" -#~ msgstr "до 5 тага, с дължина до 20 символа всеки" - -#~ msgid "all tags - make this empty in english" -#~ msgstr "всички тагове" - -#~ msgid "Sorry, looks like we have some errors:" -#~ msgstr "Изглежда е станала грешка:" - -#~ msgid "Screen name label" -#~ msgstr "" -#~ "Публично име (ще бъде показано на останалите)" - -#~ msgid "Email address label" -#~ msgstr "" -#~ "Имейл адрес (няма да бъде споделяно с " -#~ "никой, трябва да бъде валиден)" - -#~ msgid "To make use of the Forum, please follow the link below:" -#~ msgstr "За да използвате Zapprotect Q&A, използвайте следния линк:" - -#~ msgid "" -#~ "Sincerely,
    \n" -#~ " Forum Administrator" -#~ msgstr "" -#~ "Sincerely,\n" -#~ "Q&A Forum Administrator" - -#~ msgid "Click to sign in through any of these services." -#~ msgstr "" -#~ "

    Please select your favorite login method " -#~ "below.

    External login services use OpenID technology, where your " -#~ "password always stays confidential between you and your login provider " -#~ "and you don't have to remember another one. CNPROG option requires your " -#~ "login name and password entered here.

    " - -#~ msgid "Traditional signup info" -#~ msgstr "" -#~ "If you prefer, create your forum login name and " -#~ "password here. However, please keep in mind that we also support " -#~ "OpenID login method. With OpenID you " -#~ "can simply reuse your external login (e.g. Gmail or AOL) without ever " -#~ "sharing your login details with anyone and having to remember yet another " -#~ "password." - -#~ msgid " add comment" -#~ msgstr "post a comment" - -#~ msgid "On question " -#~ msgstr "Tips" - -#~ msgid "" -#~ "\n" -#~ " %(comment_count)s new comment%" -#~ "(comment_count_pluralize)s\n" -#~ " " -#~ msgstr "" -#~ "\n" -#~ "(one comment)" - -#~ msgid "" -#~ "\n" -#~ " Posted by %(author_name)s in %(question_time)s\n" -#~ " " -#~ msgstr "" -#~ "\n" -#~ "
    %(q_num)s

    question

    " - -#~ msgid "avatar, see %(gravatar_faq_url)s" -#~ msgstr "gravatar" - -#~ msgid "casted votes" -#~ msgstr "votes" - -#~ msgid "Questions sorted by number of responses." -#~ msgstr "Questions sorted by the number of answers." - -#~ msgid "user reputation in the community" -#~ msgstr "user karma" - -#~ msgid "profile - user reputation" -#~ msgstr "Profile - User's Karma" - -#~ msgid "profile - subscriptions" -#~ msgstr "Profile - User's Karma" - -#~ msgid "email update message subject" -#~ msgstr "news from Q&A forum" - -#~ msgid "%(name)s, this is an update message header for a question" -#~ msgid_plural "" -#~ "%(name)s, this is an update message header for %(num)d questions" -#~ msgstr[0] "" -#~ "

    Dear %(name)s,

    The following question has been updated on the " -#~ "Q&A forum:

    " -#~ msgstr[1] "" -#~ "

    Dear %(name)s,

    The following %(num)d questions have been updated " -#~ "on the Q&A forum:

    " - -#~ msgid "" -#~ "go to %(link)s to change frequency of email updates or %(email)s " -#~ "administrator" -#~ msgstr "" -#~ "

    Please remember that you can always adjust " -#~ "frequency of the email updates or turn them off entirely.
    If you " -#~ "believe that this message was sent in an error, please email about it the " -#~ "forum administrator at %(email)s.

    Sincerely,

    Your friendly " -#~ "Q&A forum server.

    " - -#~ msgid "Account: change password" -#~ msgstr "Change your password" - -#~ msgid "list of unanswered questions" -#~ msgstr "unanswered questions" - -#~ msgid "Notify me once a day when there are any new answers" -#~ msgstr "" -#~ "Notify me once a day by email when there are any new " -#~ "answers or updates" - -#~ msgid "Notify me weekly when there are any new answers" -#~ msgstr "" -#~ "Notify me weekly when there are any new answers or " -#~ "updates" - -#~ msgid "" -#~ "\n" -#~ " You can always adjust frequency of email updates from " -#~ "your %(profile_url)s\n" -#~ " " -#~ msgstr "" -#~ "\n" -#~ "(note: you can always adjust frequency of email updates)" - -#~ msgid "" -#~ "\n" -#~ " have total %(q_num)s questions containing %" -#~ "(searchtitle)s in full text\n" -#~ " " -#~ msgid_plural "" -#~ "\n" -#~ " have total %(q_num)s questions containing %" -#~ "(searchtitle)s in full text\n" -#~ " " -#~ msgstr[0] "" -#~ "\n" -#~ "
    %(q_num)s

    question containing " -#~ "%(searchtitle)s

    " -#~ msgstr[1] "" -#~ "\n" -#~ "
    %(q_num)s

    questions containing " -#~ "%(searchtitle)s

    " - -#~ msgid "Most recently answered ones are shown first." -#~ msgstr "Most recently answered questions are shown first." - -#~ msgid "change %(email)s info" -#~ msgstr "" -#~ "Enter your new email into the box below " -#~ "if you'd like to use another email for update subscriptions.
    Currently you are using %(email)s" - -#~ msgid "here is why email is required, see %(gravatar_faq_url)s" -#~ msgstr "" -#~ "Please enter your email address in the box below." -#~ " Valid email address is required on this Q&A forum. If you " -#~ "like, you can receive updates on interesting questions " -#~ "or entire forum via email. Also, your email is used to create a unique gravatar image for your " -#~ "account. Email addresses are never shown or otherwise shared with anybody " -#~ "else." - -#~ msgid "validate %(email)s info or go to %(change_email_url)s" -#~ msgstr "" -#~ "An email with a validation link has been sent " -#~ "to %(email)s. Please follow the emailed link with " -#~ "your web browser. Email validation is necessary to help insure the proper " -#~ "use of email on Q&A. If you would like " -#~ "to use another email, please change it again." - -#~ msgid "old %(email)s kept, if you like go to %(change_email_url)s" -#~ msgstr "" -#~ "Your email address %(email)s has not been " -#~ "changed. If you decide to change it later - you can always do it " -#~ "by editing it in your user profile or by using the previous form again." - -#~ msgid "your current %(email)s can be used for this" -#~ msgstr "" -#~ "Your email address is now set to %(email)s. Updates on the questions that you like most will be sent to this " -#~ "address. Email notifications are sent once a day or less frequently - " -#~ "only when there are any news." - -#~ msgid "thanks for verifying email" -#~ msgstr "" -#~ "Thank you for verifying your email! Now " -#~ "you can ask and answer questions. Also " -#~ "if you find a very interesting question you can subscribe for the " -#~ "updates - then will be notified about changes once a " -#~ "day or less frequently." - -#~ msgid "email key not sent" -#~ msgstr "Validation email not sent" - -#~ msgid "email key not sent %(email)s change email here %(change_link)s" -#~ msgstr "" -#~ "Your current email address %(email)s has been " -#~ "validated before so the new key was not sent. You can change email used for update subscriptions if " -#~ "necessary." - -#~ msgid "register new %(provider)s account info, see %(gravatar_faq_url)s" -#~ msgstr "" -#~ "

    You are here for the first time with your %" -#~ "(provider)s login. Please create your screen name " -#~ "and save your email address. Saved email address will " -#~ "let you subscribe for the updates on the most " -#~ "interesting questions and will be used to create and retrieve your unique " -#~ "avatar image - gravatar.

    " - -#~ msgid "" -#~ "%(username)s already exists, choose another name for \n" -#~ " %(provider)s. Email is required too, see %" -#~ "(gravatar_faq_url)s\n" -#~ " " -#~ msgstr "" -#~ "

    Oops... looks like screen name %(username)s " -#~ "is already used in another account.

    Please choose another " -#~ "screen name to use with your %(provider)s login. Also, a valid email " -#~ "address is required on the Q&A forum. " -#~ "Your email is used to create a unique gravatar image for your account. If you like, you " -#~ "can receive updates on the interesting questions or " -#~ "entire forum by email. Email addresses are never shown or otherwise " -#~ "shared with anybody else.

    " - -#~ msgid "" -#~ "register new external %(provider)s account info, see %(gravatar_faq_url)s" -#~ msgstr "" -#~ "

    You are here for the first time with your %" -#~ "(provider)s login.

    You can either keep your screen " -#~ "name the same as your %(provider)s login name or choose some " -#~ "other nickname.

    Also, please save a valid email " -#~ "address. With the email you can subscribe for the updates on the most interesting questions. Email address is also used to " -#~ "create and retrieve your unique avatar image - gravatar.

    " - -#~ msgid "register new Facebook connect account info, see %(gravatar_faq_url)s" -#~ msgstr "" -#~ "

    You are here for the first time with your " -#~ "Facebook login. Please create your screen name " -#~ "and save your email address. Saved email address will " -#~ "let you subscribe for the updates on the most " -#~ "interesting questions and will be used to create and retrieve your unique " -#~ "avatar image - gravatar.

    " - -#~ msgid "password recovery information" -#~ msgstr "" -#~ "Forgot you password? No problems - just get a " -#~ "new one!
    Please follow the following steps:
    • submit " -#~ "your user name below and check your email
    follow the " -#~ "activation link for the new password - sent to you by email and " -#~ "login with the suggested password
    • at this you might want to " -#~ "change your password to something you can remember better" - -#~ msgid "Reset password" -#~ msgstr "Send me a new password" - -#~ msgid "" -#~ "email explanation how to use new %(password)s for %(username)s\n" -#~ "with the %(key_link)s" -#~ msgstr "" -#~ "To change your password, please follow these steps:\n" -#~ "* visit this link: %(key_link)s\n" -#~ "* login with user name %(username)s and password %(password)s\n" -#~ "* go to your user profile and set the password to something you can " -#~ "remember" - -#~ msgid "" -#~ "\n" -#~ " Your answer to %(title)s %(summary)s will be posted once " -#~ "you log in\n" -#~ " " -#~ msgstr "" -#~ "\n" -#~ "Your answer to \"%(title)s %(summary)s...\" is saved and will " -#~ "be posted once you log in." - -#~ msgid "" -#~ "Your question \n" -#~ " %(title)s %(summary)s will be posted once you log in\n" -#~ " " -#~ msgstr "" -#~ "Your question \"%(title)s %(summary)s...\" is saved and will " -#~ "be posted once you log in." - -#~ msgid "Enter your Provider user name" -#~ msgstr "" -#~ "Enter your Provider user name
    (or " -#~ "select another login method above)" - -#~ msgid "" -#~ "Enter your
    OpenID " -#~ "web address" -#~ msgstr "" -#~ "Enter your OpenID web address
    (or choose another login method above)" - -#~ msgid "subscription saved, %(email)s needs validation, see %(details_url)s" -#~ msgstr "" -#~ "Your subscription is saved, but email address %(email)s needs to be " -#~ "validated, please see more details here" - -#~ msgid "Incorrect username." -#~ msgstr "sorry, there is no such user name" - -#~ msgid "your email needs to be validated see %(details_url)s" -#~ msgstr "" -#~ "Your email needs to be validated. Please see details here." - -#~ msgid "Email verification subject line" -#~ msgstr "Verification Email from Q&A forum" - -#~ msgid "first time greeting with %(url)s" -#~ msgstr "Hello and welcome to OSQA - please join us!" - -#~ msgid "" -#~ "\n" -#~ "\t\t\t\thave total %(q_num)s questions\n" -#~ "\t\t\t\t" -#~ msgid_plural "" -#~ "\n" -#~ "\t\t\t\thave total %(q_num)s questions\n" -#~ "\t\t\t\t" -#~ msgstr[0] "" -#~ "\n" -#~ "
    %(q_num)s

    question

    " -#~ msgstr[1] "" -#~ "\n" -#~ "
    %(q_num)s

    questions

    " diff --git a/forum/modules/template_loader.py/locale/de/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/de/LC_MESSAGES/django.mo deleted file mode 100644 index e69de29..0000000 diff --git a/forum/modules/template_loader.py/locale/de/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/de/LC_MESSAGES/django.po deleted file mode 100644 index 1b2e4f7..0000000 --- a/forum/modules/template_loader.py/locale/de/LC_MESSAGES/django.po +++ /dev/null @@ -1,4428 +0,0 @@ -#: forum/const.py:8 -msgid "duplicate question" -msgstr "" - -#: forum/const.py:9 -msgid "question is off-topic or not relevant" -msgstr "" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "" - -#: forum/const.py:73 -msgid "commented question" -msgstr "" - -#: forum/const.py:74 -msgid "commented answer" -msgstr "" - -#: forum/const.py:75 -msgid "edited question" -msgstr "" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "" - -#: forum/const.py:77 -msgid "received award" -msgstr "" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "" - -#: forum/const.py:81 -msgid "upvote canceled" -msgstr "" - -#: forum/const.py:82 -msgid "downvote canceled" -msgstr "" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "" - -#: forum/const.py:93 -msgid "question_answered" -msgstr "" - -#: forum/const.py:94 -msgid "question_commented" -msgstr "" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "" - -#: forum/const.py:102 -msgid "initial version" -msgstr "" - -#: forum/const.py:103 -msgid "retagged" -msgstr "" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "" - -#: forum/const.py:112 -msgid "Daily" -msgstr "" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "" - -#: forum/feed.py:18 -msgid " - " -msgstr "" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "" - -#: forum/forms.py:36 -msgid "content" -msgstr "" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "" - -#: forum/forms.py:54 -msgid "" -"Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr "" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "" - -#: forum/forms.py:74 -msgid "" -"please use following characters in tags: letters 'a-z', numbers, and " -"characters '.-_#'" -msgstr "" - -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "" - -#: forum/forms.py:85 -msgid "" -"if you choose community wiki option, the question and answer do not generate " -"points and name of author will not be shown" -msgstr "" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "" - -#: forum/forms.py:102 -msgid "" -"enter a brief summary of your revision (e.g. fixed spelling, grammar, " -"improved style, this field is optional)" -msgstr "" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -msgid "Your name:" -msgstr "" - -#: forum/forms.py:119 -msgid "Email (not shared with anyone):" -msgstr "" - -#: forum/forms.py:120 -msgid "Your message:" -msgstr "" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "" - -#: forum/forms.py:204 -msgid "Screen name" -msgstr "" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "" - -#: forum/forms.py:206 -msgid "Website" -msgstr "" - -#: forum/forms.py:207 -msgid "Location" -msgstr "" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "" - -#: forum/subscriptions.py:41 -#, python-format -msgid "New question on %(app_name)s" -msgstr "" - -#: forum/subscriptions.py:73 -#, python-format -msgid "New answer to '%(question_title)s'" -msgstr "" - -#: forum/subscriptions.py:112 -#, python-format -msgid "New comment on %(question_title)s" -msgstr "" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:49 -msgid "about/" -msgstr "" - -#: forum/urls.py:50 -msgid "faq/" -msgstr "" - -#: forum/urls.py:51 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:52 -msgid "logout/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:54 -msgid "answers/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -msgid "edit/" -msgstr "" - -#: forum/urls.py:54 forum/urls.py:74 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -msgid "questions/" -msgstr "" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -msgid "ask/" -msgstr "" - -#: forum/urls.py:57 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:59 -msgid "close/" -msgstr "" - -#: forum/urls.py:60 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:61 -msgid "answer/" -msgstr "" - -#: forum/urls.py:63 -msgid "vote/" -msgstr "" - -#: forum/urls.py:64 -msgid "like_comment/" -msgstr "" - -#: forum/urls.py:65 -msgid "comment/" -msgstr "" - -#: forum/urls.py:66 -msgid "delete_comment/" -msgstr "" - -#: forum/urls.py:67 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:68 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -msgid "command/" -msgstr "" - -#: forum/urls.py:78 -msgid "question/" -msgstr "" - -#: forum/urls.py:79 forum/urls.py:80 -msgid "tags/" -msgstr "" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -msgid "users/" -msgstr "" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:101 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:102 -msgid "reputation/" -msgstr "" - -#: forum/urls.py:103 -msgid "votes/" -msgstr "" - -#: forum/urls.py:104 -msgid "recent/" -msgstr "" - -#: forum/urls.py:107 forum/urls.py:108 -msgid "badges/" -msgstr "" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -msgid "search/" -msgstr "" - -#: forum/urls.py:115 -msgid "feedback/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -msgid "done/" -msgstr "" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -msgid "remove/" -msgstr "" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -msgid "Your account email" -msgstr "" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -msgid "Current password" -msgstr "" - -#: forum/authentication/forms.py:62 -msgid "" -"Old password is incorrect. Please enter the correct " -"password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -msgid "[closed] " -msgstr "" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -msgid "interesting" -msgstr "" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -msgid "answered" -msgstr "" - -#: forum/models/user.py:259 -msgid "marked an answer" -msgstr "" - -#: forum/models/user.py:261 -msgid "edited a question" -msgstr "" - -#: forum/models/user.py:263 -msgid "commented a question" -msgstr "" - -#: forum/models/user.py:265 -msgid "commented an answer" -msgstr "" - -#: forum/models/user.py:267 -msgid "edited an answer" -msgstr "" - -#: forum/models/user.py:269 -msgid "received badge" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Badges config" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -msgid "Basic Settings" -msgstr "" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -msgid "Your site main logo." -msgstr "" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -msgid "Application description" -msgstr "" - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Application intro" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "" -"The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email Settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "" -"The port on which your SMTP server is listening to. Usually this is 25, but " -"can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -msgid "Site 'from' email address" -msgstr "" - -#: forum/settings/email.py:35 -msgid "" -"The address that will show up on the 'from' field on emails sent by your " -"website." -msgstr "" - -#: forum/settings/email.py:39 -msgid "Email subject prefix" -msgstr "" - -#: forum/settings/email.py:40 -msgid "" -"Every email sent through your website will have the subject prefixed by this " -"string. It's usually a good idea to have such a prefix so your users can " -"easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "" -"Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "" -"This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "" -"Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -msgid "Change this:" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "Minimum reputation config" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "" -"Configure the minimum reputation required to perform certain actions on your " -"site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -msgid "Minimum reputation to vote down" -msgstr "" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -msgid "Minimum reputation to comment" -msgstr "" - -#: forum/settings/minrep.py:20 -msgid "" -"The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -msgid "Minimum reputation to like a comment" -msgstr "" - -#: forum/settings/minrep.py:24 -msgid "" -"The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "" -"The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "" -"The minimum reputation an user must have to be allowed to close his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "" -"The minimum reputation an user must have to be allowed to reopen his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "" -"The minimum reputation an user must have to be allowed to retag others " -"questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "" -"The minimum reputation an user must have to be allowed to edit community " -"wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "" -"The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "" -"The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -msgid "Minimum reputation to delete comments" -msgstr "" - -#: forum/settings/minrep.py:56 -msgid "" -"The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "" -"Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -msgid "Initial reputation" -msgstr "" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "" -"Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "" -"Reputation a user gains for having one of the downvotes on his posts " -"canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "" -"Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "" -"Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "" -"The filesystem path where uploaded files will be stored. Please note that " -"this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "" -"The url alias for uploaded files. Notice that if you change this setting, " -"you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "" -"How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "" - -#: forum/skins/default/templates/404.html:30 -msgid "" -"the page you tried to visit is protected or you don't have sufficient " -"points, see" -msgstr "" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -msgid "see latest questions" -msgstr "" - -#: forum/skins/default/templates/500.html:29 -msgid "see tags" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:14 -msgid "this answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "" - -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -msgid "About" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -msgid "*italic* or __italic__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "" - -#: forum/skins/default/templates/ask.html:64 -msgid "login to post question info" -msgstr "" - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "" - -#: forum/skins/default/templates/badges.html:6 -msgid "Badges summary" -msgstr "" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" - -#: forum/skins/default/templates/badges.html:22 -#, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %" -"(feedback_faq_url)s.\n" -" " -msgstr "" - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:71 -msgid "bronze badge description" -msgstr "" - -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:31 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "" - -#: forum/skins/default/templates/faq.html:17 -msgid "" -"Most importantly - questions should be relevant to this " -"community." -msgstr "" - -#: forum/skins/default/templates/faq.html:18 -msgid "" -"Before asking the question - please make sure to use search to see whether " -"your question has alredy been answered." -msgstr "" - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "" - -#: forum/skins/default/templates/faq.html:22 -msgid "" -"Please avoid asking questions that are not relevant to this community, too " -"subjective and argumentative." -msgstr "" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:28 -msgid "" -"is a Q&A site, not a discussion group. Therefore - please avoid having " -"discussions in your answers, comment facility allows some space for brief " -"discussions." -msgstr "" - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "" - -#: forum/skins/default/templates/faq.html:35 -msgid "" -"The reputation system allows users earn the authorization to perform a " -"variety of moderation tasks." -msgstr "" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "" - -#: forum/skins/default/templates/faq.html:41 -msgid "Rep system summary" -msgstr "" - -#: forum/skins/default/templates/faq.html:42 -msgid "" -"For example, if you ask an interesting question or give a helpful answer, " -"your input will be upvoted. On the other hand if the answer is misleading - " -"it will be downvoted. Each vote in favor will generate 10 " -"points, each vote against will subtract 2 points. There is " -"a limit of 200 points that can be accumulated per question " -"or answer. The table below explains reputation point requirements for each " -"type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:57 -msgid "use tags" -msgstr "" - -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:69 -msgid "open and close own questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "" - -#: forum/skins/default/templates/faq.html:87 -msgid "open any closed question" -msgstr "" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "" -"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "" - -#: forum/skins/default/templates/faq.html:115 -msgid "" -"No, you don't have to. You can login through any service that supports " -"OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "" -"So questions and answers can be edited like wiki pages by experienced users " -"of this site and this improves the overall quality of the knowledge base " -"content." -msgstr "" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "" - -#: forum/skins/default/templates/faq.html:128 -#, python-format -msgid "" -"Please ask your question at %(ask_question_url)s, help make our community " -"better!" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look " -"forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to " -"hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "" - -#: forum/skins/default/templates/footer.html:18 -msgid "give feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "" - -#: forum/skins/default/templates/index.html:9 -msgid "welcome to " -msgstr "" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "" - -#: forum/skins/default/templates/logout.html:19 -msgid "" -"As a registered user you can login with your OpenID, log out of the site or " -"permanently remove your account." -msgstr "" - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -msgid "posted" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "" - -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "" - -#: forum/skins/default/templates/question.html:87 -#, python-format -msgid "" -"The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "" - -#: forum/skins/default/templates/question.html:89 -#, python-format -msgid "close date %(closed_at)s" -msgstr "" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "" - -#: forum/skins/default/templates/question.html:159 -msgid "Be the first one to answer this question!" -msgstr "" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "" - -#: forum/skins/default/templates/question.html:171 -msgid "please only give an answer, no discussions" -msgstr "" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -msgid "Answer Your Own Question" -msgstr "" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "" - -#: forum/skins/default/templates/question.html:239 -msgid "question asked" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "" - -#: forum/skins/default/templates/question.html:250 -msgid "Related questions" -msgstr "" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:89 -msgid "tags help us keep Questions organized" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "on " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "" - -#: forum/skins/default/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -msgid "Subscription" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -msgid "You are subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:13 -msgid "You are not subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -msgid "keep ignored questions hidden" -msgstr "" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "by popularity" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "" - -#: forum/skins/default/templates/tags.html:42 -msgid "Nothing found" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "" -"These are the external authentication providers currently associated with " -"your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "" -"You currently have no external authentication provider associated with your " -"account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "" -"You can set up a password for your account, so you can login using standard " -"username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Create password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "" -"Please create your screen name and save your email address. Saved email " -"address will let you subscribe for the updates on the most interesting " -"questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:54 -msgid "Email address label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "Click" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having trouble signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:8 -msgid "Create login name and password" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:31 -msgid "Create Account" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:33 -msgid "return to login page" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot " -"your password,\n" -" here you can request a temporary login key. Fill out your account email " -"and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once " -"and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -msgid "Send link" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:22 -msgid "I like this comment (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:26 -msgid "Edit comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:30 -msgid "Delete comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -msgid "add new comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:55 -msgid " add comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)" -"s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -msgid "just now" -msgstr "" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %" -"(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %" -"(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -msgid "On question " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)" -"s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:46 -msgid "on your own post(s)" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:50 -msgid "an answer was accepted" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -msgid "posted :" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the " -"question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %" -"(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %" -"(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %" -"(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, " -"with title\n" -" %(question_title)s and " -"tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "" -"Your site is running in bootstrap mode, click the button bellow to revert to " -"defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "" -"Your site is running in standard mode, click the button bellow to run in " -"bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "" -"Your site is running with some customized settings, click the buttons bellow " -"to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:12 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:43 -msgid "Screen Name" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "" - -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, python-format -msgid "" -"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -msgid "Notifications and subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to " -"receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all " -"notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them " -"clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:36 -msgid "A new question is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -msgid "Questions I ask" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:60 -msgid "Questions I answer" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:63 -msgid "Questions I comment" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:68 -msgid "Questions I view" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -msgid "An answer is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -msgid "An answer is accepted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "" -"Notify me when someone replys to one of my comments on any post using the " -"
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -msgid "subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "" - -#: forum/skins/default/templates/users/users.html:35 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -msgid "reputation points" -msgstr "" - -#: forum/templatetags/extra_tags.py:248 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:64 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "" -"report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "" - -#: forum/templatetags/question_list_tags.py:57 -msgid "Newest questions are shown first. " -msgstr "" - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "" - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -msgid "this field is required" -msgstr "" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "" - -#: forum/utils/forms.py:52 -msgid "user name is required" -msgstr "" - -#: forum/utils/forms.py:53 -msgid "sorry, this name is taken, please choose another" -msgstr "" - -#: forum/utils/forms.py:54 -msgid "sorry, this name is not allowed, please choose another" -msgstr "" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "" - -#: forum/utils/forms.py:106 -msgid "email address is required" -msgstr "" - -#: forum/utils/forms.py:108 -msgid "this email is already used by someone else, please choose another" -msgstr "" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "" - -#: forum/utils/forms.py:134 -msgid "password is required" -msgstr "" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "" - -#: forum/utils/forms.py:138 -msgid "please, retype your password" -msgstr "" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "" -"Sorry, these login credentials belong to anoother user. Plese terminate your " -"current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:239 -msgid "" -"You are logged in with a temporary access key, please take the time to fix " -"your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:282 -msgid "New password set" -msgstr "" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s." -"
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the
    faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -msgid "vote" -msgid_plural "votes" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:89 -#, python-format -msgid "" -"Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the " -"original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -msgid "like comments" -msgstr "" - -#: forum/views/commands.py:152 -msgid "like" -msgstr "" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -msgid "delete comments" -msgstr "" - -#: forum/views/commands.py:197 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -msgid "comment" -msgstr "" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:230 -msgid "edit comments" -msgstr "" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -msgid "accept answers" -msgstr "" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -msgid "delete posts" -msgstr "" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -msgid "Open questions without an accepted answer" -msgstr "" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile overview" -msgstr "" - -#: forum/views/users.py:186 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:186 -msgid "profile - recent activity" -msgstr "" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "" - -#: forum/views/users.py:214 -msgid "favorite questions" -msgstr "" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "" - -#: forum/views/users.py:220 -msgid "subscription settings" -msgstr "" - -#: forum/views/users.py:220 -msgid "profile - subscriptions" -msgstr "" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -msgid "New subscription settings are now saved" -msgstr "" - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "" - -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:72 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:74 -#, python-format -msgid "" -"Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:85 -msgid "Initial revision" -msgstr "" - -#: forum/views/writers.py:143 -msgid "Retag" -msgstr "" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -msgid "books/" -msgstr "" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, python-format -msgid "Answer voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -msgid "First up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -msgid "First accepted answer on your own question" -msgstr "" - -#: forum_modules/default_badges/badges.py:162 -msgid "Completed all user profile fields" -msgstr "" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, python-format -msgid "Left %s comments" -msgstr "" - -#: forum_modules/default_badges/badges.py:192 -#, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "" -"Answered a question more than %(dif_days)s days later with at least %" -"(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -msgid "Nice Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -msgid "Good Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -msgid "Great Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an " -"author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to " -"an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the " -"author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the " -"Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the " -"Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for " -"the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the " -"Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "" -"The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "" -"The authentication with Facebook connect failed, cannot find authentication " -"tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:92 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -msgid "A validation email has been sent to your email address. " -msgstr "" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" diff --git a/forum/modules/template_loader.py/locale/en/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/en/LC_MESSAGES/django.mo deleted file mode 100644 index 42da287..0000000 Binary files a/forum/modules/template_loader.py/locale/en/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/en/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/en/LC_MESSAGES/django.po deleted file mode 100644 index 1305ee9..0000000 --- a/forum/modules/template_loader.py/locale/en/LC_MESSAGES/django.po +++ /dev/null @@ -1,4552 +0,0 @@ -# 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 , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-04-28 16:53-0400\n" -"PO-Revision-Date: 2010-05-14 15:33\n" -"Last-Translator: Rick Ross \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Translated-Using: django-rosetta 0.5.3\n" - -#: forum/const.py:8 -msgid "duplicate question" -msgstr "" - -#: forum/const.py:9 -msgid "question is off-topic or not relevant" -msgstr "" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "" - -#: forum/const.py:73 -msgid "commented question" -msgstr "" - -#: forum/const.py:74 -msgid "commented answer" -msgstr "" - -#: forum/const.py:75 -msgid "edited question" -msgstr "" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "" - -#: forum/const.py:77 -msgid "received award" -msgstr "received badge" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "" - -#: forum/const.py:81 -msgid "upvote canceled" -msgstr "" - -#: forum/const.py:82 -msgid "downvote canceled" -msgstr "" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "" - -#: forum/const.py:93 -msgid "question_answered" -msgstr "answer" - -#: forum/const.py:94 -msgid "question_commented" -msgstr "question comment" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "answer comment" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "answer accepted" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "" - -#: forum/const.py:102 -msgid "initial version" -msgstr "" - -#: forum/const.py:103 -msgid "retagged" -msgstr "" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "" - -#: forum/const.py:112 -msgid "Daily" -msgstr "" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "" - -#: forum/feed.py:18 -msgid " - " -msgstr "" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "" - -#: forum/forms.py:36 -msgid "content" -msgstr "" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "" - -#: forum/forms.py:54 -msgid "Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr "" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "" - -#: forum/forms.py:74 -msgid "please use following characters in tags: letters 'a-z', numbers, and characters '.-_#'" -msgstr "" - -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "" - -#: forum/forms.py:85 -msgid "if you choose community wiki option, the question and answer do not generate points and name of author will not be shown" -msgstr "" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "" - -#: forum/forms.py:102 -msgid "enter a brief summary of your revision (e.g. fixed spelling, grammar, improved style, this field is optional)" -msgstr "" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -msgid "Your name:" -msgstr "" - -#: forum/forms.py:119 -msgid "Email (not shared with anyone):" -msgstr "" - -#: forum/forms.py:120 -msgid "Your message:" -msgstr "" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "" - -#: forum/forms.py:204 -msgid "Screen name" -msgstr "" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "" - -#: forum/forms.py:206 -msgid "Website" -msgstr "" - -#: forum/forms.py:207 -msgid "Location" -msgstr "" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "" - -#: forum/subscriptions.py:41 -#, python-format -msgid "New question on %(app_name)s" -msgstr "" - -#: forum/subscriptions.py:73 -#, fuzzy, python-format -msgid "New answer to '%(question_title)s'" -msgstr "Post Your Answer" - -#: forum/subscriptions.py:112 -#, python-format -msgid "New comment on %(question_title)s" -msgstr "" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:49 -msgid "about/" -msgstr "" - -#: forum/urls.py:50 -msgid "faq/" -msgstr "" - -#: forum/urls.py:51 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:52 -msgid "logout/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:54 -msgid "answers/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -msgid "edit/" -msgstr "" - -#: forum/urls.py:54 forum/urls.py:74 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -msgid "questions/" -msgstr "" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -msgid "ask/" -msgstr "" - -#: forum/urls.py:57 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:59 -msgid "close/" -msgstr "" - -#: forum/urls.py:60 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:61 -msgid "answer/" -msgstr "" - -#: forum/urls.py:63 -msgid "vote/" -msgstr "" - -#: forum/urls.py:64 -#, fuzzy -msgid "like_comment/" -msgstr "answer comment" - -#: forum/urls.py:65 -#, fuzzy -msgid "comment/" -msgstr "post a comment" - -#: forum/urls.py:66 -#, fuzzy -msgid "delete_comment/" -msgstr "post a comment" - -#: forum/urls.py:67 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:68 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -msgid "command/" -msgstr "" - -#: forum/urls.py:78 -msgid "question/" -msgstr "" - -#: forum/urls.py:79 forum/urls.py:80 -msgid "tags/" -msgstr "" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -msgid "users/" -msgstr "" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:101 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:102 -#, fuzzy -msgid "reputation/" -msgstr "karma" - -#: forum/urls.py:103 -msgid "votes/" -msgstr "" - -#: forum/urls.py:104 -msgid "recent/" -msgstr "" - -#: forum/urls.py:107 forum/urls.py:108 -msgid "badges/" -msgstr "" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -msgid "search/" -msgstr "" - -#: forum/urls.py:115 -msgid "feedback/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -msgid "done/" -msgstr "" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -msgid "remove/" -msgstr "" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -#, fuzzy -msgid "Your account email" -msgstr "Your new Email: (will not be shown to anyone, must be valid)" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -msgid "Current password" -msgstr "" - -#: forum/authentication/forms.py:62 -msgid "Old password is incorrect. Please enter the correct password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -msgid "[closed] " -msgstr "" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -msgid "interesting" -msgstr "" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -msgid "answered" -msgstr "" - -#: forum/models/user.py:259 -msgid "marked an answer" -msgstr "" - -#: forum/models/user.py:261 -#, fuzzy -msgid "edited a question" -msgstr "Post Your Answer" - -#: forum/models/user.py:263 -#, fuzzy -msgid "commented a question" -msgstr "list of all questions" - -#: forum/models/user.py:265 -#, fuzzy -msgid "commented an answer" -msgstr "oldest" - -#: forum/models/user.py:267 -#, fuzzy -msgid "edited an answer" -msgstr "oldest" - -#: forum/models/user.py:269 -#, fuzzy -msgid "received badge" -msgstr "received badge" - -#: forum/settings/__init__.py:20 -msgid "Badges config" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -msgid "Basic Settings" -msgstr "" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -#, fuzzy -msgid "Your site main logo." -msgstr "Your new Email: (will not be shown to anyone, must be valid)" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -#, fuzzy -msgid "Application description" -msgstr "Gold badge is the highest award in this community. To obtain it have to show profound knowledge and ability in addition to your active participation." - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Application intro" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email Settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "The port on which your SMTP server is listening to. Usually this is 25, but can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -#, fuzzy -msgid "Site 'from' email address" -msgstr "Your email (never shared)" - -#: forum/settings/email.py:35 -msgid "The address that will show up on the 'from' field on emails sent by your website." -msgstr "" - -#: forum/settings/email.py:39 -#, fuzzy -msgid "Email subject prefix" -msgstr "Welcome to the Q&A forum" - -#: forum/settings/email.py:40 -msgid "Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -#, fuzzy -msgid "Change this:" -msgstr "Change Email" - -#: forum/settings/minrep.py:4 -#, fuzzy -msgid "Minimum reputation config" -msgstr "karma" - -#: forum/settings/minrep.py:4 -msgid "Configure the minimum reputation required to perform certain actions on your site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -#, fuzzy -msgid "Minimum reputation to vote down" -msgstr "user karma" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -#, fuzzy -msgid "Minimum reputation to comment" -msgstr "user karma" - -#: forum/settings/minrep.py:20 -msgid "The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -#, fuzzy -msgid "Minimum reputation to like a comment" -msgstr "user karma" - -#: forum/settings/minrep.py:24 -msgid "The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "The minimum reputation an user must have to be allowed to close his own question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "The minimum reputation an user must have to be allowed to reopen his own question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "The minimum reputation an user must have to be allowed to retag others questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "The minimum reputation an user must have to be allowed to edit community wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -#, fuzzy -msgid "Minimum reputation to delete comments" -msgstr "user karma" - -#: forum/settings/minrep.py:56 -msgid "The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -#, fuzzy -msgid "Initial reputation" -msgstr "karma" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "Reputation a user gains for having one of the downvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "The filesystem path where uploaded files will be stored. Please note that this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "" - -#: forum/skins/default/templates/404.html:30 -msgid "the page you tried to visit is protected or you don't have sufficient points, see" -msgstr "" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -msgid "see latest questions" -msgstr "" - -#: forum/skins/default/templates/500.html:29 -msgid "see tags" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:14 -msgid "this answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "" - -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -msgid "About" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "Tips" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "Markdown basics" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -msgid "*italic* or __italic__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "" - -#: forum/skins/default/templates/ask.html:64 -msgid "login to post question info" -msgstr "You are welcome to start submitting your question anonymously. When you submit the post, you will be redirected to the login/signup page. Your question will be saved in the current session and will be published after you log in. Login/signup process is very simple. Login takes about 30 seconds, initial signup takes a minute or less." - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "Looks like your email address, %(email)s has not yet been validated. To post messages you must verify your email, please see more details here.
    You can submit your question now and validate email after that. Your question will saved as pending meanwhile. " - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "Login/Signup to Post" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "Ask Your Question" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "" - -#: forum/skins/default/templates/badges.html:6 -msgid "Badges summary" -msgstr "" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "If your questions and answers are highly voted, your contribution to this Q&A community will be recognized with the variety of badges." - -#: forum/skins/default/templates/badges.html:22 -#, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %(feedback_faq_url)s.\n" -" " -msgstr "Currently badges differ only by their level: gold, silver and bronze (their meanings are described on the right). In the future there will be many types of badges at each level. Please give us your feedback - what kinds of badges would you like to see and suggest the activity for which those badges might be awarded." - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "Badge levels" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "Gold badge is the highest award in this community. To obtain it have to show profound knowledge and ability in addition to your active participation." - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "Obtaining silver badge requires significant patience. If you have received one, that means you have greatly contributed to this community." - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:71 -msgid "bronze badge description" -msgstr "If you are an active participant in this community, you will be recognized with this badge." - -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:31 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "" - -#: forum/skins/default/templates/faq.html:17 -msgid "Most importantly - questions should be relevant to this community." -msgstr "" - -#: forum/skins/default/templates/faq.html:18 -msgid "Before asking the question - please make sure to use search to see whether your question has alredy been answered." -msgstr "Before you ask - please make sure to search for a similar question. You can search questions by their title or tags." - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "What kinds of questions should be avoided?" - -#: forum/skins/default/templates/faq.html:22 -msgid "Please avoid asking questions that are not relevant to this community, too subjective and argumentative." -msgstr "" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:28 -msgid "is a Q&A site, not a discussion group. Therefore - please avoid having discussions in your answers, comment facility allows some space for brief discussions." -msgstr "is a question and answer site - it is not a discussion group. Please avoid holding debates in your answers as they tend to dilute the essense of questions and answers. For the brief discussions please use commenting facility." - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "" - -#: forum/skins/default/templates/faq.html:35 -msgid "The reputation system allows users earn the authorization to perform a variety of moderation tasks." -msgstr "Karma system allows users to earn rights to perform a variety of moderation tasks" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "How does karma system work?" - -#: forum/skins/default/templates/faq.html:41 -msgid "Rep system summary" -msgstr "When a question or answer is upvoted, the user who posted them will gain some points, which are called \"karma points\". These points serve as a rough measure of the community trust to him/her. Various moderation tasks are gradually assigned to the users based on those points." - -#: forum/skins/default/templates/faq.html:42 -msgid "For example, if you ask an interesting question or give a helpful answer, your input will be upvoted. On the other hand if the answer is misleading - it will be downvoted. Each vote in favor will generate 10 points, each vote against will subtract 2 points. There is a limit of 200 points that can be accumulated per question or answer. The table below explains reputation point requirements for each type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:57 -msgid "use tags" -msgstr "" - -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:69 -msgid "open and close own questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "" - -#: forum/skins/default/templates/faq.html:87 -msgid "open any closed question" -msgstr "" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "How to validate email and why?" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "

    How? If you have just set or changed your email address - check your email and click the included link.
    The link contains a key generated specifically for you. You can also and check your email again.

    Why? Email validation is required to make sure that only you can post messages on your behalf and to minimize spam posts.
    With email you can subscribe for updates on the most interesting questions. Also, when you sign up for the first time - create a unique gravatar personal image.

    " - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "What is gravatar?" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "Gravatar means globally recognized avatar - your unique avatar image associated with your email address. It's simply a picture that shows next to your posts on the websites that support gravatar protocol. By default gravar appears as a square filled with a snowflake-like figure. You can set your image at gravatar.com" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "" - -#: forum/skins/default/templates/faq.html:115 -msgid "No, you don't have to. You can login through any service that supports OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "So questions and answers can be edited like wiki pages by experienced users of this site and this improves the overall quality of the knowledge base content." -msgstr "" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "" - -#: forum/skins/default/templates/faq.html:128 -#, python-format -msgid "Please ask your question at %(ask_question_url)s, help make our community better!" -msgstr "Please ask your question, help make our community better!" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "privacy" - -#: forum/skins/default/templates/footer.html:18 -msgid "give feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "unanswered" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "" - -#: forum/skins/default/templates/index.html:9 -#, fuzzy -msgid "welcome to " -msgstr "Welcome to Q&A forum" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "" - -#: forum/skins/default/templates/logout.html:19 -msgid "As a registered user you can login with your OpenID, log out of the site or permanently remove your account." -msgstr "Clicking Logout will log you out from the forum, but will not sign you off from your OpenID provider.

    If you wish to sign off completely - please make sure to log out from your OpenID provider as well." - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "Logout Now" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -msgid "posted" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "Respecting users privacy is an important core principle of this Q&A forum. Information on this page details how this forum protects your privacy, and what type of information is collected." - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "Information on question views, revisions of questions and answers - both times and content are recorded for each user in order to correctly count number of views, maintain data integrity and report relevant updates." - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "Members of this community may choose to display personally identifiable information in their profiles. Forum will never display such information without a request from the user." - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "None of the data that is not openly shown on the forum by the choice of the user is shared with any third party." - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "Forum software relies on the internet cookie technology to keep track of user sessions. Cookies must be enabled in your browser so that forum can work for you." - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "These policies may be adjusted to improve protection of user's privacy. Whenever such changes occur, users will be notified via the internal messaging system. " - -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "" - -#: forum/skins/default/templates/question.html:87 -#, python-format -msgid "The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "" - -#: forum/skins/default/templates/question.html:89 -#, python-format -msgid "close date %(closed_at)s" -msgstr "" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "oldest" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "newest" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "most voted" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "" - -#: forum/skins/default/templates/question.html:159 -msgid "Be the first one to answer this question!" -msgstr "" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "You are welcome to answer your own question, but please make sure to give an answer. Remember that you can always revise your original question. Please use comments for discussions and please don't forget to vote :) for the answers that you liked (or perhaps did not like)! " - -#: forum/skins/default/templates/question.html:171 -msgid "please only give an answer, no discussions" -msgstr "Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -msgid "Answer Your Own Question" -msgstr "" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "Post Your Answer" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "Tags" - -#: forum/skins/default/templates/question.html:239 -msgid "question asked" -msgstr "Asked" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "Seen" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "Last updated" - -#: forum/skins/default/templates/question.html:250 -msgid "Related questions" -msgstr "" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "Tips" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, fuzzy, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "provide enough details" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:89 -msgid "tags help us keep Questions organized" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "on " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "" - -#: forum/skins/default/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -msgid "Subscription" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -msgid "You are subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:13 -msgid "You are not subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -#, fuzzy -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "Here (once you log in) you will be able to sign up for the periodic email updates about this question." - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -msgid "keep ignored questions hidden" -msgstr "" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "by popularity" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "" - -#: forum/skins/default/templates/tags.html:42 -msgid "Nothing found" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "These are the external authentication providers currently associated with your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "You currently have no external authentication provider associated with your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "To change your password please fill out and submit this form" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "You can set up a password for your account, so you can login using standard username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -#, fuzzy -msgid "Create password" -msgstr "Password (please retype)" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "New user signup" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "New user signup" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "Please create your screen name and save your email address. Saved email address will let you subscribe for the updates on the most interesting questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "Screen Name (will be shown to others)" - -#: forum/skins/default/templates/auth/complete.html:54 -msgid "Email address label" -msgstr "Email Address (will not be shared with anyone, must be valid)" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "Receive forum updates by email - this will help our community grow and become more useful.
    By default Q&A forum sends up to one email digest per week - only when there is anything new.
    If you like, please adjust this now or any time later from your user account." - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "Signup" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -#, fuzzy -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" -"Sincerely,\n" -"Q&A Forum Administrator" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "User login" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "

    Please select your favorite login method below.

    External login services use OpenID technology, where your password always stays confidential between you and your login provider and you don't have to remember another one. CNPROG option requires your login name and password entered here.

    " - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "Click" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having troubles signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "With the OpenID you don't need to create new username and password." - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "You can safely re-use the same login for all OpenID-enabled websites." - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "There are > 160,000,000 OpenID account in use. Over 10,000 sites are OpenID-enabled." - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "OpenID is based on an open standard, supported by many organizations." - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:8 -msgid "Create login name and password" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "If you prefer, create your forum login name and password here. However, please keep in mind that we also support OpenID login method. With OpenID you can simply reuse your external login (e.g. Gmail or AOL) without ever sharing your login details with anyone and having to remember yet another password." - -#: forum/skins/default/templates/auth/signup.html:31 -msgid "Create Account" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:33 -msgid "return to login page" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot your password,\n" -" here you can request a temporary login key. Fill out your account email and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -#, fuzzy -msgid "Send link" -msgstr "link" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:22 -msgid "I like this comment (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:26 -#, fuzzy -msgid "Edit comment" -msgstr "post a comment" - -#: forum/skins/default/templates/node/comments.html:30 -#, fuzzy -msgid "Delete comment" -msgstr "post a comment" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -#, fuzzy -msgid "add new comment" -msgstr "post a comment" - -#: forum/skins/default/templates/node/comments.html:55 -#, fuzzy -msgid " add comment" -msgstr "post a comment" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -#, fuzzy -msgid "just now" -msgstr "Logout Now" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -#, fuzzy -msgid "On question " -msgstr "Tips" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, fuzzy, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, fuzzy, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)s\n" -" " -msgstr "" -"\n" -"(one comment)" - -#: forum/skins/default/templates/notifications/digest.html:46 -msgid "on your own post(s)" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:50 -#, fuzzy -msgid "an answer was accepted" -msgstr "answer accepted" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -msgid "posted :" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, fuzzy, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" -"\n" -"
    %(q_num)s

    question

    " - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, fuzzy, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" -"\n" -"
    %(q_num)s

    question tagged

    %(tagname)s

    " - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, with title\n" -" %(question_title)s and tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "Your site is running in bootstrap mode, click the button bellow to revert to defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "Your site is running in standard mode, click the button bellow to run in bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:12 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "Tags" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "Tagged questions" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "Recent badges" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "all badges" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "tags" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "gravatar" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:43 -msgid "Screen Name" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "karma" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "member since" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "" - -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "years old" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, python-format -msgid "see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -#, fuzzy -msgid "Notifications and subscription settings" -msgstr "Adjust frequency of email updates. Receive updates on interesting questions by email,
    help the community
    by answering questions of your colleagues. If you do not wish to receive emails - select 'no email' on all items below.
    Updates are only sent when there is any new activity on selected items." - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:36 -#, fuzzy -msgid "A new question is posted" -msgstr "Tips" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -#, fuzzy -msgid "Questions I ask" -msgstr "Tags" - -#: forum/skins/default/templates/users/subscriptions.html:60 -#, fuzzy -msgid "Questions I answer" -msgstr "answer" - -#: forum/skins/default/templates/users/subscriptions.html:63 -#, fuzzy -msgid "Questions I comment" -msgstr "question comment" - -#: forum/skins/default/templates/users/subscriptions.html:68 -#, fuzzy -msgid "Questions I view" -msgstr "Tags" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -#, fuzzy -msgid "An answer is posted" -msgstr "Tips" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -#, fuzzy -msgid "An answer is accepted" -msgstr "answer accepted" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "Notify me when someone replys to one of my comments on any post using the
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "Graph of user karma" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "karma history" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "votes" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -msgid "subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "" - -#: forum/skins/default/templates/users/users.html:35 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -msgid "reputation points" -msgstr "karma" - -#: forum/templatetags/extra_tags.py:248 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "link" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:64 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "" - -#: forum/templatetags/question_list_tags.py:57 -#, fuzzy -msgid "Newest questions are shown first. " -msgstr " " - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "Questions sorted by the number of answers." - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -msgid "this field is required" -msgstr "" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "Choose screen name" - -#: forum/utils/forms.py:52 -msgid "user name is required" -msgstr "" - -#: forum/utils/forms.py:53 -msgid "sorry, this name is taken, please choose another" -msgstr "" - -#: forum/utils/forms.py:54 -msgid "sorry, this name is not allowed, please choose another" -msgstr "" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "Your email (never shared)" - -#: forum/utils/forms.py:106 -msgid "email address is required" -msgstr "" - -#: forum/utils/forms.py:108 -msgid "this email is already used by someone else, please choose another" -msgstr "" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "Password" - -#: forum/utils/forms.py:134 -msgid "password is required" -msgstr "" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "Password (please retype)" - -#: forum/utils/forms.py:138 -msgid "please, retype your password" -msgstr "" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "Sorry, these login credentials belong to anoother user. Plese terminate your current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:239 -msgid "You are logged in with a temporary access key, please take the time to fix your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:282 -#, fuzzy -msgid "New password set" -msgstr "Recover password" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -msgid "vote" -msgid_plural "votes" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:89 -#, python-format -msgid "Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -#, fuzzy -msgid "like comments" -msgstr "post a comment" - -#: forum/views/commands.py:152 -msgid "like" -msgstr "" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -#, fuzzy -msgid "delete comments" -msgstr "post a comment" - -#: forum/views/commands.py:197 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -#, fuzzy -msgid "comment" -msgstr "post a comment" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:230 -#, fuzzy -msgid "edit comments" -msgstr "post a comment" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -#, fuzzy -msgid "accept answers" -msgstr "oldest" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -msgid "delete posts" -msgstr "" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -msgid "Open questions without an accepted answer" -msgstr "" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile overview" -msgstr "" - -#: forum/views/users.py:186 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:186 -msgid "profile - recent activity" -msgstr "" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "user karma" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "Profile - User's Karma" - -#: forum/views/users.py:214 -msgid "favorite questions" -msgstr "" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "" - -#: forum/views/users.py:220 -#, fuzzy -msgid "subscription settings" -msgstr "Adjust frequency of email updates. Receive updates on interesting questions by email,
    help the community
    by answering questions of your colleagues. If you do not wish to receive emails - select 'no email' on all items below.
    Updates are only sent when there is any new activity on selected items." - -#: forum/views/users.py:220 -#, fuzzy -msgid "profile - subscriptions" -msgstr "Profile - User's Karma" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -#, fuzzy -msgid "New subscription settings are now saved" -msgstr "Adjust frequency of email updates. Receive updates on interesting questions by email,
    help the community
    by answering questions of your colleagues. If you do not wish to receive emails - select 'no email' on all items below.
    Updates are only sent when there is any new activity on selected items." - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "sorry, file uploading requires karma >60" - -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:72 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:74 -#, python-format -msgid "Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:85 -msgid "Initial revision" -msgstr "" - -#: forum/views/writers.py:143 -msgid "Retag" -msgstr "" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -msgid "books/" -msgstr "" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, fuzzy, python-format -msgid "Answer voted up %s times" -msgstr "Post Your Answer" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -msgid "First up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -msgid "First accepted answer on your own question" -msgstr "" - -#: forum_modules/default_badges/badges.py:162 -msgid "Completed all user profile fields" -msgstr "" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, python-format -msgid "Left %s comments" -msgstr "" - -#: forum_modules/default_badges/badges.py:192 -#, fuzzy, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "You are welcome to answer your own question, but please make sure to give an answer. Remember that you can always revise your original question. Please use comments for discussions and please don't forget to vote :) for the answers that you liked (or perhaps did not like)! " - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "Answered a question more than %(dif_days)s days later with at least %(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -#, fuzzy -msgid "Nice Question up votes" -msgstr "Tags" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -#, fuzzy -msgid "Good Question up votes" -msgstr "Tags" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -#, fuzzy -msgid "Great Question up votes" -msgstr "Tags" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "The authentication with Facebook connect failed, cannot find authentication tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:92 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -msgid "A validation email has been sent to your email address. " -msgstr "" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" - -#~ msgid "email update message subject" -#~ msgstr "news from Q&A forum" - -#~ msgid "%(name)s, this is an update message header for a question" -#~ msgid_plural "%(name)s, this is an update message header for %(num)d questions" -#~ msgstr[0] "

    Dear %(name)s,

    The following question has been updated on the Q&A forum:

    " -#~ msgstr[1] "

    Dear %(name)s,

    The following %(num)d questions have been updated on the Q&A forum:

    " - -#~ msgid "go to %(link)s to change frequency of email updates or %(email)s administrator" -#~ msgstr "

    Please remember that you can always adjust frequency of the email updates or turn them off entirely.
    If you believe that this message was sent in an error, please email about it the forum administrator at %(email)s.

    Sincerely,

    Your friendly Q&A forum server.

    " - -#~ msgid "Account: change password" -#~ msgstr "Change your password" - -#~ msgid "list of unanswered questions" -#~ msgstr "unanswered questions" - -#~ msgid "Notify me once a day when there are any new answers" -#~ msgstr "Notify me once a day by email when there are any new answers or updates" - -#~ msgid "Notify me weekly when there are any new answers" -#~ msgstr "Notify me weekly when there are any new answers or updates" - -#~ msgid "" -#~ "\n" -#~ " You can always adjust frequency of email updates from your %(profile_url)s\n" -#~ " " -#~ msgstr "" -#~ "\n" -#~ "(note: you can always adjust frequency of email updates)" - -#~ msgid "please ask a relevant question" -#~ msgstr "ask a question relevant to the CNPROG community" - -#~ msgid "" -#~ "\n" -#~ " have total %(q_num)s questions containing %(searchtitle)s in full text\n" -#~ " " -#~ msgid_plural "" -#~ "\n" -#~ " have total %(q_num)s questions containing %(searchtitle)s in full text\n" -#~ " " -#~ msgstr[0] "" -#~ "\n" -#~ "
    %(q_num)s

    question containing %(searchtitle)s

    " -#~ msgstr[1] "" -#~ "\n" -#~ "
    %(q_num)s

    questions containing %(searchtitle)s

    " - -#~ msgid "" -#~ "\n" -#~ " have total %(q_num)s questions containing %(searchtitle)s\n" -#~ " " -#~ msgid_plural "" -#~ "\n" -#~ " have total %(q_num)s questions containing %(searchtitle)s\n" -#~ " " -#~ msgstr[0] "" -#~ "\n" -#~ "
    %(q_num)s

    question with title containing %(searchtitle)s

    " -#~ msgstr[1] "" -#~ "\n" -#~ "
    %(q_num)s

    questions with title containing %(searchtitle)s

    " - -#~ msgid "" -#~ "\n" -#~ " have total %(q_num)s unanswered questions\n" -#~ " " -#~ msgid_plural "" -#~ "\n" -#~ " have total %(q_num)s unanswered questions\n" -#~ " " -#~ msgstr[0] "" -#~ "\n" -#~ "
    %(q_num)s

    question without an accepted answer

    " -#~ msgstr[1] "" -#~ "\n" -#~ "
    %(q_num)s

    questions without an accepted answer

    " - -#~ msgid "latest questions info" -#~ msgstr "Newest questions are shown first." - -#~ msgid "Most recently answered ones are shown first." -#~ msgstr "Most recently answered questions are shown first." - -#~ msgid "Stop sending email" -#~ msgstr "Stop Email" - -#~ msgid "change %(email)s info" -#~ msgstr "Enter your new email into the box below if you'd like to use another email for update subscriptions.
    Currently you are using %(email)s" - -#~ msgid "here is why email is required, see %(gravatar_faq_url)s" -#~ msgstr "Please enter your email address in the box below. Valid email address is required on this Q&A forum. If you like, you can receive updates on interesting questions or entire forum via email. Also, your email is used to create a unique gravatar image for your account. Email addresses are never shown or otherwise shared with anybody else." - -#~ msgid "Your Email" -#~ msgstr "Your Email (must be valid, never shown to others)" - -#~ msgid "validate %(email)s info or go to %(change_email_url)s" -#~ msgstr "An email with a validation link has been sent to %(email)s. Please follow the emailed link with your web browser. Email validation is necessary to help insure the proper use of email on Q&A. If you would like to use another email, please change it again." - -#~ msgid "old %(email)s kept, if you like go to %(change_email_url)s" -#~ msgstr "Your email address %(email)s has not been changed. If you decide to change it later - you can always do it by editing it in your user profile or by using the previous form again." - -#~ msgid "your current %(email)s can be used for this" -#~ msgstr "Your email address is now set to %(email)s. Updates on the questions that you like most will be sent to this address. Email notifications are sent once a day or less frequently - only when there are any news." - -#~ msgid "thanks for verifying email" -#~ msgstr "Thank you for verifying your email! Now you can ask and answer questions. Also if you find a very interesting question you can subscribe for the updates - then will be notified about changes once a day or less frequently." - -#~ msgid "email key not sent" -#~ msgstr "Validation email not sent" - -#~ msgid "email key not sent %(email)s change email here %(change_link)s" -#~ msgstr "Your current email address %(email)s has been validated before so the new key was not sent. You can change email used for update subscriptions if necessary." - -#~ msgid "register new %(provider)s account info, see %(gravatar_faq_url)s" -#~ msgstr "

    You are here for the first time with your %(provider)s login. Please create your screen name and save your email address. Saved email address will let you subscribe for the updates on the most interesting questions and will be used to create and retrieve your unique avatar image - gravatar.

    " - -#~ msgid "" -#~ "%(username)s already exists, choose another name for \n" -#~ " %(provider)s. Email is required too, see %(gravatar_faq_url)s\n" -#~ " " -#~ msgstr "

    Oops... looks like screen name %(username)s is already used in another account.

    Please choose another screen name to use with your %(provider)s login. Also, a valid email address is required on the Q&A forum. Your email is used to create a unique gravatar image for your account. If you like, you can receive updates on the interesting questions or entire forum by email. Email addresses are never shown or otherwise shared with anybody else.

    " - -#~ msgid "register new external %(provider)s account info, see %(gravatar_faq_url)s" -#~ msgstr "

    You are here for the first time with your %(provider)s login.

    You can either keep your screen name the same as your %(provider)s login name or choose some other nickname.

    Also, please save a valid email address. With the email you can subscribe for the updates on the most interesting questions. Email address is also used to create and retrieve your unique avatar image - gravatar.

    " - -#~ msgid "register new Facebook connect account info, see %(gravatar_faq_url)s" -#~ msgstr "

    You are here for the first time with your Facebook login. Please create your screen name and save your email address. Saved email address will let you subscribe for the updates on the most interesting questions and will be used to create and retrieve your unique avatar image - gravatar.

    " - -#~ msgid "password recovery information" -#~ msgstr "Forgot you password? No problems - just get a new one!
    Please follow the following steps:
    • submit your user name below and check your email
    follow the activation link for the new password - sent to you by email and login with the suggested password
    • at this you might want to change your password to something you can remember better" - -#~ msgid "Reset password" -#~ msgstr "Send me a new password" - -#~ msgid "" -#~ "email explanation how to use new %(password)s for %(username)s\n" -#~ "with the %(key_link)s" -#~ msgstr "" -#~ "To change your password, please follow these steps:\n" -#~ "* visit this link: %(key_link)s\n" -#~ "* login with user name %(username)s and password %(password)s\n" -#~ "* go to your user profile and set the password to something you can remember" - -#~ msgid "" -#~ "\n" -#~ " Your answer to %(title)s %(summary)s will be posted once you log in\n" -#~ " " -#~ msgstr "" -#~ "\n" -#~ "Your answer to \"%(title)s %(summary)s...\" is saved and will be posted once you log in." - -#~ msgid "" -#~ "Your question \n" -#~ " %(title)s %(summary)s will be posted once you log in\n" -#~ " " -#~ msgstr "Your question \"%(title)s %(summary)s...\" is saved and will be posted once you log in." - -#~ msgid "Enter your Provider user name" -#~ msgstr "Enter your Provider user name
    (or select another login method above)" - -#~ msgid "Enter your OpenID web address" -#~ msgstr "Enter your OpenID web address
    (or choose another login method above)" - -#~ msgid "Enter your login name and password" -#~ msgstr "Enter your CNPROG login and password
    (or select your OpenID provider above)" - -#~ msgid "subscription saved, %(email)s needs validation, see %(details_url)s" -#~ msgstr "Your subscription is saved, but email address %(email)s needs to be validated, please see more details here" - -#~ msgid "Incorrect username." -#~ msgstr "sorry, there is no such user name" - -#~ msgid "your email needs to be validated see %(details_url)s" -#~ msgstr "Your email needs to be validated. Please see details here." - -#~ msgid "Email verification subject line" -#~ msgstr "Verification Email from Q&A forum" - -#~ msgid "first time greeting with %(url)s" -#~ msgstr "Hello and welcome to OSQA - please join us!" - -#~ msgid "have %(num_q)s unanswered questions" -#~ msgstr "
    %(num_q)s
    questions without accepted answers" - -#~ msgid "" -#~ "\n" -#~ "\t\t\t\thave total %(q_num)s questions\n" -#~ "\t\t\t\t" -#~ msgid_plural "" -#~ "\n" -#~ "\t\t\t\thave total %(q_num)s questions\n" -#~ "\t\t\t\t" -#~ msgstr[0] "" -#~ "\n" -#~ "
    %(q_num)s

    question

    " -#~ msgstr[1] "" -#~ "\n" -#~ "
    %(q_num)s

    questions

    " diff --git a/forum/modules/template_loader.py/locale/es/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/es/LC_MESSAGES/django.mo deleted file mode 100644 index bcf4a26..0000000 Binary files a/forum/modules/template_loader.py/locale/es/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/es/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/es/LC_MESSAGES/django.po deleted file mode 100644 index 57b8ba9..0000000 --- a/forum/modules/template_loader.py/locale/es/LC_MESSAGES/django.po +++ /dev/null @@ -1,4285 +0,0 @@ -# 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 , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-04-28 16:53-0400\n" -"PO-Revision-Date: 2010-04-28 18:14\n" -"Last-Translator: \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Translated-Using: django-rosetta 0.5.3\n" - -#: forum/const.py:8 -msgid "duplicate question" -msgstr "cuestión duplicado" - -#: forum/const.py:9 -msgid "question is off-topic or not relevant" -msgstr "pregunta es fuera de tema o no pertinentes" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "demasiado subjetivo y argumentativo" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "no es una respuesta a la pregunta" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "la pregunta es contestada, respuesta correcta fue aceptada" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "problema no es reproducible o no actualizados" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "cuestión contiene inadecuado ofensivo o los comentarios maliciosos" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "spam o publicidad" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "cuestión" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "respuesta" - -#: forum/const.py:73 -msgid "commented question" -msgstr "comentó cuestión" - -#: forum/const.py:74 -msgid "commented answer" -msgstr "comentó respuesta" - -#: forum/const.py:75 -msgid "edited question" -msgstr "cuestión editado" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "editado respuesta" - -#: forum/const.py:77 -msgid "received award" -msgstr "premio recibido" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "marcada mejor respuesta" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "upvoted" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "downvoted" - -#: forum/const.py:81 -msgid "upvote canceled" -msgstr "upvote cancela" - -#: forum/const.py:82 -msgid "downvote canceled" -msgstr "downvote cancela" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "cuestión eliminado" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "respuesta eliminado" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "marcado ofensiva" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "etiquetas de actualización" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "marcados como favoritos" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "Perfil de usuario completa" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "correo electrónico de actualización enviado al usuario" - -#: forum/const.py:93 -msgid "question_answered" -msgstr "question_answered" - -#: forum/const.py:94 -msgid "question_commented" -msgstr "question_commented" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "answer_commented" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "answer_accepted" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "[Cerrado]" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "[Suprimido]" - -#: forum/const.py:102 -msgid "initial version" -msgstr "versión inicial" - -#: forum/const.py:103 -msgid "retagged" -msgstr "retagged" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "Instantáneamente" - -#: forum/const.py:112 -msgid "Daily" -msgstr "Diario" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "Semanal" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "N notificaciones" - -#: forum/feed.py:18 -msgid " - " -msgstr "" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "" - -#: forum/forms.py:36 -msgid "content" -msgstr "" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "" - -#: forum/forms.py:54 -msgid "Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr "" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "" - -#: forum/forms.py:74 -msgid "please use following characters in tags: letters 'a-z', numbers, and characters '.-_#'" -msgstr "" - -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "" - -#: forum/forms.py:85 -msgid "if you choose community wiki option, the question and answer do not generate points and name of author will not be shown" -msgstr "" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "" - -#: forum/forms.py:102 -msgid "enter a brief summary of your revision (e.g. fixed spelling, grammar, improved style, this field is optional)" -msgstr "" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -msgid "Your name:" -msgstr "" - -#: forum/forms.py:119 -msgid "Email (not shared with anyone):" -msgstr "" - -#: forum/forms.py:120 -msgid "Your message:" -msgstr "" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "" - -#: forum/forms.py:204 -msgid "Screen name" -msgstr "" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "" - -#: forum/forms.py:206 -msgid "Website" -msgstr "" - -#: forum/forms.py:207 -msgid "Location" -msgstr "" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "" - -#: forum/subscriptions.py:41 -#, python-format -msgid "New question on %(app_name)s" -msgstr "" - -#: forum/subscriptions.py:73 -#, python-format -msgid "New answer to '%(question_title)s'" -msgstr "" - -#: forum/subscriptions.py:112 -#, python-format -msgid "New comment on %(question_title)s" -msgstr "" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:49 -msgid "about/" -msgstr "" - -#: forum/urls.py:50 -msgid "faq/" -msgstr "" - -#: forum/urls.py:51 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:52 -msgid "logout/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:54 -msgid "answers/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -msgid "edit/" -msgstr "" - -#: forum/urls.py:54 forum/urls.py:74 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -msgid "questions/" -msgstr "" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -msgid "ask/" -msgstr "" - -#: forum/urls.py:57 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:59 -msgid "close/" -msgstr "" - -#: forum/urls.py:60 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:61 -msgid "answer/" -msgstr "" - -#: forum/urls.py:63 -msgid "vote/" -msgstr "" - -#: forum/urls.py:64 -msgid "like_comment/" -msgstr "" - -#: forum/urls.py:65 -msgid "comment/" -msgstr "" - -#: forum/urls.py:66 -msgid "delete_comment/" -msgstr "" - -#: forum/urls.py:67 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:68 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -msgid "command/" -msgstr "" - -#: forum/urls.py:78 -msgid "question/" -msgstr "" - -#: forum/urls.py:79 forum/urls.py:80 -msgid "tags/" -msgstr "" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -msgid "users/" -msgstr "" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:101 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:102 -msgid "reputation/" -msgstr "" - -#: forum/urls.py:103 -msgid "votes/" -msgstr "" - -#: forum/urls.py:104 -msgid "recent/" -msgstr "" - -#: forum/urls.py:107 forum/urls.py:108 -msgid "badges/" -msgstr "" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -msgid "search/" -msgstr "" - -#: forum/urls.py:115 -msgid "feedback/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -msgid "done/" -msgstr "" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -msgid "remove/" -msgstr "" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -msgid "Your account email" -msgstr "" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -msgid "Current password" -msgstr "" - -#: forum/authentication/forms.py:62 -msgid "Old password is incorrect. Please enter the correct password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -msgid "[closed] " -msgstr "" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -msgid "interesting" -msgstr "" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -msgid "answered" -msgstr "" - -#: forum/models/user.py:259 -msgid "marked an answer" -msgstr "" - -#: forum/models/user.py:261 -msgid "edited a question" -msgstr "" - -#: forum/models/user.py:263 -msgid "commented a question" -msgstr "" - -#: forum/models/user.py:265 -msgid "commented an answer" -msgstr "" - -#: forum/models/user.py:267 -msgid "edited an answer" -msgstr "" - -#: forum/models/user.py:269 -msgid "received badge" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Badges config" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -msgid "Basic Settings" -msgstr "" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -msgid "Your site main logo." -msgstr "" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -msgid "Application description" -msgstr "" - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Application intro" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email Settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "The port on which your SMTP server is listening to. Usually this is 25, but can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -msgid "Site 'from' email address" -msgstr "" - -#: forum/settings/email.py:35 -msgid "The address that will show up on the 'from' field on emails sent by your website." -msgstr "" - -#: forum/settings/email.py:39 -msgid "Email subject prefix" -msgstr "" - -#: forum/settings/email.py:40 -msgid "Every email sent through your website will have the subject prefixed by this string. It's usually a good idea to have such a prefix so your users can easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -msgid "Change this:" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "Minimum reputation config" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "Configure the minimum reputation required to perform certain actions on your site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -msgid "Minimum reputation to vote down" -msgstr "" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -msgid "Minimum reputation to comment" -msgstr "" - -#: forum/settings/minrep.py:20 -msgid "The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -msgid "Minimum reputation to like a comment" -msgstr "" - -#: forum/settings/minrep.py:24 -msgid "The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "The minimum reputation an user must have to be allowed to close his own question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "The minimum reputation an user must have to be allowed to reopen his own question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "The minimum reputation an user must have to be allowed to retag others questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "The minimum reputation an user must have to be allowed to edit community wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -msgid "Minimum reputation to delete comments" -msgstr "" - -#: forum/settings/minrep.py:56 -msgid "The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -msgid "Initial reputation" -msgstr "" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "Reputation a user gains for having one of the downvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "Reputation a user loses by having the last revision of one of his posts flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "The filesystem path where uploaded files will be stored. Please note that this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "The url alias for uploaded files. Notice that if you change this setting, you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "" - -#: forum/skins/default/templates/404.html:30 -msgid "the page you tried to visit is protected or you don't have sufficient points, see" -msgstr "" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -msgid "see latest questions" -msgstr "" - -#: forum/skins/default/templates/500.html:29 -msgid "see tags" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:14 -msgid "this answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "" - -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -msgid "About" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -msgid "*italic* or __italic__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "" - -#: forum/skins/default/templates/ask.html:64 -msgid "login to post question info" -msgstr "" - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "" - -#: forum/skins/default/templates/badges.html:6 -msgid "Badges summary" -msgstr "" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" - -#: forum/skins/default/templates/badges.html:22 -#, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %(feedback_faq_url)s.\n" -" " -msgstr "" - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:71 -msgid "bronze badge description" -msgstr "" - -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:31 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "" - -#: forum/skins/default/templates/faq.html:17 -msgid "Most importantly - questions should be relevant to this community." -msgstr "" - -#: forum/skins/default/templates/faq.html:18 -msgid "Before asking the question - please make sure to use search to see whether your question has alredy been answered." -msgstr "" - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "" - -#: forum/skins/default/templates/faq.html:22 -msgid "Please avoid asking questions that are not relevant to this community, too subjective and argumentative." -msgstr "" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:28 -msgid "is a Q&A site, not a discussion group. Therefore - please avoid having discussions in your answers, comment facility allows some space for brief discussions." -msgstr "" - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "" - -#: forum/skins/default/templates/faq.html:35 -msgid "The reputation system allows users earn the authorization to perform a variety of moderation tasks." -msgstr "" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "" - -#: forum/skins/default/templates/faq.html:41 -msgid "Rep system summary" -msgstr "" - -#: forum/skins/default/templates/faq.html:42 -msgid "For example, if you ask an interesting question or give a helpful answer, your input will be upvoted. On the other hand if the answer is misleading - it will be downvoted. Each vote in favor will generate 10 points, each vote against will subtract 2 points. There is a limit of 200 points that can be accumulated per question or answer. The table below explains reputation point requirements for each type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:57 -msgid "use tags" -msgstr "" - -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:69 -msgid "open and close own questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "" - -#: forum/skins/default/templates/faq.html:87 -msgid "open any closed question" -msgstr "" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "" - -#: forum/skins/default/templates/faq.html:115 -msgid "No, you don't have to. You can login through any service that supports OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "So questions and answers can be edited like wiki pages by experienced users of this site and this improves the overall quality of the knowledge base content." -msgstr "" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "" - -#: forum/skins/default/templates/faq.html:128 -#, python-format -msgid "Please ask your question at %(ask_question_url)s, help make our community better!" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "" - -#: forum/skins/default/templates/footer.html:18 -msgid "give feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "" - -#: forum/skins/default/templates/index.html:9 -msgid "welcome to " -msgstr "" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "" - -#: forum/skins/default/templates/logout.html:19 -msgid "As a registered user you can login with your OpenID, log out of the site or permanently remove your account." -msgstr "" - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -msgid "posted" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "" - -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "" - -#: forum/skins/default/templates/question.html:87 -#, python-format -msgid "The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "" - -#: forum/skins/default/templates/question.html:89 -#, python-format -msgid "close date %(closed_at)s" -msgstr "" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "" - -#: forum/skins/default/templates/question.html:159 -msgid "Be the first one to answer this question!" -msgstr "" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "" - -#: forum/skins/default/templates/question.html:171 -msgid "please only give an answer, no discussions" -msgstr "" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -msgid "Answer Your Own Question" -msgstr "" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "" - -#: forum/skins/default/templates/question.html:239 -msgid "question asked" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "" - -#: forum/skins/default/templates/question.html:250 -msgid "Related questions" -msgstr "" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:89 -msgid "tags help us keep Questions organized" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "on " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "" - -#: forum/skins/default/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -msgid "Subscription" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -msgid "You are subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:13 -msgid "You are not subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -msgid "keep ignored questions hidden" -msgstr "" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "by popularity" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "" - -#: forum/skins/default/templates/tags.html:42 -msgid "Nothing found" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "These are the external authentication providers currently associated with your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "You currently have no external authentication provider associated with your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "You can set up a password for your account, so you can login using standard username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Create password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "Please create your screen name and save your email address. Saved email address will let you subscribe for the updates on the most interesting questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:54 -msgid "Email address label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "Click" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having troubles signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:8 -msgid "Create login name and password" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:31 -msgid "Create Account" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:33 -msgid "return to login page" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot your password,\n" -" here you can request a temporary login key. Fill out your account email and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -msgid "Send link" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:22 -msgid "I like this comment (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:26 -msgid "Edit comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:30 -msgid "Delete comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -msgid "add new comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:55 -msgid " add comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -msgid "just now" -msgstr "" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -msgid "On question " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:46 -msgid "on your own post(s)" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:50 -msgid "an answer was accepted" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -msgid "posted :" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, with title\n" -" %(question_title)s and tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "Your site is running in bootstrap mode, click the button bellow to revert to defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "Your site is running in standard mode, click the button bellow to run in bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "Your site is running with some customized settings, click the buttons bellow to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:12 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:43 -msgid "Screen Name" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "" - -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, python-format -msgid "see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -msgid "Notifications and subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:36 -msgid "A new question is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -msgid "Questions I ask" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:60 -msgid "Questions I answer" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:63 -msgid "Questions I comment" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:68 -msgid "Questions I view" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -msgid "An answer is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -msgid "An answer is accepted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "Notify me when someone replys to one of my comments on any post using the
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -msgid "subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "" - -#: forum/skins/default/templates/users/users.html:35 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -msgid "reputation points" -msgstr "" - -#: forum/templatetags/extra_tags.py:248 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:64 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "" - -#: forum/templatetags/question_list_tags.py:57 -msgid "Newest questions are shown first. " -msgstr "" - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "" - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -msgid "this field is required" -msgstr "" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "" - -#: forum/utils/forms.py:52 -msgid "user name is required" -msgstr "" - -#: forum/utils/forms.py:53 -msgid "sorry, this name is taken, please choose another" -msgstr "" - -#: forum/utils/forms.py:54 -msgid "sorry, this name is not allowed, please choose another" -msgstr "" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "" - -#: forum/utils/forms.py:106 -msgid "email address is required" -msgstr "" - -#: forum/utils/forms.py:108 -msgid "this email is already used by someone else, please choose another" -msgstr "" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "" - -#: forum/utils/forms.py:134 -msgid "password is required" -msgstr "" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "" - -#: forum/utils/forms.py:138 -msgid "please, retype your password" -msgstr "" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "Sorry, these login credentials belong to anoother user. Plese terminate your current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:239 -msgid "You are logged in with a temporary access key, please take the time to fix your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:282 -msgid "New password set" -msgstr "" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -msgid "vote" -msgid_plural "votes" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:89 -#, python-format -msgid "Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -msgid "like comments" -msgstr "" - -#: forum/views/commands.py:152 -msgid "like" -msgstr "" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -msgid "delete comments" -msgstr "" - -#: forum/views/commands.py:197 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -msgid "comment" -msgstr "" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:230 -msgid "edit comments" -msgstr "" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -msgid "accept answers" -msgstr "" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -msgid "delete posts" -msgstr "" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -msgid "Open questions without an accepted answer" -msgstr "" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile overview" -msgstr "" - -#: forum/views/users.py:186 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:186 -msgid "profile - recent activity" -msgstr "" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "" - -#: forum/views/users.py:214 -msgid "favorite questions" -msgstr "" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "" - -#: forum/views/users.py:220 -msgid "subscription settings" -msgstr "" - -#: forum/views/users.py:220 -msgid "profile - subscriptions" -msgstr "" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -msgid "New subscription settings are now saved" -msgstr "" - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "" - -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:72 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:74 -#, python-format -msgid "Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:85 -msgid "Initial revision" -msgstr "" - -#: forum/views/writers.py:143 -msgid "Retag" -msgstr "" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -msgid "books/" -msgstr "" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, python-format -msgid "Answer voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -msgid "First up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -msgid "First accepted answer on your own question" -msgstr "" - -#: forum_modules/default_badges/badges.py:162 -msgid "Completed all user profile fields" -msgstr "" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, python-format -msgid "Left %s comments" -msgstr "" - -#: forum_modules/default_badges/badges.py:192 -#, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "Answered a question more than %(dif_days)s days later with at least %(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -msgid "Nice Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -msgid "Good Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -msgid "Great Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "The authentication with Facebook connect failed, cannot find authentication tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:92 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -msgid "A validation email has been sent to your email address. " -msgstr "" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" diff --git a/forum/modules/template_loader.py/locale/fr/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index 345109f..0000000 Binary files a/forum/modules/template_loader.py/locale/fr/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/fr/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/fr/LC_MESSAGES/django.po deleted file mode 100644 index 7a76e84..0000000 --- a/forum/modules/template_loader.py/locale/fr/LC_MESSAGES/django.po +++ /dev/null @@ -1,4446 +0,0 @@ -# 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 , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-04-28 16:53-0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: forum/const.py:8 -msgid "duplicate question" -msgstr "" - -#: forum/const.py:9 -msgid "question is off-topic or not relevant" -msgstr "" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "" - -#: forum/const.py:73 -msgid "commented question" -msgstr "" - -#: forum/const.py:74 -msgid "commented answer" -msgstr "" - -#: forum/const.py:75 -msgid "edited question" -msgstr "" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "" - -#: forum/const.py:77 -msgid "received award" -msgstr "" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "" - -#: forum/const.py:81 -msgid "upvote canceled" -msgstr "" - -#: forum/const.py:82 -msgid "downvote canceled" -msgstr "" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "" - -#: forum/const.py:93 -msgid "question_answered" -msgstr "" - -#: forum/const.py:94 -msgid "question_commented" -msgstr "" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "" - -#: forum/const.py:102 -msgid "initial version" -msgstr "" - -#: forum/const.py:103 -msgid "retagged" -msgstr "" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "" - -#: forum/const.py:112 -msgid "Daily" -msgstr "" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "" - -#: forum/feed.py:18 -msgid " - " -msgstr "" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "" - -#: forum/forms.py:36 -msgid "content" -msgstr "" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "" - -#: forum/forms.py:54 -msgid "" -"Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr "" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "" - -#: forum/forms.py:74 -msgid "" -"please use following characters in tags: letters 'a-z', numbers, and " -"characters '.-_#'" -msgstr "" - -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "" - -#: forum/forms.py:85 -msgid "" -"if you choose community wiki option, the question and answer do not generate " -"points and name of author will not be shown" -msgstr "" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "" - -#: forum/forms.py:102 -msgid "" -"enter a brief summary of your revision (e.g. fixed spelling, grammar, " -"improved style, this field is optional)" -msgstr "" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -msgid "Your name:" -msgstr "" - -#: forum/forms.py:119 -msgid "Email (not shared with anyone):" -msgstr "" - -#: forum/forms.py:120 -msgid "Your message:" -msgstr "" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "" - -#: forum/forms.py:204 -msgid "Screen name" -msgstr "" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "" - -#: forum/forms.py:206 -msgid "Website" -msgstr "" - -#: forum/forms.py:207 -msgid "Location" -msgstr "" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "" - -#: forum/subscriptions.py:41 -#, python-format -msgid "New question on %(app_name)s" -msgstr "" - -#: forum/subscriptions.py:73 -#, python-format -msgid "New answer to '%(question_title)s'" -msgstr "" - -#: forum/subscriptions.py:112 -#, python-format -msgid "New comment on %(question_title)s" -msgstr "" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:49 -msgid "about/" -msgstr "" - -#: forum/urls.py:50 -msgid "faq/" -msgstr "" - -#: forum/urls.py:51 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:52 -msgid "logout/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:54 -msgid "answers/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -msgid "edit/" -msgstr "" - -#: forum/urls.py:54 forum/urls.py:74 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -msgid "questions/" -msgstr "" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -msgid "ask/" -msgstr "" - -#: forum/urls.py:57 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:59 -msgid "close/" -msgstr "" - -#: forum/urls.py:60 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:61 -msgid "answer/" -msgstr "" - -#: forum/urls.py:63 -msgid "vote/" -msgstr "" - -#: forum/urls.py:64 -msgid "like_comment/" -msgstr "" - -#: forum/urls.py:65 -msgid "comment/" -msgstr "" - -#: forum/urls.py:66 -msgid "delete_comment/" -msgstr "" - -#: forum/urls.py:67 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:68 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -msgid "command/" -msgstr "" - -#: forum/urls.py:78 -msgid "question/" -msgstr "" - -#: forum/urls.py:79 forum/urls.py:80 -msgid "tags/" -msgstr "" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -msgid "users/" -msgstr "" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:101 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:102 -msgid "reputation/" -msgstr "" - -#: forum/urls.py:103 -msgid "votes/" -msgstr "" - -#: forum/urls.py:104 -msgid "recent/" -msgstr "" - -#: forum/urls.py:107 forum/urls.py:108 -msgid "badges/" -msgstr "" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -msgid "search/" -msgstr "" - -#: forum/urls.py:115 -msgid "feedback/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -msgid "done/" -msgstr "" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -msgid "remove/" -msgstr "" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -msgid "Your account email" -msgstr "" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -msgid "Current password" -msgstr "" - -#: forum/authentication/forms.py:62 -msgid "" -"Old password is incorrect. Please enter the correct " -"password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -msgid "[closed] " -msgstr "" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -msgid "interesting" -msgstr "" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -msgid "answered" -msgstr "" - -#: forum/models/user.py:259 -msgid "marked an answer" -msgstr "" - -#: forum/models/user.py:261 -msgid "edited a question" -msgstr "" - -#: forum/models/user.py:263 -msgid "commented a question" -msgstr "" - -#: forum/models/user.py:265 -msgid "commented an answer" -msgstr "" - -#: forum/models/user.py:267 -msgid "edited an answer" -msgstr "" - -#: forum/models/user.py:269 -msgid "received badge" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Badges config" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -msgid "Basic Settings" -msgstr "" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -msgid "Your site main logo." -msgstr "" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -msgid "Application description" -msgstr "" - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Application intro" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "" -"The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email Settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "" -"The port on which your SMTP server is listening to. Usually this is 25, but " -"can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -msgid "Site 'from' email address" -msgstr "" - -#: forum/settings/email.py:35 -msgid "" -"The address that will show up on the 'from' field on emails sent by your " -"website." -msgstr "" - -#: forum/settings/email.py:39 -msgid "Email subject prefix" -msgstr "" - -#: forum/settings/email.py:40 -msgid "" -"Every email sent through your website will have the subject prefixed by this " -"string. It's usually a good idea to have such a prefix so your users can " -"easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "" -"Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "" -"This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "" -"Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -msgid "Change this:" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "Minimum reputation config" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "" -"Configure the minimum reputation required to perform certain actions on your " -"site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -msgid "Minimum reputation to vote down" -msgstr "" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -msgid "Minimum reputation to comment" -msgstr "" - -#: forum/settings/minrep.py:20 -msgid "" -"The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -msgid "Minimum reputation to like a comment" -msgstr "" - -#: forum/settings/minrep.py:24 -msgid "" -"The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "" -"The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "" -"The minimum reputation an user must have to be allowed to close his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "" -"The minimum reputation an user must have to be allowed to reopen his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "" -"The minimum reputation an user must have to be allowed to retag others " -"questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "" -"The minimum reputation an user must have to be allowed to edit community " -"wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "" -"The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "" -"The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -msgid "Minimum reputation to delete comments" -msgstr "" - -#: forum/settings/minrep.py:56 -msgid "" -"The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "" -"Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -msgid "Initial reputation" -msgstr "" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "" -"Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "" -"Reputation a user gains for having one of the downvotes on his posts " -"canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "" -"Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "" -"Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "" -"The filesystem path where uploaded files will be stored. Please note that " -"this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "" -"The url alias for uploaded files. Notice that if you change this setting, " -"you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "" -"How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "" - -#: forum/skins/default/templates/404.html:30 -msgid "" -"the page you tried to visit is protected or you don't have sufficient " -"points, see" -msgstr "" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -msgid "see latest questions" -msgstr "" - -#: forum/skins/default/templates/500.html:29 -msgid "see tags" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:14 -msgid "this answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "" - -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -msgid "About" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -msgid "*italic* or __italic__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "" - -#: forum/skins/default/templates/ask.html:64 -msgid "login to post question info" -msgstr "" - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "" - -#: forum/skins/default/templates/badges.html:6 -msgid "Badges summary" -msgstr "" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" - -#: forum/skins/default/templates/badges.html:22 -#, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %" -"(feedback_faq_url)s.\n" -" " -msgstr "" - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:71 -msgid "bronze badge description" -msgstr "" - -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:31 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "" - -#: forum/skins/default/templates/faq.html:17 -msgid "" -"Most importantly - questions should be relevant to this " -"community." -msgstr "" - -#: forum/skins/default/templates/faq.html:18 -msgid "" -"Before asking the question - please make sure to use search to see whether " -"your question has alredy been answered." -msgstr "" - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "" - -#: forum/skins/default/templates/faq.html:22 -msgid "" -"Please avoid asking questions that are not relevant to this community, too " -"subjective and argumentative." -msgstr "" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:28 -msgid "" -"is a Q&A site, not a discussion group. Therefore - please avoid having " -"discussions in your answers, comment facility allows some space for brief " -"discussions." -msgstr "" - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "" - -#: forum/skins/default/templates/faq.html:35 -msgid "" -"The reputation system allows users earn the authorization to perform a " -"variety of moderation tasks." -msgstr "" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "" - -#: forum/skins/default/templates/faq.html:41 -msgid "Rep system summary" -msgstr "" - -#: forum/skins/default/templates/faq.html:42 -msgid "" -"For example, if you ask an interesting question or give a helpful answer, " -"your input will be upvoted. On the other hand if the answer is misleading - " -"it will be downvoted. Each vote in favor will generate 10 " -"points, each vote against will subtract 2 points. There is " -"a limit of 200 points that can be accumulated per question " -"or answer. The table below explains reputation point requirements for each " -"type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:57 -msgid "use tags" -msgstr "" - -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:69 -msgid "open and close own questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "" - -#: forum/skins/default/templates/faq.html:87 -msgid "open any closed question" -msgstr "" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "" -"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "" - -#: forum/skins/default/templates/faq.html:115 -msgid "" -"No, you don't have to. You can login through any service that supports " -"OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "" -"So questions and answers can be edited like wiki pages by experienced users " -"of this site and this improves the overall quality of the knowledge base " -"content." -msgstr "" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "" - -#: forum/skins/default/templates/faq.html:128 -#, python-format -msgid "" -"Please ask your question at %(ask_question_url)s, help make our community " -"better!" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look " -"forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to " -"hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "" - -#: forum/skins/default/templates/footer.html:18 -msgid "give feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "" - -#: forum/skins/default/templates/index.html:9 -msgid "welcome to " -msgstr "" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "" - -#: forum/skins/default/templates/logout.html:19 -msgid "" -"As a registered user you can login with your OpenID, log out of the site or " -"permanently remove your account." -msgstr "" - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -msgid "posted" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "" - -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "" - -#: forum/skins/default/templates/question.html:87 -#, python-format -msgid "" -"The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "" - -#: forum/skins/default/templates/question.html:89 -#, python-format -msgid "close date %(closed_at)s" -msgstr "" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "" - -#: forum/skins/default/templates/question.html:159 -msgid "Be the first one to answer this question!" -msgstr "" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "" - -#: forum/skins/default/templates/question.html:171 -msgid "please only give an answer, no discussions" -msgstr "" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -msgid "Answer Your Own Question" -msgstr "" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "" - -#: forum/skins/default/templates/question.html:239 -msgid "question asked" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "" - -#: forum/skins/default/templates/question.html:250 -msgid "Related questions" -msgstr "" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:89 -msgid "tags help us keep Questions organized" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "on " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "" - -#: forum/skins/default/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -msgid "Subscription" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -msgid "You are subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:13 -msgid "You are not subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -msgid "keep ignored questions hidden" -msgstr "" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "by popularity" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "" - -#: forum/skins/default/templates/tags.html:42 -msgid "Nothing found" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "" -"These are the external authentication providers currently associated with " -"your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "" -"You currently have no external authentication provider associated with your " -"account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "" -"You can set up a password for your account, so you can login using standard " -"username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Create password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "" -"Please create your screen name and save your email address. Saved email " -"address will let you subscribe for the updates on the most interesting " -"questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:54 -msgid "Email address label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "Click" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having troubles signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:8 -msgid "Create login name and password" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:31 -msgid "Create Account" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:33 -msgid "return to login page" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot " -"your password,\n" -" here you can request a temporary login key. Fill out your account email " -"and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once " -"and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -msgid "Send link" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:22 -msgid "I like this comment (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:26 -msgid "Edit comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:30 -msgid "Delete comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -msgid "add new comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:55 -msgid " add comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)" -"s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -msgid "just now" -msgstr "" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %" -"(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %" -"(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -msgid "On question " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)" -"s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:46 -msgid "on your own post(s)" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:50 -msgid "an answer was accepted" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -msgid "posted :" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the " -"question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %" -"(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %" -"(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %" -"(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, " -"with title\n" -" %(question_title)s and " -"tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "" -"Your site is running in bootstrap mode, click the button bellow to revert to " -"defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "" -"Your site is running in standard mode, click the button bellow to run in " -"bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "" -"Your site is running with some customized settings, click the buttons bellow " -"to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:12 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:43 -msgid "Screen Name" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "" - -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, python-format -msgid "" -"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -msgid "Notifications and subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to " -"receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all " -"notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them " -"clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:36 -msgid "A new question is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -msgid "Questions I ask" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:60 -msgid "Questions I answer" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:63 -msgid "Questions I comment" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:68 -msgid "Questions I view" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -msgid "An answer is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -msgid "An answer is accepted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "" -"Notify me when someone replys to one of my comments on any post using the " -"
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -msgid "subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "" - -#: forum/skins/default/templates/users/users.html:35 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -msgid "reputation points" -msgstr "" - -#: forum/templatetags/extra_tags.py:248 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:64 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "" -"report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "" - -#: forum/templatetags/question_list_tags.py:57 -msgid "Newest questions are shown first. " -msgstr "" - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "" - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -msgid "this field is required" -msgstr "" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "" - -#: forum/utils/forms.py:52 -msgid "user name is required" -msgstr "" - -#: forum/utils/forms.py:53 -msgid "sorry, this name is taken, please choose another" -msgstr "" - -#: forum/utils/forms.py:54 -msgid "sorry, this name is not allowed, please choose another" -msgstr "" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "" - -#: forum/utils/forms.py:106 -msgid "email address is required" -msgstr "" - -#: forum/utils/forms.py:108 -msgid "this email is already used by someone else, please choose another" -msgstr "" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "" - -#: forum/utils/forms.py:134 -msgid "password is required" -msgstr "" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "" - -#: forum/utils/forms.py:138 -msgid "please, retype your password" -msgstr "" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "" -"Sorry, these login credentials belong to anoother user. Plese terminate your " -"current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:239 -msgid "" -"You are logged in with a temporary access key, please take the time to fix " -"your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:282 -msgid "New password set" -msgstr "" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s." -"
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the
    faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -msgid "vote" -msgid_plural "votes" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:89 -#, python-format -msgid "" -"Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the " -"original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -msgid "like comments" -msgstr "" - -#: forum/views/commands.py:152 -msgid "like" -msgstr "" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -msgid "delete comments" -msgstr "" - -#: forum/views/commands.py:197 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -msgid "comment" -msgstr "" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:230 -msgid "edit comments" -msgstr "" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -msgid "accept answers" -msgstr "" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -msgid "delete posts" -msgstr "" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -msgid "Open questions without an accepted answer" -msgstr "" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile overview" -msgstr "" - -#: forum/views/users.py:186 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:186 -msgid "profile - recent activity" -msgstr "" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "" - -#: forum/views/users.py:214 -msgid "favorite questions" -msgstr "" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "" - -#: forum/views/users.py:220 -msgid "subscription settings" -msgstr "" - -#: forum/views/users.py:220 -msgid "profile - subscriptions" -msgstr "" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -msgid "New subscription settings are now saved" -msgstr "" - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "" - -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:72 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:74 -#, python-format -msgid "" -"Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:85 -msgid "Initial revision" -msgstr "" - -#: forum/views/writers.py:143 -msgid "Retag" -msgstr "" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -msgid "books/" -msgstr "" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, python-format -msgid "Answer voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -msgid "First up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -msgid "First accepted answer on your own question" -msgstr "" - -#: forum_modules/default_badges/badges.py:162 -msgid "Completed all user profile fields" -msgstr "" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, python-format -msgid "Left %s comments" -msgstr "" - -#: forum_modules/default_badges/badges.py:192 -#, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "" -"Answered a question more than %(dif_days)s days later with at least %" -"(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -msgid "Nice Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -msgid "Good Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -msgid "Great Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an " -"author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to " -"an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the " -"author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the " -"Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the " -"Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for " -"the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the " -"Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "" -"The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "" -"The authentication with Facebook connect failed, cannot find authentication " -"tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:92 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -msgid "A validation email has been sent to your email address. " -msgstr "" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" diff --git a/forum/modules/template_loader.py/locale/l/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/l/LC_MESSAGES/django.mo deleted file mode 100644 index 345109f..0000000 Binary files a/forum/modules/template_loader.py/locale/l/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/l/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/l/LC_MESSAGES/django.po deleted file mode 100644 index 7a76e84..0000000 --- a/forum/modules/template_loader.py/locale/l/LC_MESSAGES/django.po +++ /dev/null @@ -1,4446 +0,0 @@ -# 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 , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-04-28 16:53-0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: forum/const.py:8 -msgid "duplicate question" -msgstr "" - -#: forum/const.py:9 -msgid "question is off-topic or not relevant" -msgstr "" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "" - -#: forum/const.py:73 -msgid "commented question" -msgstr "" - -#: forum/const.py:74 -msgid "commented answer" -msgstr "" - -#: forum/const.py:75 -msgid "edited question" -msgstr "" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "" - -#: forum/const.py:77 -msgid "received award" -msgstr "" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "" - -#: forum/const.py:81 -msgid "upvote canceled" -msgstr "" - -#: forum/const.py:82 -msgid "downvote canceled" -msgstr "" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "" - -#: forum/const.py:93 -msgid "question_answered" -msgstr "" - -#: forum/const.py:94 -msgid "question_commented" -msgstr "" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "" - -#: forum/const.py:102 -msgid "initial version" -msgstr "" - -#: forum/const.py:103 -msgid "retagged" -msgstr "" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "" - -#: forum/const.py:112 -msgid "Daily" -msgstr "" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "" - -#: forum/feed.py:18 -msgid " - " -msgstr "" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "" - -#: forum/forms.py:36 -msgid "content" -msgstr "" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "" - -#: forum/forms.py:54 -msgid "" -"Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr "" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "" - -#: forum/forms.py:74 -msgid "" -"please use following characters in tags: letters 'a-z', numbers, and " -"characters '.-_#'" -msgstr "" - -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "" - -#: forum/forms.py:85 -msgid "" -"if you choose community wiki option, the question and answer do not generate " -"points and name of author will not be shown" -msgstr "" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "" - -#: forum/forms.py:102 -msgid "" -"enter a brief summary of your revision (e.g. fixed spelling, grammar, " -"improved style, this field is optional)" -msgstr "" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -msgid "Your name:" -msgstr "" - -#: forum/forms.py:119 -msgid "Email (not shared with anyone):" -msgstr "" - -#: forum/forms.py:120 -msgid "Your message:" -msgstr "" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "" - -#: forum/forms.py:204 -msgid "Screen name" -msgstr "" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "" - -#: forum/forms.py:206 -msgid "Website" -msgstr "" - -#: forum/forms.py:207 -msgid "Location" -msgstr "" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "" - -#: forum/subscriptions.py:41 -#, python-format -msgid "New question on %(app_name)s" -msgstr "" - -#: forum/subscriptions.py:73 -#, python-format -msgid "New answer to '%(question_title)s'" -msgstr "" - -#: forum/subscriptions.py:112 -#, python-format -msgid "New comment on %(question_title)s" -msgstr "" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:49 -msgid "about/" -msgstr "" - -#: forum/urls.py:50 -msgid "faq/" -msgstr "" - -#: forum/urls.py:51 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:52 -msgid "logout/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:54 -msgid "answers/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -msgid "edit/" -msgstr "" - -#: forum/urls.py:54 forum/urls.py:74 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -msgid "questions/" -msgstr "" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -msgid "ask/" -msgstr "" - -#: forum/urls.py:57 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:59 -msgid "close/" -msgstr "" - -#: forum/urls.py:60 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:61 -msgid "answer/" -msgstr "" - -#: forum/urls.py:63 -msgid "vote/" -msgstr "" - -#: forum/urls.py:64 -msgid "like_comment/" -msgstr "" - -#: forum/urls.py:65 -msgid "comment/" -msgstr "" - -#: forum/urls.py:66 -msgid "delete_comment/" -msgstr "" - -#: forum/urls.py:67 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:68 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -msgid "command/" -msgstr "" - -#: forum/urls.py:78 -msgid "question/" -msgstr "" - -#: forum/urls.py:79 forum/urls.py:80 -msgid "tags/" -msgstr "" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -msgid "users/" -msgstr "" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:101 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:102 -msgid "reputation/" -msgstr "" - -#: forum/urls.py:103 -msgid "votes/" -msgstr "" - -#: forum/urls.py:104 -msgid "recent/" -msgstr "" - -#: forum/urls.py:107 forum/urls.py:108 -msgid "badges/" -msgstr "" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -msgid "search/" -msgstr "" - -#: forum/urls.py:115 -msgid "feedback/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -msgid "done/" -msgstr "" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -msgid "remove/" -msgstr "" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -msgid "Your account email" -msgstr "" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -msgid "Current password" -msgstr "" - -#: forum/authentication/forms.py:62 -msgid "" -"Old password is incorrect. Please enter the correct " -"password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -msgid "[closed] " -msgstr "" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -msgid "interesting" -msgstr "" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -msgid "answered" -msgstr "" - -#: forum/models/user.py:259 -msgid "marked an answer" -msgstr "" - -#: forum/models/user.py:261 -msgid "edited a question" -msgstr "" - -#: forum/models/user.py:263 -msgid "commented a question" -msgstr "" - -#: forum/models/user.py:265 -msgid "commented an answer" -msgstr "" - -#: forum/models/user.py:267 -msgid "edited an answer" -msgstr "" - -#: forum/models/user.py:269 -msgid "received badge" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Badges config" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -msgid "Basic Settings" -msgstr "" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -msgid "Your site main logo." -msgstr "" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -msgid "Application description" -msgstr "" - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Application intro" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "" -"The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email Settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "" -"The port on which your SMTP server is listening to. Usually this is 25, but " -"can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -msgid "Site 'from' email address" -msgstr "" - -#: forum/settings/email.py:35 -msgid "" -"The address that will show up on the 'from' field on emails sent by your " -"website." -msgstr "" - -#: forum/settings/email.py:39 -msgid "Email subject prefix" -msgstr "" - -#: forum/settings/email.py:40 -msgid "" -"Every email sent through your website will have the subject prefixed by this " -"string. It's usually a good idea to have such a prefix so your users can " -"easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "" -"Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "" -"This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "" -"Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -msgid "Change this:" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "Minimum reputation config" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "" -"Configure the minimum reputation required to perform certain actions on your " -"site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -msgid "Minimum reputation to vote down" -msgstr "" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -msgid "Minimum reputation to comment" -msgstr "" - -#: forum/settings/minrep.py:20 -msgid "" -"The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -msgid "Minimum reputation to like a comment" -msgstr "" - -#: forum/settings/minrep.py:24 -msgid "" -"The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "" -"The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "" -"The minimum reputation an user must have to be allowed to close his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "" -"The minimum reputation an user must have to be allowed to reopen his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "" -"The minimum reputation an user must have to be allowed to retag others " -"questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "" -"The minimum reputation an user must have to be allowed to edit community " -"wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "" -"The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "" -"The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -msgid "Minimum reputation to delete comments" -msgstr "" - -#: forum/settings/minrep.py:56 -msgid "" -"The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "" -"Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -msgid "Initial reputation" -msgstr "" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "" -"Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "" -"Reputation a user gains for having one of the downvotes on his posts " -"canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "" -"Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "" -"Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "" -"The filesystem path where uploaded files will be stored. Please note that " -"this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "" -"The url alias for uploaded files. Notice that if you change this setting, " -"you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "" -"How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "" - -#: forum/skins/default/templates/404.html:30 -msgid "" -"the page you tried to visit is protected or you don't have sufficient " -"points, see" -msgstr "" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -msgid "see latest questions" -msgstr "" - -#: forum/skins/default/templates/500.html:29 -msgid "see tags" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:14 -msgid "this answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "" - -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -msgid "About" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -msgid "*italic* or __italic__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "" - -#: forum/skins/default/templates/ask.html:64 -msgid "login to post question info" -msgstr "" - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "" - -#: forum/skins/default/templates/badges.html:6 -msgid "Badges summary" -msgstr "" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" - -#: forum/skins/default/templates/badges.html:22 -#, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %" -"(feedback_faq_url)s.\n" -" " -msgstr "" - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:71 -msgid "bronze badge description" -msgstr "" - -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:31 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "" - -#: forum/skins/default/templates/faq.html:17 -msgid "" -"Most importantly - questions should be relevant to this " -"community." -msgstr "" - -#: forum/skins/default/templates/faq.html:18 -msgid "" -"Before asking the question - please make sure to use search to see whether " -"your question has alredy been answered." -msgstr "" - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "" - -#: forum/skins/default/templates/faq.html:22 -msgid "" -"Please avoid asking questions that are not relevant to this community, too " -"subjective and argumentative." -msgstr "" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:28 -msgid "" -"is a Q&A site, not a discussion group. Therefore - please avoid having " -"discussions in your answers, comment facility allows some space for brief " -"discussions." -msgstr "" - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "" - -#: forum/skins/default/templates/faq.html:35 -msgid "" -"The reputation system allows users earn the authorization to perform a " -"variety of moderation tasks." -msgstr "" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "" - -#: forum/skins/default/templates/faq.html:41 -msgid "Rep system summary" -msgstr "" - -#: forum/skins/default/templates/faq.html:42 -msgid "" -"For example, if you ask an interesting question or give a helpful answer, " -"your input will be upvoted. On the other hand if the answer is misleading - " -"it will be downvoted. Each vote in favor will generate 10 " -"points, each vote against will subtract 2 points. There is " -"a limit of 200 points that can be accumulated per question " -"or answer. The table below explains reputation point requirements for each " -"type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:57 -msgid "use tags" -msgstr "" - -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:69 -msgid "open and close own questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "" - -#: forum/skins/default/templates/faq.html:87 -msgid "open any closed question" -msgstr "" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "" -"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "" - -#: forum/skins/default/templates/faq.html:115 -msgid "" -"No, you don't have to. You can login through any service that supports " -"OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "" -"So questions and answers can be edited like wiki pages by experienced users " -"of this site and this improves the overall quality of the knowledge base " -"content." -msgstr "" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "" - -#: forum/skins/default/templates/faq.html:128 -#, python-format -msgid "" -"Please ask your question at %(ask_question_url)s, help make our community " -"better!" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look " -"forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to " -"hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "" - -#: forum/skins/default/templates/footer.html:18 -msgid "give feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "" - -#: forum/skins/default/templates/index.html:9 -msgid "welcome to " -msgstr "" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "" - -#: forum/skins/default/templates/logout.html:19 -msgid "" -"As a registered user you can login with your OpenID, log out of the site or " -"permanently remove your account." -msgstr "" - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -msgid "posted" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "" - -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "" - -#: forum/skins/default/templates/question.html:87 -#, python-format -msgid "" -"The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "" - -#: forum/skins/default/templates/question.html:89 -#, python-format -msgid "close date %(closed_at)s" -msgstr "" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "" - -#: forum/skins/default/templates/question.html:159 -msgid "Be the first one to answer this question!" -msgstr "" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "" - -#: forum/skins/default/templates/question.html:171 -msgid "please only give an answer, no discussions" -msgstr "" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -msgid "Answer Your Own Question" -msgstr "" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "" - -#: forum/skins/default/templates/question.html:239 -msgid "question asked" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "" - -#: forum/skins/default/templates/question.html:250 -msgid "Related questions" -msgstr "" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:89 -msgid "tags help us keep Questions organized" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "on " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "" - -#: forum/skins/default/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -msgid "Subscription" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -msgid "You are subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:13 -msgid "You are not subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -msgid "keep ignored questions hidden" -msgstr "" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "by popularity" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "" - -#: forum/skins/default/templates/tags.html:42 -msgid "Nothing found" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "" -"These are the external authentication providers currently associated with " -"your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "" -"You currently have no external authentication provider associated with your " -"account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "" -"You can set up a password for your account, so you can login using standard " -"username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Create password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "" -"Please create your screen name and save your email address. Saved email " -"address will let you subscribe for the updates on the most interesting " -"questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:54 -msgid "Email address label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "Click" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having troubles signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:8 -msgid "Create login name and password" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:31 -msgid "Create Account" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:33 -msgid "return to login page" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot " -"your password,\n" -" here you can request a temporary login key. Fill out your account email " -"and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once " -"and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -msgid "Send link" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:22 -msgid "I like this comment (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:26 -msgid "Edit comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:30 -msgid "Delete comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -msgid "add new comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:55 -msgid " add comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)" -"s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -msgid "just now" -msgstr "" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %" -"(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %" -"(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -msgid "On question " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)" -"s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:46 -msgid "on your own post(s)" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:50 -msgid "an answer was accepted" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -msgid "posted :" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the " -"question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %" -"(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %" -"(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %" -"(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, " -"with title\n" -" %(question_title)s and " -"tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "" -"Your site is running in bootstrap mode, click the button bellow to revert to " -"defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "" -"Your site is running in standard mode, click the button bellow to run in " -"bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "" -"Your site is running with some customized settings, click the buttons bellow " -"to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:12 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:43 -msgid "Screen Name" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "" - -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, python-format -msgid "" -"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -msgid "Notifications and subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to " -"receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all " -"notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them " -"clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:36 -msgid "A new question is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -msgid "Questions I ask" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:60 -msgid "Questions I answer" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:63 -msgid "Questions I comment" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:68 -msgid "Questions I view" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -msgid "An answer is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -msgid "An answer is accepted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "" -"Notify me when someone replys to one of my comments on any post using the " -"
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -msgid "subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "" - -#: forum/skins/default/templates/users/users.html:35 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -msgid "reputation points" -msgstr "" - -#: forum/templatetags/extra_tags.py:248 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:64 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "" -"report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "" - -#: forum/templatetags/question_list_tags.py:57 -msgid "Newest questions are shown first. " -msgstr "" - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "" - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -msgid "this field is required" -msgstr "" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "" - -#: forum/utils/forms.py:52 -msgid "user name is required" -msgstr "" - -#: forum/utils/forms.py:53 -msgid "sorry, this name is taken, please choose another" -msgstr "" - -#: forum/utils/forms.py:54 -msgid "sorry, this name is not allowed, please choose another" -msgstr "" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "" - -#: forum/utils/forms.py:106 -msgid "email address is required" -msgstr "" - -#: forum/utils/forms.py:108 -msgid "this email is already used by someone else, please choose another" -msgstr "" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "" - -#: forum/utils/forms.py:134 -msgid "password is required" -msgstr "" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "" - -#: forum/utils/forms.py:138 -msgid "please, retype your password" -msgstr "" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "" -"Sorry, these login credentials belong to anoother user. Plese terminate your " -"current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:239 -msgid "" -"You are logged in with a temporary access key, please take the time to fix " -"your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:282 -msgid "New password set" -msgstr "" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s." -"
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the
    faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -msgid "vote" -msgid_plural "votes" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:89 -#, python-format -msgid "" -"Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the " -"original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -msgid "like comments" -msgstr "" - -#: forum/views/commands.py:152 -msgid "like" -msgstr "" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -msgid "delete comments" -msgstr "" - -#: forum/views/commands.py:197 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -msgid "comment" -msgstr "" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:230 -msgid "edit comments" -msgstr "" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -msgid "accept answers" -msgstr "" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -msgid "delete posts" -msgstr "" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -msgid "Open questions without an accepted answer" -msgstr "" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile overview" -msgstr "" - -#: forum/views/users.py:186 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:186 -msgid "profile - recent activity" -msgstr "" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "" - -#: forum/views/users.py:214 -msgid "favorite questions" -msgstr "" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "" - -#: forum/views/users.py:220 -msgid "subscription settings" -msgstr "" - -#: forum/views/users.py:220 -msgid "profile - subscriptions" -msgstr "" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -msgid "New subscription settings are now saved" -msgstr "" - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "" - -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:72 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:74 -#, python-format -msgid "" -"Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:85 -msgid "Initial revision" -msgstr "" - -#: forum/views/writers.py:143 -msgid "Retag" -msgstr "" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -msgid "books/" -msgstr "" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, python-format -msgid "Answer voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -msgid "First up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -msgid "First accepted answer on your own question" -msgstr "" - -#: forum_modules/default_badges/badges.py:162 -msgid "Completed all user profile fields" -msgstr "" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, python-format -msgid "Left %s comments" -msgstr "" - -#: forum_modules/default_badges/badges.py:192 -#, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "" -"Answered a question more than %(dif_days)s days later with at least %" -"(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -msgid "Nice Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -msgid "Good Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -msgid "Great Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an " -"author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to " -"an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the " -"author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the " -"Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the " -"Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for " -"the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the " -"Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "" -"The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "" -"The authentication with Facebook connect failed, cannot find authentication " -"tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:92 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -msgid "A validation email has been sent to your email address. " -msgstr "" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" diff --git a/forum/modules/template_loader.py/locale/phrases.py b/forum/modules/template_loader.py/locale/phrases.py deleted file mode 100644 index be378cc..0000000 --- a/forum/modules/template_loader.py/locale/phrases.py +++ /dev/null @@ -1,4 +0,0 @@ -_("Test Phrase 1") -_("Test Phrase 2") -_("Test Phrase 3") -_("Test Phrase n") \ No newline at end of file diff --git a/forum/modules/template_loader.py/locale/pt/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/pt/LC_MESSAGES/django.mo deleted file mode 100644 index 345109f..0000000 Binary files a/forum/modules/template_loader.py/locale/pt/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/pt/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/pt/LC_MESSAGES/django.po deleted file mode 100644 index 7a76e84..0000000 --- a/forum/modules/template_loader.py/locale/pt/LC_MESSAGES/django.po +++ /dev/null @@ -1,4446 +0,0 @@ -# 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 , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-04-28 16:53-0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: forum/const.py:8 -msgid "duplicate question" -msgstr "" - -#: forum/const.py:9 -msgid "question is off-topic or not relevant" -msgstr "" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "" - -#: forum/const.py:73 -msgid "commented question" -msgstr "" - -#: forum/const.py:74 -msgid "commented answer" -msgstr "" - -#: forum/const.py:75 -msgid "edited question" -msgstr "" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "" - -#: forum/const.py:77 -msgid "received award" -msgstr "" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "" - -#: forum/const.py:81 -msgid "upvote canceled" -msgstr "" - -#: forum/const.py:82 -msgid "downvote canceled" -msgstr "" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "" - -#: forum/const.py:93 -msgid "question_answered" -msgstr "" - -#: forum/const.py:94 -msgid "question_commented" -msgstr "" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "" - -#: forum/const.py:102 -msgid "initial version" -msgstr "" - -#: forum/const.py:103 -msgid "retagged" -msgstr "" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "" - -#: forum/const.py:112 -msgid "Daily" -msgstr "" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "" - -#: forum/feed.py:18 -msgid " - " -msgstr "" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "" - -#: forum/forms.py:36 -msgid "content" -msgstr "" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "" - -#: forum/forms.py:54 -msgid "" -"Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr "" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "" - -#: forum/forms.py:74 -msgid "" -"please use following characters in tags: letters 'a-z', numbers, and " -"characters '.-_#'" -msgstr "" - -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "" - -#: forum/forms.py:85 -msgid "" -"if you choose community wiki option, the question and answer do not generate " -"points and name of author will not be shown" -msgstr "" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "" - -#: forum/forms.py:102 -msgid "" -"enter a brief summary of your revision (e.g. fixed spelling, grammar, " -"improved style, this field is optional)" -msgstr "" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -msgid "Your name:" -msgstr "" - -#: forum/forms.py:119 -msgid "Email (not shared with anyone):" -msgstr "" - -#: forum/forms.py:120 -msgid "Your message:" -msgstr "" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "" - -#: forum/forms.py:204 -msgid "Screen name" -msgstr "" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "" - -#: forum/forms.py:206 -msgid "Website" -msgstr "" - -#: forum/forms.py:207 -msgid "Location" -msgstr "" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "" - -#: forum/subscriptions.py:41 -#, python-format -msgid "New question on %(app_name)s" -msgstr "" - -#: forum/subscriptions.py:73 -#, python-format -msgid "New answer to '%(question_title)s'" -msgstr "" - -#: forum/subscriptions.py:112 -#, python-format -msgid "New comment on %(question_title)s" -msgstr "" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -msgid "upfiles/" -msgstr "" - -#: forum/urls.py:49 -msgid "about/" -msgstr "" - -#: forum/urls.py:50 -msgid "faq/" -msgstr "" - -#: forum/urls.py:51 -msgid "privacy/" -msgstr "" - -#: forum/urls.py:52 -msgid "logout/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:54 -msgid "answers/" -msgstr "" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -msgid "edit/" -msgstr "" - -#: forum/urls.py:54 forum/urls.py:74 -msgid "revisions/" -msgstr "" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -msgid "questions/" -msgstr "" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -msgid "ask/" -msgstr "" - -#: forum/urls.py:57 -msgid "unanswered/" -msgstr "" - -#: forum/urls.py:59 -msgid "close/" -msgstr "" - -#: forum/urls.py:60 -msgid "reopen/" -msgstr "" - -#: forum/urls.py:61 -msgid "answer/" -msgstr "" - -#: forum/urls.py:63 -msgid "vote/" -msgstr "" - -#: forum/urls.py:64 -msgid "like_comment/" -msgstr "" - -#: forum/urls.py:65 -msgid "comment/" -msgstr "" - -#: forum/urls.py:66 -msgid "delete_comment/" -msgstr "" - -#: forum/urls.py:67 -msgid "accept_answer/" -msgstr "" - -#: forum/urls.py:68 -msgid "mark_favorite/" -msgstr "" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -msgid "command/" -msgstr "" - -#: forum/urls.py:78 -msgid "question/" -msgstr "" - -#: forum/urls.py:79 forum/urls.py:80 -msgid "tags/" -msgstr "" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -msgid "users/" -msgstr "" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -msgid "subscriptions/" -msgstr "" - -#: forum/urls.py:101 -msgid "favorites/" -msgstr "" - -#: forum/urls.py:102 -msgid "reputation/" -msgstr "" - -#: forum/urls.py:103 -msgid "votes/" -msgstr "" - -#: forum/urls.py:104 -msgid "recent/" -msgstr "" - -#: forum/urls.py:107 forum/urls.py:108 -msgid "badges/" -msgstr "" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -msgid "search/" -msgstr "" - -#: forum/urls.py:115 -msgid "feedback/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -msgid "account/" -msgstr "" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -msgid "done/" -msgstr "" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -msgid "register/" -msgstr "" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -msgid "authsettings/" -msgstr "" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -msgid "remove/" -msgstr "" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -msgid "Your account email" -msgstr "" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -msgid "Current password" -msgstr "" - -#: forum/authentication/forms.py:62 -msgid "" -"Old password is incorrect. Please enter the correct " -"password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -msgid "[closed] " -msgstr "" - -#: forum/models/question.py:33 -msgid "[deleted] " -msgstr "" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -msgid "interesting" -msgstr "" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -msgid "answered" -msgstr "" - -#: forum/models/user.py:259 -msgid "marked an answer" -msgstr "" - -#: forum/models/user.py:261 -msgid "edited a question" -msgstr "" - -#: forum/models/user.py:263 -msgid "commented a question" -msgstr "" - -#: forum/models/user.py:265 -msgid "commented an answer" -msgstr "" - -#: forum/models/user.py:267 -msgid "edited an answer" -msgstr "" - -#: forum/models/user.py:269 -msgid "received badge" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Badges config" -msgstr "" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -msgid "Basic Settings" -msgstr "" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -msgid "Your site main logo." -msgstr "" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -msgid "Application title" -msgstr "" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -msgid "Application short name" -msgstr "" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -msgid "Application description" -msgstr "" - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -msgid "Application intro" -msgstr "" - -#: forum/settings/basic.py:40 -msgid "" -"The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -msgid "Copyright notice" -msgstr "" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email Settings" -msgstr "" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "" -"The port on which your SMTP server is listening to. Usually this is 25, but " -"can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -msgid "Email Password" -msgstr "" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -msgid "Use TLS" -msgstr "" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -msgid "Site 'from' email address" -msgstr "" - -#: forum/settings/email.py:35 -msgid "" -"The address that will show up on the 'from' field on emails sent by your " -"website." -msgstr "" - -#: forum/settings/email.py:39 -msgid "Email subject prefix" -msgstr "" - -#: forum/settings/email.py:40 -msgid "" -"Every email sent through your website will have the subject prefixed by this " -"string. It's usually a good idea to have such a prefix so your users can " -"easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "" -"Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "" -"This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "" -"Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -msgid "Change this:" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "Minimum reputation config" -msgstr "" - -#: forum/settings/minrep.py:4 -msgid "" -"Configure the minimum reputation required to perform certain actions on your " -"site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -msgid "Minimum reputation to vote down" -msgstr "" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -msgid "Minimum reputation to comment" -msgstr "" - -#: forum/settings/minrep.py:20 -msgid "" -"The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -msgid "Minimum reputation to like a comment" -msgstr "" - -#: forum/settings/minrep.py:24 -msgid "" -"The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "" -"The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "" -"The minimum reputation an user must have to be allowed to close his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "" -"The minimum reputation an user must have to be allowed to reopen his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:39 -msgid "Minimum reputation to retag others questions" -msgstr "" - -#: forum/settings/minrep.py:40 -msgid "" -"The minimum reputation an user must have to be allowed to retag others " -"questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "" -"The minimum reputation an user must have to be allowed to edit community " -"wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "" -"The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "" -"The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -msgid "Minimum reputation to delete comments" -msgstr "" - -#: forum/settings/minrep.py:56 -msgid "" -"The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "" -"Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -msgid "Initial reputation" -msgstr "" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "" -"Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -msgid "Rep lost by downvoted" -msgstr "" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "" -"Reputation a user gains for having one of the downvotes on his posts " -"canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -msgid "Rep gain by accepted answer" -msgstr "" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "" -"Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "" -"Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "" -"The filesystem path where uploaded files will be stored. Please note that " -"this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "" -"The url alias for uploaded files. Notice that if you change this setting, " -"you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -msgid "The maximum allowed file size for uploads in mb." -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "" -"How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -msgid "Flag count to delete post" -msgstr "" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -msgid "Days to cancel a vote" -msgstr "" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "" - -#: forum/skins/default/templates/404.html:30 -msgid "" -"the page you tried to visit is protected or you don't have sufficient " -"points, see" -msgstr "" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -msgid "see latest questions" -msgstr "" - -#: forum/skins/default/templates/500.html:29 -msgid "see tags" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:14 -msgid "this answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "" - -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "" - -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -msgid "About" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -msgid "please try to provide details" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -msgid "*italic* or __italic__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "" - -#: forum/skins/default/templates/ask.html:64 -msgid "login to post question info" -msgstr "" - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "" - -#: forum/skins/default/templates/badges.html:6 -msgid "Badges summary" -msgstr "" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" - -#: forum/skins/default/templates/badges.html:22 -#, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %" -"(feedback_faq_url)s.\n" -" " -msgstr "" - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "" - -#: forum/skins/default/templates/badges.html:71 -msgid "bronze badge description" -msgstr "" - -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "" - -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "" - -#: forum/skins/default/templates/email_base.html:31 -msgid "home" -msgstr "" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "" - -#: forum/skins/default/templates/faq.html:17 -msgid "" -"Most importantly - questions should be relevant to this " -"community." -msgstr "" - -#: forum/skins/default/templates/faq.html:18 -msgid "" -"Before asking the question - please make sure to use search to see whether " -"your question has alredy been answered." -msgstr "" - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "" - -#: forum/skins/default/templates/faq.html:22 -msgid "" -"Please avoid asking questions that are not relevant to this community, too " -"subjective and argumentative." -msgstr "" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:28 -msgid "" -"is a Q&A site, not a discussion group. Therefore - please avoid having " -"discussions in your answers, comment facility allows some space for brief " -"discussions." -msgstr "" - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "" - -#: forum/skins/default/templates/faq.html:35 -msgid "" -"The reputation system allows users earn the authorization to perform a " -"variety of moderation tasks." -msgstr "" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "" - -#: forum/skins/default/templates/faq.html:41 -msgid "Rep system summary" -msgstr "" - -#: forum/skins/default/templates/faq.html:42 -msgid "" -"For example, if you ask an interesting question or give a helpful answer, " -"your input will be upvoted. On the other hand if the answer is misleading - " -"it will be downvoted. Each vote in favor will generate 10 " -"points, each vote against will subtract 2 points. There is " -"a limit of 200 points that can be accumulated per question " -"or answer. The table below explains reputation point requirements for each " -"type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:57 -msgid "use tags" -msgstr "" - -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "" - -#: forum/skins/default/templates/faq.html:69 -msgid "open and close own questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "" - -#: forum/skins/default/templates/faq.html:87 -msgid "open any closed question" -msgstr "" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "" -"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "" - -#: forum/skins/default/templates/faq.html:115 -msgid "" -"No, you don't have to. You can login through any service that supports " -"OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "" - -#: forum/skins/default/templates/faq.html:122 -msgid "" -"So questions and answers can be edited like wiki pages by experienced users " -"of this site and this improves the overall quality of the knowledge base " -"content." -msgstr "" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "" - -#: forum/skins/default/templates/faq.html:128 -#, python-format -msgid "" -"Please ask your question at %(ask_question_url)s, help make our community " -"better!" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "" - -#: forum/skins/default/templates/feedback.html:6 -msgid "Feedback" -msgstr "" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look " -"forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to " -"hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -msgid "(this field is required)" -msgstr "" - -#: forum/skins/default/templates/feedback.html:49 -msgid "Send Feedback" -msgstr "" - -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "" - -#: forum/skins/default/templates/footer.html:18 -msgid "give feedback" -msgstr "" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "" - -#: forum/skins/default/templates/index.html:9 -msgid "welcome to " -msgstr "" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "" - -#: forum/skins/default/templates/logout.html:19 -msgid "" -"As a registered user you can login with your OpenID, log out of the site or " -"permanently remove your account." -msgstr "" - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -msgid "posted" -msgstr "" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "" - -#: forum/skins/default/templates/privacy.html:38 -msgid "how privacy policies can be changed" -msgstr "" - -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "" - -#: forum/skins/default/templates/question.html:87 -#, python-format -msgid "" -"The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "" - -#: forum/skins/default/templates/question.html:89 -#, python-format -msgid "close date %(closed_at)s" -msgstr "" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "" - -#: forum/skins/default/templates/question.html:159 -msgid "Be the first one to answer this question!" -msgstr "" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "" - -#: forum/skins/default/templates/question.html:171 -msgid "please only give an answer, no discussions" -msgstr "" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -msgid "Answer Your Own Question" -msgstr "" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "" - -#: forum/skins/default/templates/question.html:239 -msgid "question asked" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "" - -#: forum/skins/default/templates/question.html:250 -msgid "Related questions" -msgstr "" - -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:15 -msgid "please try provide enough details" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:89 -msgid "tags help us keep Questions organized" -msgstr "" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "The question was closed for the following reason " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "on " -msgstr "" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "" - -#: forum/skins/default/templates/reopen.html:29 -msgid "Reopen this question" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:3 -msgid "Subscription" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -msgid "You are subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:13 -msgid "You are not subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -msgid "Interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -msgid "Ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -msgid "keep ignored questions hidden" -msgstr "" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "" - -#: forum/skins/default/templates/tags.html:33 -msgid "by popularity" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "" - -#: forum/skins/default/templates/tags.html:42 -msgid "Nothing found" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "" -"These are the external authentication providers currently associated with " -"your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -msgid "remove" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "" -"You currently have no external authentication provider associated with your " -"account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "" -"You can set up a password for your account, so you can login using standard " -"username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Create password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "" -"Please create your screen name and save your email address. Saved email " -"address will let you subscribe for the updates on the most interesting " -"questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:54 -msgid "Email address label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "Click" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having troubles signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:8 -msgid "Create login name and password" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:31 -msgid "Create Account" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:33 -msgid "return to login page" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot " -"your password,\n" -" here you can request a temporary login key. Fill out your account email " -"and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once " -"and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -msgid "Send link" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "" - -#: forum/skins/default/templates/node/accept_button.html:5 -msgid "mark this answer as the accepted answer" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:22 -msgid "I like this comment (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:26 -msgid "Edit comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:30 -msgid "Delete comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -msgid "add new comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:55 -msgid " add comment" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)" -"s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -msgid "just now" -msgstr "" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -msgid "I like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -msgid "I dont like this post (click again to cancel)" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %" -"(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %" -"(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -msgid "On question " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)" -"s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:46 -msgid "on your own post(s)" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:50 -msgid "an answer was accepted" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -msgid "posted :" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the " -"question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %" -"(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %" -"(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %" -"(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, " -"with title\n" -" %(question_title)s and " -"tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -msgid "Site statistics" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "user" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -msgid "Site status" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "" -"Your site is running in bootstrap mode, click the button bellow to revert to " -"defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "" -"Your site is running in standard mode, click the button bellow to run in " -"bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "" -"Your site is running with some customized settings, click the buttons bellow " -"to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "Recalculate" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -msgid "Recent activity" -msgstr "" - -#: forum/skins/default/templates/question_list/item.html:12 -msgid "this question has an accepted answer" -msgstr "" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "active" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:43 -msgid "Screen Name" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "" - -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -msgid "user voted down this many times" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, python-format -msgid "" -"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -msgid "Notifications and subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to " -"receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all " -"notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them " -"clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:36 -msgid "A new question is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -msgid "Questions I ask" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:60 -msgid "Questions I answer" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:63 -msgid "Questions I comment" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:68 -msgid "Questions I view" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -msgid "An answer is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -msgid "An answer is accepted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "" -"Notify me when someone replys to one of my comments on any post using the " -"
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -msgid "subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "" - -#: forum/skins/default/templates/users/users.html:35 -#, python-format -msgid "users matching query %(suser)s:" -msgstr "" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -msgid "reputation points" -msgstr "" - -#: forum/templatetags/extra_tags.py:248 -msgid "2 days ago" -msgstr "" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "" - -#: forum/templatetags/node_tags.py:64 -msgid "retag" -msgstr "" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "" -"report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "" - -#: forum/templatetags/question_list_tags.py:57 -msgid "Newest questions are shown first. " -msgstr "" - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "" - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -msgid "this field is required" -msgstr "" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "" - -#: forum/utils/forms.py:52 -msgid "user name is required" -msgstr "" - -#: forum/utils/forms.py:53 -msgid "sorry, this name is taken, please choose another" -msgstr "" - -#: forum/utils/forms.py:54 -msgid "sorry, this name is not allowed, please choose another" -msgstr "" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "" - -#: forum/utils/forms.py:106 -msgid "email address is required" -msgstr "" - -#: forum/utils/forms.py:108 -msgid "this email is already used by someone else, please choose another" -msgstr "" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "" - -#: forum/utils/forms.py:134 -msgid "password is required" -msgstr "" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "" - -#: forum/utils/forms.py:138 -msgid "please, retype your password" -msgstr "" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "" -"Sorry, these login credentials belong to anoother user. Plese terminate your " -"current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -msgid "An email has been sent with your temporary login key" -msgstr "" - -#: forum/views/auth.py:239 -msgid "" -"You are logged in with a temporary access key, please take the time to fix " -"your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -msgid "Your password was changed" -msgstr "" - -#: forum/views/auth.py:282 -msgid "New password set" -msgstr "" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s." -"
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the
    faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -msgid "vote" -msgid_plural "votes" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:89 -#, python-format -msgid "" -"Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the " -"original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -msgid "flags" -msgstr "" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -msgid "like comments" -msgstr "" - -#: forum/views/commands.py:152 -msgid "like" -msgstr "" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -msgid "delete comments" -msgstr "" - -#: forum/views/commands.py:197 -msgid "mark a question as favorite" -msgstr "" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -msgid "comment" -msgstr "" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -#: forum/views/commands.py:230 -msgid "edit comments" -msgstr "" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -msgid "accept answers" -msgstr "" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -msgid "delete posts" -msgstr "" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -msgid "Open questions without an accepted answer" -msgstr "" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile" -msgstr "" - -#: forum/views/users.py:152 -msgid "user profile overview" -msgstr "" - -#: forum/views/users.py:186 -msgid "recent user activity" -msgstr "" - -#: forum/views/users.py:186 -msgid "profile - recent activity" -msgstr "" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "" - -#: forum/views/users.py:214 -msgid "favorite questions" -msgstr "" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "" - -#: forum/views/users.py:220 -msgid "subscription settings" -msgstr "" - -#: forum/views/users.py:220 -msgid "profile - subscriptions" -msgstr "" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -msgid "New subscription settings are now saved" -msgstr "" - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "" - -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "" - -#: forum/views/writers.py:72 -#, python-format -msgid "maximum upload file size is %sM" -msgstr "" - -#: forum/views/writers.py:74 -#, python-format -msgid "" -"Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "" - -#: forum/views/writers.py:85 -msgid "Initial revision" -msgstr "" - -#: forum/views/writers.py:143 -msgid "Retag" -msgstr "" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -msgid "books/" -msgstr "" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, python-format -msgid "Asked a question with %s views" -msgstr "" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, python-format -msgid "Answer voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, python-format -msgid "Question voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, python-format -msgid "Question favorited by %s users" -msgstr "" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -msgid "First down vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -msgid "First up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -msgid "First accepted answer on your own question" -msgstr "" - -#: forum_modules/default_badges/badges.py:162 -msgid "Completed all user profile fields" -msgstr "" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, python-format -msgid "Left %s comments" -msgstr "" - -#: forum_modules/default_badges/badges.py:192 -#, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, python-format -msgid "Edited %s entries" -msgstr "" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, python-format -msgid "Accepted answer and voted up %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "" -"Answered a question more than %(dif_days)s days later with at least %" -"(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, python-format -msgid "Created a tag used by %s questions" -msgstr "" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -msgid "Notable Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -msgid "Famous Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -msgid "Nice Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -msgid "Nice Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -msgid "Good Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -msgid "Good Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -msgid "Great Answer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -msgid "Great Question up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -msgid "Favorite Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an " -"author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to " -"an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -msgid "Pundit number of comments" -msgstr "" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the " -"author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the " -"Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -msgid "Guru up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -msgid "Necromancer up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the " -"Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for " -"the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the " -"Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "" -"The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "" -"The authentication with Facebook connect failed, cannot find authentication " -"tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -msgid "Login failed." -msgstr "" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -msgid "Please enter username and password" -msgstr "" - -#: forum_modules/localauth/forms.py:90 -msgid "Please enter your password" -msgstr "" - -#: forum_modules/localauth/forms.py:92 -msgid "Please enter user name" -msgstr "" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -msgid "A validation email has been sent to your email address. " -msgstr "" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -msgid "Enter your OpenId Url" -msgstr "" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" diff --git a/forum/modules/template_loader.py/locale/zh_CN/LC_MESSAGES/django.mo b/forum/modules/template_loader.py/locale/zh_CN/LC_MESSAGES/django.mo deleted file mode 100644 index 66452b7..0000000 Binary files a/forum/modules/template_loader.py/locale/zh_CN/LC_MESSAGES/django.mo and /dev/null differ diff --git a/forum/modules/template_loader.py/locale/zh_CN/LC_MESSAGES/django.po b/forum/modules/template_loader.py/locale/zh_CN/LC_MESSAGES/django.po deleted file mode 100644 index fedf00e..0000000 --- a/forum/modules/template_loader.py/locale/zh_CN/LC_MESSAGES/django.po +++ /dev/null @@ -1,5202 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-04-28 16:53-0400\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" - -#: forum/const.py:8 -msgid "duplicate question" -msgstr "完全重复的问题" - -# chinese translation is domain specific -#: forum/const.py:9 -#, fuzzy -msgid "question is off-topic or not relevant" -msgstr "不是编程技术问题" - -#: forum/const.py:10 -msgid "too subjective and argumentative" -msgstr "太主观性、引起争吵的问题" - -#: forum/const.py:11 -msgid "is not an answer to the question" -msgstr "不是一个可以回答的“问题”" - -#: forum/const.py:12 -msgid "the question is answered, right answer was accepted" -msgstr "问题已经解决,已得到正确答案" - -#: forum/const.py:13 -msgid "problem is not reproducible or outdated" -msgstr "已经过时、不可重现的问题" - -#: forum/const.py:14 -msgid "question contains offensive inappropriate, or malicious remarks" -msgstr "恶意言论" - -#: forum/const.py:15 -msgid "spam or advertising" -msgstr "垃圾广告" - -#: forum/const.py:71 forum/skins/default/templates/osqaadmin/index.html:21 -msgid "question" -msgstr "提问" - -#: forum/const.py:72 forum/skins/default/templates/book.html:110 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "answer" -msgstr "回答" - -#: forum/const.py:73 -msgid "commented question" -msgstr "评论问题" - -#: forum/const.py:74 -#, fuzzy -msgid "commented answer" -msgstr "修改回答" - -#: forum/const.py:75 -msgid "edited question" -msgstr "修改问题" - -#: forum/const.py:76 -msgid "edited answer" -msgstr "修改回答" - -#: forum/const.py:77 -msgid "received award" -msgstr "获奖" - -#: forum/const.py:78 -msgid "marked best answer" -msgstr "标记最佳答案" - -#: forum/const.py:79 -msgid "upvoted" -msgstr "投赞成票" - -#: forum/const.py:80 -msgid "downvoted" -msgstr "投反对票" - -#: forum/const.py:81 -#, fuzzy -msgid "upvote canceled" -msgstr "投赞成票" - -#: forum/const.py:82 -#, fuzzy -msgid "downvote canceled" -msgstr "投反对票" - -#: forum/const.py:83 -msgid "deleted question" -msgstr "删除问题" - -#: forum/const.py:84 -msgid "deleted answer" -msgstr "删除回答" - -#: forum/const.py:85 -msgid "marked offensive" -msgstr "标记垃圾帖" - -#: forum/const.py:86 -msgid "updated tags" -msgstr "更新标签" - -#: forum/const.py:87 -msgid "selected favorite" -msgstr "收藏" - -#: forum/const.py:88 -msgid "completed user profile" -msgstr "完成个人所有资料" - -#: forum/const.py:89 -msgid "email update sent to user" -msgstr "" - -#: forum/const.py:93 -#, fuzzy -msgid "question_answered" -msgstr "提问时间" - -#: forum/const.py:94 -#, fuzzy -msgid "question_commented" -msgstr "提问时间" - -#: forum/const.py:95 -msgid "answer_commented" -msgstr "" - -#: forum/const.py:96 -msgid "answer_accepted" -msgstr "" - -#: forum/const.py:100 -msgid "[closed]" -msgstr "[已关闭]" - -#: forum/const.py:101 -msgid "[deleted]" -msgstr "[已删除]" - -#: forum/const.py:102 -msgid "initial version" -msgstr "初始版本" - -#: forum/const.py:103 -msgid "retagged" -msgstr "更新了标签" - -#: forum/const.py:111 -msgid "Instantly" -msgstr "" - -#: forum/const.py:112 -msgid "Daily" -msgstr "" - -#: forum/const.py:113 -msgid "Weekly" -msgstr "" - -#: forum/const.py:114 -msgid "No notifications" -msgstr "" - -#: forum/feed.py:18 -msgid " - " -msgstr "-" - -#: forum/feed.py:18 -msgid "latest questions" -msgstr "最新问题" - -#: forum/forms.py:21 forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "title" -msgstr "标题" - -#: forum/forms.py:22 -msgid "please enter a descriptive title for your question" -msgstr "" -"请输入对问题具有描述性质的标题 - “帮忙!紧急求助!”不是建议的提问方式。" - -#: forum/forms.py:27 -msgid "title must be > 10 characters" -msgstr "标题的长度必须大于10" - -#: forum/forms.py:36 -msgid "content" -msgstr "内容" - -#: forum/forms.py:42 -msgid "question content must be > 10 characters" -msgstr "内容至少要10个字符" - -#: forum/forms.py:52 forum/skins/default/templates/header.html:31 -#: forum/skins/default/templates/header.html:56 -msgid "tags" -msgstr "标签" - -#: forum/forms.py:54 -msgid "" -"Tags are short keywords, with no spaces within. Up to five tags can be used." -msgstr "" - -#: forum/forms.py:61 forum/skins/default/templates/question_retag.html:43 -msgid "tags are required" -msgstr " 标签不能为空。" - -#: forum/forms.py:67 -msgid "please use 5 tags or less" -msgstr "最多只能有5个标签" - -#: forum/forms.py:72 -msgid "tags must be shorter than 20 characters" -msgstr "每个标签的长度不超过20" - -#: forum/forms.py:74 -msgid "" -"please use following characters in tags: letters 'a-z', numbers, and " -"characters '.-_#'" -msgstr "标签请使用英文字母,中文或者数字字符串(. - _ # 也可以)" - -# index.html -#: forum/forms.py:84 -#: forum/skins/default/templates/post_contributor_info.html:7 -#: forum/skins/default/templates/question_summary_list_roll.html:26 -#: forum/skins/default/templates/question_summary_list_roll.html:38 -msgid "community wiki" -msgstr "社区Wiki" - -#: forum/forms.py:85 -msgid "" -"if you choose community wiki option, the question and answer do not generate " -"points and name of author will not be shown" -msgstr "选择社区wiki模式,问答不计算积分,签名也不显示作者信息" - -#: forum/forms.py:101 -msgid "update summary:" -msgstr "更新概要:" - -#: forum/forms.py:102 -msgid "" -"enter a brief summary of your revision (e.g. fixed spelling, grammar, " -"improved style, this field is optional)" -msgstr "" -"输入本次修改的简单概述(如:修改了别字,修正了语法,改进了样式等。非必填" -"项。)" - -#: forum/forms.py:105 -msgid "Automatically accept user's contributions for the email updates" -msgstr "" - -#: forum/forms.py:118 -#, fuzzy -msgid "Your name:" -msgstr "用户名" - -#: forum/forms.py:119 -#, fuzzy -msgid "Email (not shared with anyone):" -msgstr "电子邮件(用于头像显示服务)" - -#: forum/forms.py:120 -#, fuzzy -msgid "Your message:" -msgstr "Copyright(c)2009.CNPROG.COM" - -#: forum/forms.py:202 -msgid "this email does not have to be linked to gravatar" -msgstr "不会公开,用于头像显示服务" - -#: forum/forms.py:204 -#, fuzzy -msgid "Screen name" -msgstr "姓名" - -#: forum/forms.py:205 -msgid "Real name" -msgstr "真实姓名" - -#: forum/forms.py:206 -msgid "Website" -msgstr "个人网站" - -#: forum/forms.py:207 -msgid "Location" -msgstr "城市" - -#: forum/forms.py:208 -msgid "Date of birth" -msgstr "生日" - -#: forum/forms.py:208 -msgid "will not be shown, used to calculate age, format: YYYY-MM-DD" -msgstr "不会公开,只会显示您的年龄,格式为:YYYY-MM-DD" - -#: forum/forms.py:209 forum/skins/default/templates/account_settings.html:21 -msgid "Profile" -msgstr "个人简介" - -#: forum/forms.py:240 forum/forms.py:241 -msgid "this email has already been registered, please use another one" -msgstr "该电子邮件已被注册,请选择另一个再试。" - -# this is how above two are supposed to be -#: forum/subscriptions.py:41 -#, fuzzy, python-format -msgid "New question on %(app_name)s" -msgstr "查看有关'%(tagname)s'的问题" - -#: forum/subscriptions.py:73 -#, fuzzy, python-format -msgid "New answer to '%(question_title)s'" -msgstr "回答该问题" - -#: forum/subscriptions.py:112 -#, fuzzy, python-format -msgid "New comment on %(question_title)s" -msgstr "评论问题" - -#: forum/subscriptions.py:136 -#, python-format -msgid "An answer to '%(question_title)s' was accepted" -msgstr "" - -#: forum/subscriptions.py:156 -#, python-format -msgid "%(username)s is a new member on %(app_name)s" -msgstr "" - -#: forum/urls.py:44 -#, fuzzy -msgid "upfiles/" -msgstr "个人资料" - -# footer.html -#: forum/urls.py:49 -#, fuzzy -msgid "about/" -msgstr "关于本站" - -#: forum/urls.py:50 -#, fuzzy -msgid "faq/" -msgstr "常见问题" - -#: forum/urls.py:51 -#, fuzzy -msgid "privacy/" -msgstr "隐私政策" - -#: forum/urls.py:52 -#, fuzzy -msgid "logout/" -msgstr "退出登录" - -#: forum/urls.py:53 forum/urls.py:54 -#, fuzzy -msgid "answers/" -msgstr "回答" - -#: forum/urls.py:53 forum/urls.py:58 forum/urls.py:98 -#: forum/skins/default/templates/users/info.html:44 -#, fuzzy -msgid "edit/" -msgstr "编辑" - -#: forum/urls.py:54 forum/urls.py:74 -#, fuzzy -msgid "revisions/" -msgstr "版本" - -#: forum/urls.py:55 forum/urls.py:56 forum/urls.py:57 forum/urls.py:58 -#: forum/urls.py:59 forum/urls.py:60 forum/urls.py:61 forum/urls.py:74 -#, fuzzy -msgid "questions/" -msgstr "问题" - -#: forum/urls.py:56 forum_modules/books/urls.py:8 -#, fuzzy -msgid "ask/" -msgstr "提问于" - -#: forum/urls.py:57 -#, fuzzy -msgid "unanswered/" -msgstr "回答" - -#: forum/urls.py:59 -#, fuzzy -msgid "close/" -msgstr "关闭" - -#: forum/urls.py:60 -#, fuzzy -msgid "reopen/" -msgstr "打开" - -#: forum/urls.py:61 -#, fuzzy -msgid "answer/" -msgstr "回答" - -#: forum/urls.py:63 -#, fuzzy -msgid "vote/" -msgstr "票" - -#: forum/urls.py:64 -#, fuzzy -msgid "like_comment/" -msgstr "评论" - -#: forum/urls.py:65 -#, fuzzy -msgid "comment/" -msgstr "评论" - -#: forum/urls.py:66 -#, fuzzy -msgid "delete_comment/" -msgstr "删除任何一个评论" - -#: forum/urls.py:67 -#, fuzzy -msgid "accept_answer/" -msgstr "回答" - -#: forum/urls.py:68 -#, fuzzy -msgid "mark_favorite/" -msgstr "收藏" - -#: forum/urls.py:69 -msgid "flag/" -msgstr "" - -#: forum/urls.py:70 -msgid "delete/" -msgstr "删除" - -#: forum/urls.py:71 -msgid "subscribe/" -msgstr "" - -#: forum/urls.py:72 -msgid "matching_tags/" -msgstr "" - -#: forum/urls.py:75 -#, fuzzy -msgid "command/" -msgstr "评论" - -#: forum/urls.py:78 -#, fuzzy -msgid "question/" -msgstr "提问" - -#: forum/urls.py:79 forum/urls.py:80 -#, fuzzy -msgid "tags/" -msgstr "标签" - -#: forum/urls.py:82 forum/urls.py:86 -msgid "mark-tag/" -msgstr "" - -#: forum/urls.py:82 -msgid "interesting/" -msgstr "" - -#: forum/urls.py:86 -msgid "ignored/" -msgstr "" - -#: forum/urls.py:90 -msgid "unmark-tag/" -msgstr "" - -#: forum/urls.py:96 forum/urls.py:98 forum/urls.py:100 forum/urls.py:101 -#: forum/urls.py:102 forum/urls.py:103 forum/urls.py:104 forum/urls.py:105 -#: forum/models/user.py:124 -#, fuzzy -msgid "users/" -msgstr "用户" - -#: forum/urls.py:97 -msgid "moderate-user/" -msgstr "" - -#: forum/urls.py:100 -#, fuzzy -msgid "subscriptions/" -msgstr "问题" - -#: forum/urls.py:101 -#, fuzzy -msgid "favorites/" -msgstr "收藏" - -#: forum/urls.py:102 -#, fuzzy -msgid "reputation/" -msgstr "积分" - -#: forum/urls.py:103 -#, fuzzy -msgid "votes/" -msgstr "票" - -#: forum/urls.py:104 -#, fuzzy -msgid "recent/" -msgstr "最新加入" - -#: forum/urls.py:107 forum/urls.py:108 -#, fuzzy -msgid "badges/" -msgstr "奖牌榜" - -#: forum/urls.py:109 -msgid "messages/" -msgstr "" - -#: forum/urls.py:109 -msgid "markread/" -msgstr "" - -#: forum/urls.py:111 -msgid "nimda/" -msgstr "" - -#: forum/urls.py:113 -msgid "upload/" -msgstr "" - -#: forum/urls.py:114 -#, fuzzy -msgid "search/" -msgstr "搜索" - -#: forum/urls.py:115 -#, fuzzy -msgid "feedback/" -msgstr "问题反馈" - -#: forum/urls.py:119 forum/urls.py:120 forum/urls.py:121 forum/urls.py:122 -#: forum/urls.py:123 forum/urls.py:124 forum/urls.py:125 forum/urls.py:126 -#: forum/urls.py:127 forum/urls.py:128 forum/urls.py:129 forum/urls.py:130 -#: forum_modules/localauth/urls.py:7 -#, fuzzy -msgid "account/" -msgstr "新帐号" - -#: forum/urls.py:119 forum/urls.py:121 forum/urls.py:122 -msgid "signin/" -msgstr "" - -#: forum/urls.py:120 -msgid "signout/" -msgstr "" - -#: forum/urls.py:123 -#, fuzzy -msgid "done/" -msgstr "投反对票" - -#: forum/urls.py:124 forum_modules/localauth/urls.py:7 -#, fuzzy -msgid "register/" -msgstr "确认" - -#: forum/urls.py:125 -msgid "validate/" -msgstr "" - -#: forum/urls.py:126 forum/urls.py:127 -msgid "tempsignin/" -msgstr "" - -#: forum/urls.py:128 -#, fuzzy -msgid "authsettings/" -msgstr "设置" - -#: forum/urls.py:129 forum/urls.py:130 -msgid "providers/" -msgstr "" - -#: forum/urls.py:129 -#, fuzzy -msgid "remove/" -msgstr "打开" - -#: forum/urls.py:130 -msgid "add/" -msgstr "" - -#: forum/urls.py:133 forum/urls.py:134 forum/urls.py:135 forum/urls.py:136 -#: forum/urls.py:137 forum_modules/sximporter/urls.py:8 -msgid "admin/" -msgstr "" - -#: forum/urls.py:134 -msgid "denormalize/" -msgstr "" - -#: forum/urls.py:135 -msgid "go_bootstrap/" -msgstr "" - -#: forum/urls.py:136 -msgid "go_defaults/" -msgstr "" - -#: forum/authentication/forms.py:21 -#, fuzzy -msgid "Your account email" -msgstr "修改电子邮件" - -#: forum/authentication/forms.py:23 -msgid "You cannot leave this field blank" -msgstr "" - -#: forum/authentication/forms.py:24 forum/utils/forms.py:107 -msgid "please enter a valid email address" -msgstr "" - -#: forum/authentication/forms.py:32 -msgid "Sorry, but this email is not on our database." -msgstr "" - -#: forum/authentication/forms.py:40 -msgid "okay, let's try!" -msgstr "" - -#: forum/authentication/forms.py:41 -msgid "no OSQA community email please, thanks" -msgstr "" - -#: forum/authentication/forms.py:44 -msgid "please choose one of the options above" -msgstr "" - -#: forum/authentication/forms.py:51 -#, fuzzy -msgid "Current password" -msgstr "确认密码" - -#: forum/authentication/forms.py:62 -msgid "" -"Old password is incorrect. Please enter the correct " -"password." -msgstr "" - -#: forum/management/commands/send_email_alerts.py:56 -msgid "Daily digest" -msgstr "" - -#: forum/middleware/anon_user.py:34 -#, python-format -msgid "First time here? Check out the FAQ!" -msgstr "" - -#: forum/models/question.py:30 -#, fuzzy -msgid "[closed] " -msgstr "[已关闭]" - -#: forum/models/question.py:33 -#, fuzzy -msgid "[deleted] " -msgstr "[已删除]" - -#: forum/models/repute.py:13 forum/skins/default/templates/badges.html:53 -msgid "gold" -msgstr "金牌" - -#: forum/models/repute.py:14 forum/skins/default/templates/badges.html:61 -msgid "silver" -msgstr "银牌" - -#: forum/models/repute.py:15 forum/skins/default/templates/badges.html:68 -msgid "bronze" -msgstr "" - -#: forum/models/tag.py:28 -#, fuzzy -msgid "interesting" -msgstr "修改问题" - -#: forum/models/tag.py:28 -msgid "ignored" -msgstr "" - -#: forum/models/user.py:255 -#: forum/skins/default/templates/post_contributor_info.html:19 -msgid "asked" -msgstr "提问于" - -#: forum/models/user.py:257 -#: forum/skins/default/templates/post_contributor_info.html:22 -#, fuzzy -msgid "answered" -msgstr "回答" - -#: forum/models/user.py:259 -#, fuzzy -msgid "marked an answer" -msgstr "标记最佳答案" - -#: forum/models/user.py:261 -#, fuzzy -msgid "edited a question" -msgstr "修改问题" - -#: forum/models/user.py:263 -#, fuzzy -msgid "commented a question" -msgstr "评论问题" - -#: forum/models/user.py:265 -#, fuzzy -msgid "commented an answer" -msgstr "修改回答" - -#: forum/models/user.py:267 -#, fuzzy -msgid "edited an answer" -msgstr "编辑任何问题或答案" - -#: forum/models/user.py:269 -#, fuzzy -msgid "received badge" -msgstr "获奖" - -#: forum/settings/__init__.py:20 -#, fuzzy -msgid "Badges config" -msgstr "枚奖牌" - -#: forum/settings/__init__.py:20 -msgid "Configure badges on your OSQA site." -msgstr "" - -#: forum/settings/basic.py:9 -#, fuzzy -msgid "Basic Settings" -msgstr "设置" - -#: forum/settings/basic.py:9 -msgid "The basic settings for your application" -msgstr "" - -#: forum/settings/basic.py:12 -msgid "Application logo" -msgstr "" - -#: forum/settings/basic.py:13 -msgid "Your site main logo." -msgstr "" - -#: forum/settings/basic.py:17 -msgid "Favicon" -msgstr "" - -#: forum/settings/basic.py:18 -msgid "Your site favicon." -msgstr "" - -#: forum/settings/basic.py:22 -#, fuzzy -msgid "Application title" -msgstr "【出版日期】" - -#: forum/settings/basic.py:23 -msgid "The title of your application that will show in the browsers title bar" -msgstr "" - -#: forum/settings/basic.py:26 -#, fuzzy -msgid "Application short name" -msgstr "【出版日期】" - -#: forum/settings/basic.py:30 -msgid "Application keywords" -msgstr "" - -#: forum/settings/basic.py:31 -msgid "The meta keywords that will be available through the HTML meta tags." -msgstr "" - -#: forum/settings/basic.py:34 -#, fuzzy -msgid "Application description" -msgstr "完全重复的问题" - -#: forum/settings/basic.py:35 -msgid "The description of your application" -msgstr "" - -#: forum/settings/basic.py:39 -#, fuzzy -msgid "Application intro" -msgstr "【出版日期】" - -#: forum/settings/basic.py:40 -msgid "" -"The introductory page that is visible in the sidebar for anonymous users." -msgstr "" - -#: forum/settings/basic.py:44 -#, fuzzy -msgid "Copyright notice" -msgstr "Copyright(c)2009.CNPROG.COM" - -#: forum/settings/basic.py:45 -msgid "The copyright notice visible at the footer of your page." -msgstr "" - -#: forum/settings/basic.py:48 -msgid "Maximum length of comment" -msgstr "" - -#: forum/settings/basic.py:49 -msgid "The maximum length a user can enter for a comment." -msgstr "" - -#: forum/settings/email.py:5 -#, fuzzy -msgid "Email Settings" -msgstr "设置" - -#: forum/settings/email.py:5 -msgid "Email server and other email related settings." -msgstr "" - -#: forum/settings/email.py:8 -msgid "Email Server" -msgstr "" - -#: forum/settings/email.py:9 -msgid "The SMTP server through which your application will be sending emails." -msgstr "" - -#: forum/settings/email.py:13 -msgid "Email Port" -msgstr "" - -#: forum/settings/email.py:14 -msgid "" -"The port on which your SMTP server is listening to. Usually this is 25, but " -"can be something else." -msgstr "" - -#: forum/settings/email.py:18 -msgid "Email User" -msgstr "" - -#: forum/settings/email.py:19 -msgid "The username for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:23 -#, fuzzy -msgid "Email Password" -msgstr "密码" - -#: forum/settings/email.py:24 -msgid "The password for your SMTP connection." -msgstr "" - -#: forum/settings/email.py:29 -#, fuzzy -msgid "Use TLS" -msgstr "使用" - -#: forum/settings/email.py:30 -msgid "Does your SMTP server usFes TLS for authentication." -msgstr "" - -#: forum/settings/email.py:34 -#, fuzzy -msgid "Site 'from' email address" -msgstr "您的电子邮件地址" - -#: forum/settings/email.py:35 -msgid "" -"The address that will show up on the 'from' field on emails sent by your " -"website." -msgstr "" - -#: forum/settings/email.py:39 -msgid "Email subject prefix" -msgstr "" - -#: forum/settings/email.py:40 -msgid "" -"Every email sent through your website will have the subject prefixed by this " -"string. It's usually a good idea to have such a prefix so your users can " -"easilly set up a filter on their email clients." -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "External Keys" -msgstr "" - -#: forum/settings/extkeys.py:4 -msgid "" -"Keys for various external providers that your application may optionally use." -msgstr "" - -#: forum/settings/extkeys.py:7 -msgid "Google sitemap code" -msgstr "" - -#: forum/settings/extkeys.py:8 -msgid "" -"This is the code you get when you register your site at Google webmaster central." -msgstr "" - -#: forum/settings/extkeys.py:12 -msgid "Google analytics key" -msgstr "" - -#: forum/settings/extkeys.py:13 -msgid "" -"Your Google analytics key. You can get one at the Google analytics official website" -msgstr "" - -#: forum/settings/forms.py:40 -#, fuzzy -msgid "Change this:" -msgstr "修改问题标签" - -#: forum/settings/minrep.py:4 -#, fuzzy -msgid "Minimum reputation config" -msgstr "积分" - -#: forum/settings/minrep.py:4 -msgid "" -"Configure the minimum reputation required to perform certain actions on your " -"site." -msgstr "" - -#: forum/settings/minrep.py:7 -msgid "Minimum reputation to vote up" -msgstr "" - -#: forum/settings/minrep.py:8 -msgid "The minimum reputation an user must have to be allowed to vote up." -msgstr "" - -#: forum/settings/minrep.py:11 -#, fuzzy -msgid "Minimum reputation to vote down" -msgstr "用户社区积分" - -#: forum/settings/minrep.py:12 -msgid "The minimum reputation an user must have to be allowed to vote down." -msgstr "" - -#: forum/settings/minrep.py:15 -msgid "Minimum reputation to flag a post" -msgstr "" - -#: forum/settings/minrep.py:16 -msgid "The minimum reputation an user must have to be allowed to flag a post." -msgstr "" - -#: forum/settings/minrep.py:19 -#, fuzzy -msgid "Minimum reputation to comment" -msgstr "用户社区积分" - -#: forum/settings/minrep.py:20 -msgid "" -"The minimum reputation an user must have to be allowed to comment a post." -msgstr "" - -#: forum/settings/minrep.py:23 -#, fuzzy -msgid "Minimum reputation to like a comment" -msgstr "用户社区积分" - -#: forum/settings/minrep.py:24 -msgid "" -"The minimum reputation an user must have to be allowed to \"like\" a comment." -msgstr "" - -#: forum/settings/minrep.py:27 -msgid "Minimum reputation to upload" -msgstr "" - -#: forum/settings/minrep.py:28 -msgid "" -"The minimum reputation an user must have to be allowed to upload a file." -msgstr "" - -#: forum/settings/minrep.py:31 -msgid "Minimum reputation to close own question" -msgstr "" - -#: forum/settings/minrep.py:32 -msgid "" -"The minimum reputation an user must have to be allowed to close his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:35 -msgid "Minimum reputation to reopen own question" -msgstr "" - -#: forum/settings/minrep.py:36 -msgid "" -"The minimum reputation an user must have to be allowed to reopen his own " -"question." -msgstr "" - -#: forum/settings/minrep.py:39 -#, fuzzy -msgid "Minimum reputation to retag others questions" -msgstr "其他用户的回复和评论" - -#: forum/settings/minrep.py:40 -msgid "" -"The minimum reputation an user must have to be allowed to retag others " -"questions." -msgstr "" - -#: forum/settings/minrep.py:43 -msgid "Minimum reputation to edit wiki posts" -msgstr "" - -#: forum/settings/minrep.py:44 -msgid "" -"The minimum reputation an user must have to be allowed to edit community " -"wiki posts." -msgstr "" - -#: forum/settings/minrep.py:47 -msgid "Minimum reputation to edit others posts" -msgstr "" - -#: forum/settings/minrep.py:48 -msgid "" -"The minimum reputation an user must have to be allowed to edit others posts." -msgstr "" - -#: forum/settings/minrep.py:51 -msgid "Minimum reputation to close others posts" -msgstr "" - -#: forum/settings/minrep.py:52 -msgid "" -"The minimum reputation an user must have to be allowed to close others posts." -msgstr "" - -#: forum/settings/minrep.py:55 -#, fuzzy -msgid "Minimum reputation to delete comments" -msgstr "用户社区积分" - -#: forum/settings/minrep.py:56 -msgid "" -"The minimum reputation an user must have to be allowed to delete comments." -msgstr "" - -#: forum/settings/minrep.py:59 -msgid "Minimum reputation to view offensive flags" -msgstr "" - -#: forum/settings/minrep.py:60 -msgid "The minimum reputation an user must have to view offensive flags." -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "Reputation gains and losses config" -msgstr "" - -#: forum/settings/repgain.py:4 -msgid "" -"Configure the reputation points a user may gain or lose upon certain actions." -msgstr "" - -#: forum/settings/repgain.py:7 -#, fuzzy -msgid "Initial reputation" -msgstr "积分" - -#: forum/settings/repgain.py:8 -msgid "The initial reputation an user gets when he first signs in." -msgstr "" - -#: forum/settings/repgain.py:12 -msgid "Maximum reputation a user can gain in one day for being upvoted." -msgstr "" - -#: forum/settings/repgain.py:15 -msgid "Rep gain by upvoted" -msgstr "" - -#: forum/settings/repgain.py:16 -msgid "Reputation a user gains for having one of his posts up voted." -msgstr "" - -#: forum/settings/repgain.py:19 -msgid "Rep lost bu upvote canceled" -msgstr "" - -#: forum/settings/repgain.py:20 -msgid "" -"Reputation a user loses for having one of the upvotes on his posts canceled." -msgstr "" - -#: forum/settings/repgain.py:23 -#, fuzzy -msgid "Rep lost by downvoted" -msgstr "投反对票" - -#: forum/settings/repgain.py:24 -msgid "Reputation a user loses for having one of his posts down voted." -msgstr "" - -#: forum/settings/repgain.py:27 -msgid "Rep lost by downvoting" -msgstr "" - -#: forum/settings/repgain.py:28 -msgid "Reputation a user loses for down voting a post." -msgstr "" - -#: forum/settings/repgain.py:31 -msgid "Rep gain by downvote canceled" -msgstr "" - -#: forum/settings/repgain.py:32 -msgid "" -"Reputation a user gains for having one of the downvotes on his posts " -"canceled." -msgstr "" - -#: forum/settings/repgain.py:35 -msgid "Rep gain by canceling downvote" -msgstr "" - -#: forum/settings/repgain.py:36 -msgid "Reputation a user gains for canceling a downvote." -msgstr "" - -#: forum/settings/repgain.py:39 -#, fuzzy -msgid "Rep gain by accepted answer" -msgstr "修改回答" - -#: forum/settings/repgain.py:40 -msgid "Reputation a user gains for having one of his answers accepted." -msgstr "" - -#: forum/settings/repgain.py:43 -msgid "Rep lost by accepted canceled" -msgstr "" - -#: forum/settings/repgain.py:44 -msgid "" -"Reputation a user loses for having one of his accepted answers canceled." -msgstr "" - -#: forum/settings/repgain.py:47 -msgid "Rep gain by accepting answer" -msgstr "" - -#: forum/settings/repgain.py:48 -msgid "" -"Reputation a user gains for accepting an answer to one of his questions." -msgstr "" - -#: forum/settings/repgain.py:51 -msgid "Rep lost by canceling accepted" -msgstr "" - -#: forum/settings/repgain.py:52 -msgid "Reputation a user loses by canceling an accepted answer." -msgstr "" - -#: forum/settings/repgain.py:55 -msgid "Rep lost by post flagged" -msgstr "" - -#: forum/settings/repgain.py:56 -msgid "Reputation a user loses by having one of his posts flagged." -msgstr "" - -#: forum/settings/repgain.py:59 -msgid "Rep lost by post flagged and hidden" -msgstr "" - -#: forum/settings/repgain.py:60 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to hide the post." -msgstr "" - -#: forum/settings/repgain.py:63 -msgid "Rep lost by post flagged and deleted" -msgstr "" - -#: forum/settings/repgain.py:64 -msgid "" -"Reputation a user loses by having the last revision of one of his posts " -"flagged the enough number of times to delete the post." -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File upload settings" -msgstr "" - -#: forum/settings/upload.py:5 -msgid "File uploads related settings." -msgstr "" - -#: forum/settings/upload.py:8 -msgid "Uploaded files folder" -msgstr "" - -#: forum/settings/upload.py:9 -msgid "" -"The filesystem path where uploaded files will be stored. Please note that " -"this folder must exist." -msgstr "" - -#: forum/settings/upload.py:12 -msgid "Uploaded files alias" -msgstr "" - -#: forum/settings/upload.py:13 -msgid "" -"The url alias for uploaded files. Notice that if you change this setting, " -"you'll need to restart your site." -msgstr "" - -#: forum/settings/upload.py:16 -msgid "Max file size" -msgstr "" - -#: forum/settings/upload.py:17 -#, fuzzy -msgid "The maximum allowed file size for uploads in mb." -msgstr "只允许上传%sK大小的文件!" - -#: forum/settings/voting.py:4 -msgid "Voting rules" -msgstr "" - -#: forum/settings/voting.py:4 -msgid "Configure the voting rules on your site." -msgstr "" - -#: forum/settings/voting.py:7 -msgid "Maximum votes per day" -msgstr "" - -#: forum/settings/voting.py:8 -msgid "The maximum number of votes an user can cast per day." -msgstr "" - -#: forum/settings/voting.py:11 -msgid "Start warning about votes left" -msgstr "" - -#: forum/settings/voting.py:12 -msgid "From how many votes left should an user start to be warned about it." -msgstr "" - -#: forum/settings/voting.py:15 -msgid "Maximum flags per day" -msgstr "" - -#: forum/settings/voting.py:16 -msgid "The maximum number of times an can flag a post per day." -msgstr "" - -#: forum/settings/voting.py:19 -msgid "Flag count to hide post" -msgstr "" - -#: forum/settings/voting.py:20 -msgid "" -"How many times a post needs to be flagged to be hidden from the main page." -msgstr "" - -#: forum/settings/voting.py:23 -#, fuzzy -msgid "Flag count to delete post" -msgstr "删除帐号" - -#: forum/settings/voting.py:24 -msgid "How many times a post needs to be flagged to be deleted." -msgstr "" - -#: forum/settings/voting.py:27 -#, fuzzy -msgid "Days to cancel a vote" -msgstr "撤销投票" - -#: forum/settings/voting.py:28 -msgid "How many days an user can cancel a vote after he originaly casted it." -msgstr "" - -#: forum/skins/default/templates/404.html:24 -msgid "Sorry, could not find the page you requested." -msgstr "对不起,没有找到您请求的页面!" - -#: forum/skins/default/templates/404.html:26 -msgid "This might have happened for the following reasons:" -msgstr "有可能是以下原因导致:" - -#: forum/skins/default/templates/404.html:28 -msgid "this question or answer has been deleted;" -msgstr "你正在查看的问题或者回答已经被删除;" - -#: forum/skins/default/templates/404.html:29 -msgid "url has error - please check it;" -msgstr "请求的地址有误 - 请核实原始URL地址;" - -#: forum/skins/default/templates/404.html:30 -msgid "" -"the page you tried to visit is protected or you don't have sufficient " -"points, see" -msgstr "访问的页面被保护或你的积分不够,参见" - -#: forum/skins/default/templates/404.html:31 -msgid "if you believe this error 404 should not have occured, please" -msgstr "如果你确信不该出现404错误,请" - -#: forum/skins/default/templates/404.html:32 -msgid "report this problem" -msgstr "报告这个问题" - -#: forum/skins/default/templates/404.html:41 -#: forum/skins/default/templates/500.html:27 -msgid "back to previous page" -msgstr "返回前页" - -#: forum/skins/default/templates/404.html:42 -msgid "see all questions" -msgstr "查看最新问题" - -#: forum/skins/default/templates/404.html:43 -msgid "see all tags" -msgstr "查看标签列表" - -#: forum/skins/default/templates/500.html:22 -msgid "sorry, system error" -msgstr "" - -#: forum/skins/default/templates/500.html:24 -msgid "system error log is recorded, error will be fixed as soon as possible" -msgstr "" - -#: forum/skins/default/templates/500.html:25 -msgid "please report the error to the site administrators if you wish" -msgstr "" - -#: forum/skins/default/templates/500.html:28 -#, fuzzy -msgid "see latest questions" -msgstr "最新问题" - -#: forum/skins/default/templates/500.html:29 -#, fuzzy -msgid "see tags" -msgstr "标记垃圾帖" - -#: forum/skins/default/templates/_question_list.html:12 -#: forum/skins/default/templates/book.html:105 -#: forum/skins/default/templates/question_summary_list_roll.html:14 -#: forum/skins/default/templates/question_list/item.html:10 -#: forum/views/commands.py:82 -msgid "votes" -msgstr "票" - -#: forum/skins/default/templates/_question_list.html:14 -#, fuzzy -msgid "this answer has been accepted to be correct" -msgstr "有答案已被接受为正确答案" - -#: forum/skins/default/templates/_question_list.html:16 -#: forum/skins/default/templates/question_summary_list_roll.html:13 -#: forum/skins/default/templates/question_list/item.html:14 -msgid "answers" -msgstr "回答" - -#: forum/skins/default/templates/_question_list.html:20 -#: forum/skins/default/templates/book.html:115 -#: forum/skins/default/templates/question_summary_list_roll.html:15 -#: forum/skins/default/templates/question_list/item.html:18 -msgid "views" -msgstr "浏览" - -# must have extra space after in english -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "see questions tagged" -msgstr "查看有关" - -# book.html line 123 must be empty in english -#: forum/skins/default/templates/_question_list.html:34 -#: forum/skins/default/templates/book.html:125 -#: forum/skins/default/templates/question.html:234 -#: forum/skins/default/templates/question_summary_list_roll.html:52 -#: forum/skins/default/templates/tags.html:49 -#: forum/skins/default/templates/question_list/item.html:29 -msgid "using tags" -msgstr "的问题" - -# footer.html -#: forum/skins/default/templates/about.html:5 -#: forum/skins/default/templates/about.html:9 -#, fuzzy -msgid "About" -msgstr "关于本站" - -#: forum/skins/default/templates/account_settings.html:4 -msgid "Account functions" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:29 -#: forum/skins/default/templates/auth/auth_settings.html:31 -msgid "Change password" -msgstr "修改密码" - -#: forum/skins/default/templates/account_settings.html:30 -msgid "Give your account a new password." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:32 -msgid "Change email " -msgstr "更换电子邮件" - -#: forum/skins/default/templates/account_settings.html:33 -msgid "Add or update the email address associated with your account." -msgstr "" - -#: forum/skins/default/templates/account_settings.html:35 -msgid "Change OpenID" -msgstr "更换OpenID地址" - -#: forum/skins/default/templates/account_settings.html:36 -msgid "Change openid associated to your account" -msgstr "" - -#: forum/skins/default/templates/account_settings.html:39 -msgid "Delete account" -msgstr "删除帐号" - -#: forum/skins/default/templates/account_settings.html:40 -msgid "Erase your username and all your data from website" -msgstr "" - -#: forum/skins/default/templates/answer_edit.html:5 -#: forum/skins/default/templates/answer_edit.html:39 -msgid "Edit answer" -msgstr "修改回答" - -#: forum/skins/default/templates/answer_edit.html:18 -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:19 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:19 -#: forum/skins/default/templates/question_edit.html:22 -msgid "hide preview" -msgstr "禁用预览" - -#: forum/skins/default/templates/answer_edit.html:21 -#: forum/skins/default/templates/ask.html:22 -#: forum/skins/default/templates/question_edit.html:22 -msgid "show preview" -msgstr "启用预览" - -#: forum/skins/default/templates/answer_edit.html:39 -#: forum/skins/default/templates/question_edit.html:63 -#: forum/skins/default/templates/question_retag.html:56 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "back" -msgstr "返回" - -#: forum/skins/default/templates/answer_edit.html:44 -#: forum/skins/default/templates/question_edit.html:68 -#: forum/skins/default/templates/revisions_answer.html:50 -#: forum/skins/default/templates/revisions_question.html:49 -msgid "revision" -msgstr "版本" - -#: forum/skins/default/templates/answer_edit.html:47 -#: forum/skins/default/templates/question_edit.html:72 -msgid "select revision" -msgstr "选择版本" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:184 -#: forum/skins/default/templates/question_edit.html:89 -msgid "Toggle the real time Markdown editor preview" -msgstr "打开或者关闭Markdown编辑器的实时预览" - -#: forum/skins/default/templates/answer_edit.html:54 -#: forum/skins/default/templates/ask.html:93 -#: forum/skins/default/templates/question.html:185 -#: forum/skins/default/templates/question_edit.html:89 -msgid "toggle preview" -msgstr "预览开关" - -# synonym of above in Edit question -#: forum/skins/default/templates/answer_edit.html:63 -#: forum/skins/default/templates/question_edit.html:115 -#: forum/skins/default/templates/question_retag.html:77 -msgid "Save edit" -msgstr "现在修改" - -#: forum/skins/default/templates/answer_edit.html:64 -#: forum/skins/default/templates/close.html:29 -#: forum/skins/default/templates/feedback.html:50 -#: forum/skins/default/templates/question_edit.html:116 -#: forum/skins/default/templates/question_retag.html:78 -#: forum/skins/default/templates/reopen.html:30 -#: forum/skins/default/templates/users/edit.html:87 -msgid "Cancel" -msgstr "取消" - -#: forum/skins/default/templates/answer_edit_tips.html:4 -msgid "answer tips" -msgstr "受欢迎的提问" - -#: forum/skins/default/templates/answer_edit_tips.html:7 -msgid "please make your answer relevant to this community" -msgstr "您的问题与编程相关吗?" - -#: forum/skins/default/templates/answer_edit_tips.html:10 -msgid "try to give an answer, rather than engage into a discussion" -msgstr "建议您提的问题是可以被答复的,而不仅仅是可以讨论。" - -#: forum/skins/default/templates/answer_edit_tips.html:13 -#, fuzzy -msgid "please try to provide details" -msgstr "请详细描述您的问题。" - -#: forum/skins/default/templates/answer_edit_tips.html:16 -#: forum/skins/default/templates/question_edit_tips.html:18 -msgid "be clear and concise" -msgstr "我们推荐您使用中文描述问题,这样可以得到更多的答复机会。" - -#: forum/skins/default/templates/answer_edit_tips.html:20 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "see frequently asked questions" -msgstr "查看常见问题" - -#: forum/skins/default/templates/answer_edit_tips.html:26 -#: forum/skins/default/templates/question_edit_tips.html:28 -msgid "Markdown tips" -msgstr "Markdown快速参考" - -#: forum/skins/default/templates/answer_edit_tips.html:29 -#: forum/skins/default/templates/question_edit_tips.html:31 -#, fuzzy -msgid "*italic* or __italic__" -msgstr "*斜体* 或者 _斜体_" - -#: forum/skins/default/templates/answer_edit_tips.html:32 -#: forum/skins/default/templates/question_edit_tips.html:34 -msgid "**bold** or __bold__" -msgstr "**加粗** 或者 __加粗__ " - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/question_edit_tips.html:37 -msgid "link" -msgstr "链接" - -#: forum/skins/default/templates/answer_edit_tips.html:35 -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:37 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "text" -msgstr "文本" - -#: forum/skins/default/templates/answer_edit_tips.html:39 -#: forum/skins/default/templates/question_edit_tips.html:42 -msgid "image" -msgstr "图片" - -#: forum/skins/default/templates/answer_edit_tips.html:43 -#: forum/skins/default/templates/question_edit_tips.html:46 -msgid "numbered list:" -msgstr "列表:" - -#: forum/skins/default/templates/answer_edit_tips.html:48 -#: forum/skins/default/templates/question_edit_tips.html:51 -msgid "basic HTML tags are also supported" -msgstr "基本的HTML标签也是支持的" - -#: forum/skins/default/templates/answer_edit_tips.html:52 -#: forum/skins/default/templates/question_edit_tips.html:55 -msgid "learn more about Markdown" -msgstr "有关Markdown详细说明" - -#: forum/skins/default/templates/ask.html:5 -#: forum/skins/default/templates/ask.html:57 -msgid "Ask a question" -msgstr "我要提问" - -#: forum/skins/default/templates/ask.html:64 -#, fuzzy -msgid "login to post question info" -msgstr "问题按提问时间显示排序。新加入的问题将显示在最前面。" - -#: forum/skins/default/templates/ask.html:70 -#, python-format -msgid "" -"must have valid %(email)s to post, \n" -" see %(email_validation_faq_url)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/ask.html:108 -msgid "(required)" -msgstr "" - -#: forum/skins/default/templates/ask.html:115 -msgid "Login/signup to post your question" -msgstr "" - -#: forum/skins/default/templates/ask.html:117 -msgid "Ask your question" -msgstr "现在提问" - -#: forum/skins/default/templates/badge.html:6 -#: forum/skins/default/templates/badge.html:17 -msgid "Badge" -msgstr "奖牌" - -#: forum/skins/default/templates/badge.html:26 -msgid "The users have been awarded with badges:" -msgstr "用户已被授予该奖牌:" - -#: forum/skins/default/templates/badges.html:6 -#, fuzzy -msgid "Badges summary" -msgstr "奖牌列表" - -#: forum/skins/default/templates/badges.html:17 -msgid "Badges" -msgstr "枚奖牌" - -#: forum/skins/default/templates/badges.html:21 -msgid "Community gives you awards for your questions, answers and votes." -msgstr "" -"提出问题,给予回答,投出你的票 - CNProg 会针对你在社区的表现,授予你各类奖" -"牌。" - -#: forum/skins/default/templates/badges.html:22 -#, fuzzy, python-format -msgid "" -"Below is the list of available badges and number \n" -" of times each type of badge has been awarded. Give us feedback at %" -"(feedback_faq_url)s.\n" -" " -msgstr "这里列出社区所有的奖牌,以及到目前为此,每个奖牌被授予的用户人数。" - -#: forum/skins/default/templates/badges.html:50 -msgid "Community badges" -msgstr "社区奖牌" - -#: forum/skins/default/templates/badges.html:56 -msgid "gold badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:64 -msgid "silver badge description" -msgstr "" - -#: forum/skins/default/templates/badges.html:67 -msgid "bronze badge: often given as a special honor" -msgstr "铜牌:时常授予之特殊荣誉" - -#: forum/skins/default/templates/badges.html:71 -#, fuzzy -msgid "bronze badge description" -msgstr "答读者问" - -# templates/book.html 78 -#: forum/skins/default/templates/book.html:7 -msgid "reading channel" -msgstr "读书频道" - -#: forum/skins/default/templates/book.html:26 -msgid "[author]" -msgstr "【作者】" - -#: forum/skins/default/templates/book.html:30 -msgid "[publisher]" -msgstr "【出版社】" - -#: forum/skins/default/templates/book.html:34 -msgid "[publication date]" -msgstr "【出版日期】" - -#: forum/skins/default/templates/book.html:38 -msgid "[price]" -msgstr "【价格】" - -#: forum/skins/default/templates/book.html:39 -msgid "currency unit" -msgstr "" - -#: forum/skins/default/templates/book.html:42 -msgid "[pages]" -msgstr "【页数】" - -#: forum/skins/default/templates/book.html:43 -msgid "pages abbreviation" -msgstr "" - -#: forum/skins/default/templates/book.html:46 -msgid "[tags]" -msgstr "【标签】" - -#: forum/skins/default/templates/book.html:56 -msgid "author blog" -msgstr "作者博客" - -#: forum/skins/default/templates/book.html:62 -msgid "book directory" -msgstr "书籍目录" - -#: forum/skins/default/templates/book.html:66 -msgid "buy online" -msgstr "网上购买" - -#: forum/skins/default/templates/book.html:79 -msgid "reader questions" -msgstr "答读者问" - -#: forum/skins/default/templates/book.html:82 -msgid "ask the author" -msgstr "向作者提问" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "this question was selected as favorite" -msgstr "这个问题被" - -#: forum/skins/default/templates/book.html:88 -#: forum/skins/default/templates/book.html:93 -msgid "number of times" -msgstr "位用户收藏" - -#: forum/skins/default/templates/book.html:108 -msgid "the answer has been accepted to be correct" -msgstr "有答案已被接受为正确答案" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to book RSS feed" -msgstr "RSS订阅该图书最新问题" - -#: forum/skins/default/templates/book.html:147 -msgid "subscribe to the questions feed" -msgstr "订阅最>新问题" - -# close.html -#: forum/skins/default/templates/close.html:6 -#: forum/skins/default/templates/close.html:16 -msgid "Close question" -msgstr "关闭问题" - -#: forum/skins/default/templates/close.html:19 -msgid "Close the question" -msgstr "由于以下原因,你要关闭这个问题" - -#: forum/skins/default/templates/close.html:25 -msgid "Reasons" -msgstr "原因" - -#: forum/skins/default/templates/close.html:28 -msgid "OK to close" -msgstr "确定关闭" - -#: forum/skins/default/templates/email_base.html:31 -#, fuzzy -msgid "home" -msgstr "首页" - -#: forum/skins/default/templates/faq.html:11 -msgid "Frequently Asked Questions " -msgstr "常见问题" - -#: forum/skins/default/templates/faq.html:16 -msgid "What kinds of questions can I ask here?" -msgstr "我可以在这里提问什么样的问题?" - -#: forum/skins/default/templates/faq.html:17 -#, fuzzy -msgid "" -"Most importantly - questions should be relevant to this " -"community." -msgstr "毫无疑问,首先必须是技术编程问题!" - -#: forum/skins/default/templates/faq.html:18 -msgid "" -"Before asking the question - please make sure to use search to see whether " -"your question has alredy been answered." -msgstr "" -"提问之前,充分利用系统的自动查找、标签和搜索,看看是否已经有一样的问题并有了" -"答案。" - -#: forum/skins/default/templates/faq.html:21 -msgid "What questions should I avoid asking?" -msgstr "什么样的问题我不该在这里提问?" - -#: forum/skins/default/templates/faq.html:22 -msgid "" -"Please avoid asking questions that are not relevant to this community, too " -"subjective and argumentative." -msgstr "" -"与程序员或技术无关的,引起争吵或太过于主观性等违背社" -"区宗旨的内容。本站建立是为了帮助大众程序员解决实际技术问题,我们需要实" -"际的问题!" - -#: forum/skins/default/templates/faq.html:27 -msgid "What should I avoid in my answers?" -msgstr "什么样的回答是不受欢迎的?" - -#: forum/skins/default/templates/faq.html:28 -msgid "" -"is a Q&A site, not a discussion group. Therefore - please avoid having " -"discussions in your answers, comment facility allows some space for brief " -"discussions." -msgstr "" -"希望用户提供针对提问的技术回答,可以是进一步了解问题实质,给予参考方案,或完" -"全解决问题的回答。我们希望通过问答的形式解决用户的实际问题。因此,我们不>欢迎在回答中出现不是回答问题的内容,包括针对他人回" -"答的讨论,和其他无意义的浪费网络资源行为。CNProg建议您使用评论功能来讨论你的意见和想法。" - -#: forum/skins/default/templates/faq.html:32 -msgid "Who moderates this community?" -msgstr "谁是社区的管理员?" - -#: forum/skins/default/templates/faq.html:33 -msgid "The short answer is: you." -msgstr "答案是:每个用户。" - -#: forum/skins/default/templates/faq.html:34 -msgid "This website is moderated by the users." -msgstr "社区没有严格意义上的管理员身份" - -#: forum/skins/default/templates/faq.html:35 -msgid "" -"The reputation system allows users earn the authorization to perform a " -"variety of moderation tasks." -msgstr "" -"通过积分运作,每个用户都有权限创建标签,进行对所有问" -"题、回答的投票、编辑、关闭等操作。" - -#: forum/skins/default/templates/faq.html:40 -msgid "How does reputation system work?" -msgstr "什么是社区积分?" - -#: forum/skins/default/templates/faq.html:41 -#, fuzzy -msgid "Rep system summary" -msgstr "更新概要:" - -#: forum/skins/default/templates/faq.html:42 -msgid "" -"For example, if you ask an interesting question or give a helpful answer, " -"your input will be upvoted. On the other hand if the answer is misleading - " -"it will be downvoted. Each vote in favor will generate 10 " -"points, each vote against will subtract 2 points. There is " -"a limit of 200 points that can be accumulated per question " -"or answer. The table below explains reputation point requirements for each " -"type of moderation task." -msgstr "" - -#: forum/skins/default/templates/faq.html:53 -#: forum/skins/default/templates/users/votes.html:15 -#: forum/views/commands.py:77 -msgid "upvote" -msgstr "投赞成票" - -#: forum/skins/default/templates/faq.html:57 -#, fuzzy -msgid "use tags" -msgstr "标记垃圾帖" - -# todo - check if it's indeed plural -#: forum/skins/default/templates/faq.html:62 -msgid "add comments" -msgstr "添加评论" - -#: forum/skins/default/templates/faq.html:66 -#: forum/skins/default/templates/users/votes.html:17 -#: forum/views/commands.py:77 -msgid "downvote" -msgstr "投反对票" - -#: forum/skins/default/templates/faq.html:69 -#, fuzzy -msgid "open and close own questions" -msgstr "打开关闭任何人的问题" - -#: forum/skins/default/templates/faq.html:73 -msgid "retag questions" -msgstr "给任何问题整理标签" - -#: forum/skins/default/templates/faq.html:78 -msgid "edit community wiki questions" -msgstr "编辑wiki类问题" - -#: forum/skins/default/templates/faq.html:83 -msgid "edit any answer" -msgstr "编辑任何问题或答案" - -#: forum/skins/default/templates/faq.html:87 -#, fuzzy -msgid "open any closed question" -msgstr "打开关闭任何人的问题" - -#: forum/skins/default/templates/faq.html:91 -msgid "delete any comment" -msgstr "删除任何一个评论" - -#: forum/skins/default/templates/faq.html:95 -msgid "delete any questions and answers and perform other moderation tasks" -msgstr "删除任何一个问题或答案,及其他管理功能" - -#: forum/skins/default/templates/faq.html:103 -msgid "how to validate email title" -msgstr "" - -#: forum/skins/default/templates/faq.html:105 -#, python-format -msgid "" -"how to validate email info with %(send_email_key_url)s %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/faq.html:110 -msgid "what is gravatar" -msgstr "" - -#: forum/skins/default/templates/faq.html:111 -msgid "gravatar faq info" -msgstr "" - -#: forum/skins/default/templates/faq.html:114 -msgid "To register, do I need to create new password?" -msgstr "我需要注册一个新用户吗?" - -#: forum/skins/default/templates/faq.html:115 -msgid "" -"No, you don't have to. You can login through any service that supports " -"OpenID, e.g. Google, Yahoo, AOL, etc." -msgstr "" -"不需要。社区提供了OpenID的登录支持,你要用Google、Yahoo等任何支持OpenID登录的" -"帐号就可以使用系统。" - -#: forum/skins/default/templates/faq.html:116 -msgid "Login now!" -msgstr "马上登录" - -#: forum/skins/default/templates/faq.html:121 -msgid "Why other people can edit my questions/answers?" -msgstr "为什么其他人可以修改我的问题/回答?" - -#: forum/skins/default/templates/faq.html:122 -msgid "Goal of this site is..." -msgstr "CNProg 是为了帮助程序员解决更多问题,更加方便的解决问题。" - -#: forum/skins/default/templates/faq.html:122 -msgid "" -"So questions and answers can be edited like wiki pages by experienced users " -"of this site and this improves the overall quality of the knowledge base " -"content." -msgstr "" -"所以问题和答案都是如Wiki一样可编辑的,我们希望社区能帮助用户沉淀、积累更多有" -"用的知识和经验。" - -#: forum/skins/default/templates/faq.html:123 -msgid "If this approach is not for you, we respect your choice." -msgstr "如果您不喜欢这种方式,我们尊重你的选择。" - -#: forum/skins/default/templates/faq.html:127 -msgid "Still have questions?" -msgstr "还有其他问题?" - -#: forum/skins/default/templates/faq.html:128 -#, fuzzy, python-format -msgid "" -"Please ask your question at %(ask_question_url)s, help make our community " -"better!" -msgstr "如果您对社区还有其他疑问,请一起来完善我们的" - -#: forum/skins/default/templates/faq.html:130 -#: forum/skins/default/templates/header.html:30 -#: forum/skins/default/templates/header.html:55 forum/views/readers.py:76 -msgid "questions" -msgstr "问题" - -#: forum/skins/default/templates/faq.html:130 -msgid "." -msgstr "。" - -#: forum/skins/default/templates/feedback.html:6 -#, fuzzy -msgid "Feedback" -msgstr "问题反馈" - -#: forum/skins/default/templates/feedback.html:11 -msgid "Give us your feedback!" -msgstr "" - -#: forum/skins/default/templates/feedback.html:17 -#, python-format -msgid "" -"\n" -" Dear %(user_name)s, we look " -"forward to hearing your feedback. \n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:24 -msgid "" -"\n" -" Dear visitor, we look forward to " -"hearing your feedback.\n" -" Please type and send us your message below.\n" -" " -msgstr "" - -#: forum/skins/default/templates/feedback.html:41 -#, fuzzy -msgid "(this field is required)" -msgstr " 标签不能为空。" - -#: forum/skins/default/templates/feedback.html:49 -#, fuzzy -msgid "Send Feedback" -msgstr "问题反馈" - -# footer.html -#: forum/skins/default/templates/footer.html:7 -#: forum/skins/default/templates/header.html:16 -#: forum/skins/default/templates/index.html:12 -msgid "about" -msgstr "关于本站" - -#: forum/skins/default/templates/footer.html:8 -#: forum/skins/default/templates/header.html:17 -#: forum/skins/default/templates/index.html:13 -#: forum/skins/default/templates/question_edit_tips.html:22 -msgid "faq" -msgstr "常见问题" - -#: forum/skins/default/templates/footer.html:9 -msgid "privacy policy" -msgstr "隐私政策" - -#: forum/skins/default/templates/footer.html:18 -#, fuzzy -msgid "give feedback" -msgstr "问题反馈" - -#: forum/skins/default/templates/header.html:9 -msgid "administration" -msgstr "" - -#: forum/skins/default/templates/header.html:12 -msgid "logout" -msgstr "退出登录" - -#: forum/skins/default/templates/header.html:14 -msgid "login" -msgstr "登录" - -#: forum/skins/default/templates/header.html:24 -msgid "back to home page" -msgstr "回到首页" - -#: forum/skins/default/templates/header.html:32 -#: forum/skins/default/templates/header.html:57 -msgid "users" -msgstr "用户" - -#: forum/skins/default/templates/header.html:33 -#: forum/skins/default/templates/users/signature.html:9 -#: forum/skins/default/templates/users/signature.html:15 -#: forum/skins/default/templates/users/signature.html:21 -#: forum/templatetags/extra_tags.py:167 forum/templatetags/extra_tags.py:196 -msgid "badges" -msgstr "奖牌榜" - -#: forum/skins/default/templates/header.html:34 -msgid "unanswered questions" -msgstr "没有回答的问题" - -#: forum/skins/default/templates/header.html:36 -msgid "ask a question" -msgstr "我要提问" - -#: forum/skins/default/templates/header.html:51 -msgid "search" -msgstr "搜索" - -#: forum/skins/default/templates/index.html:9 -#, fuzzy -msgid "welcome to " -msgstr "CNProg欢迎您!" - -#: forum/skins/default/templates/logout.html:6 -#: forum/skins/default/templates/logout.html:16 -msgid "Logout" -msgstr "退出登录" - -#: forum/skins/default/templates/logout.html:19 -msgid "" -"As a registered user you can login with your OpenID, log out of the site or " -"permanently remove your account." -msgstr "" -"您是系统的注册用户,可以随时使用OpenID帐号" -"登录系统或者注销登录。" - -#: forum/skins/default/templates/logout.html:20 -msgid "Logout now" -msgstr "点击退出登录" - -#: forum/skins/default/templates/notarobot.html:3 -msgid "Please prove that you are a Human Being" -msgstr "" - -#: forum/skins/default/templates/notarobot.html:10 -msgid "I am a Human Being" -msgstr "" - -#: forum/skins/default/templates/pagesize.html:6 -msgid "posts per page" -msgstr "每页显示:" - -#: forum/skins/default/templates/paginator.html:6 -#: forum/skins/default/templates/paginator.html:7 -msgid "previous" -msgstr "上一页" - -#: forum/skins/default/templates/paginator.html:19 -msgid "current page" -msgstr "当前页" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "page number " -msgstr "第" - -#: forum/skins/default/templates/paginator.html:22 -#: forum/skins/default/templates/paginator.html:29 -msgid "number - make blank in english" -msgstr "页" - -#: forum/skins/default/templates/paginator.html:33 -msgid "next page" -msgstr "下一页" - -#: forum/skins/default/templates/post_contributor_info.html:9 -#, python-format -msgid "" -"\n" -" one revision\n" -" " -msgid_plural "" -"\n" -" %(rev_count)s revisions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/post_contributor_info.html:24 -#, fuzzy -msgid "posted" -msgstr "投赞成票" - -#: forum/skins/default/templates/post_contributor_info.html:45 -msgid "updated" -msgstr "更新于" - -#: forum/skins/default/templates/privacy.html:6 -#: forum/skins/default/templates/privacy.html:11 -msgid "Privacy policy" -msgstr "隐私政策" - -#: forum/skins/default/templates/privacy.html:15 -msgid "general message about privacy" -msgstr "" -"CNProg承认用户隐私的重要性。本文件概述在您浏览CNProg过程中所接收和收集的个人" -"信息的种类,以及CNProg所采取的保护信息的一些措施。CNProg希望这将有助于您在知" -"情的情况下,就和我们 共享个人信息的问题作出决定。" - -#: forum/skins/default/templates/privacy.html:18 -msgid "Site Visitors" -msgstr "网站访问者" - -#: forum/skins/default/templates/privacy.html:20 -msgid "what technical information is collected about visitors" -msgstr "" -"当您访问本网站或使用我们的某些在线服务时,服务器会自动记录信息,包括但不限于" -"URL、IP地址、浏览器的类型、屏幕分辨率、系统类型和使用的语言以及访问日期和时" -"间。我们的目的是为了向您>提供更好的用户服务,包括可能为您提供定制的在线服务。" - -#: forum/skins/default/templates/privacy.html:23 -msgid "Personal Information" -msgstr "个人身份信息" - -#: forum/skins/default/templates/privacy.html:25 -msgid "details on personal information policies" -msgstr "" -"在登录使用CNProg的提问和回答功能时,我们要求使用者提供用户名、密码、电子邮件" -"等信息。CNProg收集这类关于个人身份的信息只是为了登录系统获得使用功能的目的。" -"我们不会向任何其他社区用 户、个人或第三方透露您的密码或者电子邮件信息。用户可" -"以选择性地填写用户资料、个人网站、年龄、城市等信息,我们收集这些内容为了使用" -"户能够更容易和更满意地使用CNProg提供的网页和服务。" - -#: forum/skins/default/templates/privacy.html:28 -msgid "Other Services" -msgstr "其他服务" - -#: forum/skins/default/templates/privacy.html:30 -msgid "details on sharing data with third parties" -msgstr "" -"CNProg可能会收集和统计用户访问本站的概况数据。例如,CNProg可能会检测网站最流" -"行的部分功能。CNProg可能会公开显示或者提供给第三方使用该数据。但是,CNProg不" -"会公开您的身份信息。" - -#: forum/skins/default/templates/privacy.html:35 -msgid "cookie policy details" -msgstr "" -"访问CNProg时,我们会向您的计算机发送一个或多个专门用于识别您的浏览器的Cookie" -"(包含一个字符串的小文件)。 使用 Cookie 的目的是通过储存用户偏好、跟踪用户倾" -"向(例如搜索方法)来提高我们的服务质量。大多数浏览器的初始设置均为接受 " -"Cookie,但也可以将其重置为拒绝所有 Cookie 或在收到 Cookie 时提示。不过,如果" -"禁用 Cookie,某些功能和服务可能无法正常运行。" - -#: forum/skins/default/templates/privacy.html:37 -msgid "Policy Changes" -msgstr "政策更改" - -#: forum/skins/default/templates/privacy.html:38 -#, fuzzy -msgid "how privacy policies can be changed" -msgstr "" -"我们可能在事先通知或不通知的情况下随时更改此'隐私政策',我们建议用户时常查看" -"CNProg隐私政策的改动,在任何改动生效后您的继续访问和使用本站,我们假设您已同" -"意了CNProg以上的所有条款。" - -# this is how above two are supposed to be -#: forum/skins/default/templates/question.html:70 -#: forum/skins/default/templates/sidebar/recent_tags.html:9 -#, fuzzy, python-format -msgid "see questions tagged '%(tagname)s'" -msgstr "查看有关'%(tagname)s'的问题" - -#: forum/skins/default/templates/question.html:87 -#, fuzzy, python-format -msgid "" -"The question has been closed for the following reason \"%(close_reason)s\" by" -msgstr "问题以“%s”的原因已被" - -#: forum/skins/default/templates/question.html:89 -#, fuzzy, python-format -msgid "close date %(closed_at)s" -msgstr "由于以下原因,你要关闭这个问题" - -#: forum/skins/default/templates/question.html:97 -#, python-format -msgid "" -"\n" -" One Answer:\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers:\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers will be shown first" -msgstr "最先回答显示在最前面" - -#: forum/skins/default/templates/question.html:105 -msgid "oldest answers" -msgstr "最先回答" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers will be shown first" -msgstr "最晚回答显示在最前面" - -#: forum/skins/default/templates/question.html:107 -msgid "newest answers" -msgstr "最近回答" - -#: forum/skins/default/templates/question.html:109 -msgid "most voted answers will be shown first" -msgstr "投票次数最多的显示在最前面" - -#: forum/skins/default/templates/question.html:109 -msgid "popular answers" -msgstr "投票最多" - -#: forum/skins/default/templates/question.html:157 -msgid "Your answer" -msgstr "您的回答" - -#: forum/skins/default/templates/question.html:159 -#, fuzzy -msgid "Be the first one to answer this question!" -msgstr "不是一个可以回答的“问题”" - -#: forum/skins/default/templates/question.html:165 -msgid "you can answer anonymously and then login" -msgstr "" - -#: forum/skins/default/templates/question.html:169 -msgid "answer your own question only to give an answer" -msgstr "" - -#: forum/skins/default/templates/question.html:171 -#, fuzzy -msgid "please only give an answer, no discussions" -msgstr "建议您提的问题是可以被答复的,而不仅仅是可以讨论。" - -#: forum/skins/default/templates/question.html:207 -msgid "Login/Signup to Post Your Answer" -msgstr "" - -#: forum/skins/default/templates/question.html:210 -#, fuzzy -msgid "Answer Your Own Question" -msgstr "回答该问题" - -#: forum/skins/default/templates/question.html:212 -msgid "Answer the question" -msgstr "回答该问题" - -#: forum/skins/default/templates/question.html:229 -msgid "Question tags" -msgstr "您正在浏览的问题含有以下标签" - -#: forum/skins/default/templates/question.html:239 -#, fuzzy -msgid "question asked" -msgstr "提问时间" - -#: forum/skins/default/templates/question.html:242 -msgid "question was seen" -msgstr "目前浏览数量" - -#: forum/skins/default/templates/question.html:242 -msgid "times" -msgstr "次" - -#: forum/skins/default/templates/question.html:245 -msgid "last updated" -msgstr "最后更新时间" - -#: forum/skins/default/templates/question.html:250 -#, fuzzy -msgid "Related questions" -msgstr "相似的问题" - -# page title -#: forum/skins/default/templates/question_edit.html:5 -#: forum/skins/default/templates/question_edit.html:63 -msgid "Edit question" -msgstr "修改问题" - -#: forum/skins/default/templates/question_edit_tips.html:4 -msgid "question tips" -msgstr "受欢迎的提问" - -#: forum/skins/default/templates/question_edit_tips.html:9 -#, python-format -msgid "" -"\n" -" ask a question relevant to the %(app_title)s community \n" -" " -msgstr "" - -#: forum/skins/default/templates/question_edit_tips.html:15 -#, fuzzy -msgid "please try provide enough details" -msgstr "请详细描述您的问题。" - -#: forum/skins/default/templates/question_retag.html:5 -#: forum/skins/default/templates/question_retag.html:56 -msgid "Change tags" -msgstr "修改问题标签" - -# todo: remove magic numbers from this file -#: forum/skins/default/templates/question_retag.html:44 -msgid "up to 5 tags, less than 20 characters each" -msgstr "最多5个标签,每个标签长度小于20个字符。" - -#: forum/skins/default/templates/question_retag.html:86 -msgid "Why use and modify tags?" -msgstr "为什么我只能修改问题标签?" - -#: forum/skins/default/templates/question_retag.html:89 -#, fuzzy -msgid "tags help us keep Questions organized" -msgstr "CNProg用标签来分类系统的信息" - -#: forum/skins/default/templates/question_retag.html:97 -msgid "tag editors receive special awards from the community" -msgstr "修改标签的用户将授予特殊的社区奖牌" - -#: forum/skins/default/templates/questions.html:7 -msgid "Questions" -msgstr "问题列表" - -#: forum/skins/default/templates/reopen.html:6 -#: forum/skins/default/templates/reopen.html:16 -msgid "Reopen question" -msgstr "重设问题" - -#: forum/skins/default/templates/reopen.html:19 -msgid "Open the previously closed question" -msgstr "你将打开这个已经被关闭的问题" - -#: forum/skins/default/templates/reopen.html:22 -#, fuzzy -msgid "The question was closed for the following reason " -msgstr "问题曾以" - -#: forum/skins/default/templates/reopen.html:22 -msgid "reason - leave blank in english" -msgstr "的原因被" - -#: forum/skins/default/templates/reopen.html:22 -#, fuzzy -msgid "on " -msgstr "于" - -#: forum/skins/default/templates/reopen.html:22 -msgid "date closed" -msgstr "关闭" - -#: forum/skins/default/templates/reopen.html:29 -#, fuzzy -msgid "Reopen this question" -msgstr "确定打开这个问题" - -# revisions_answer.html -#: forum/skins/default/templates/revisions_answer.html:7 -#: forum/skins/default/templates/revisions_answer.html:36 -#: forum/skins/default/templates/revisions_question.html:7 -#: forum/skins/default/templates/revisions_question.html:35 -msgid "Revision history" -msgstr "版本历史" - -#: forum/skins/default/templates/revisions_answer.html:48 -#: forum/skins/default/templates/revisions_question.html:47 -msgid "click to hide/show revision" -msgstr "" - -#: forum/skins/default/templates/revisions_answer.html:56 -#: forum/templatetags/node_tags.py:62 -msgid "edit" -msgstr "编辑" - -#: forum/skins/default/templates/subscription_status.html:3 -#, fuzzy -msgid "Subscription" -msgstr "提问" - -#: forum/skins/default/templates/subscription_status.html:8 -msgid "You were automatically subscribed to this question." -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:10 -#, fuzzy -msgid "You are subscribed to this question." -msgstr "订阅最>新问题" - -#: forum/skins/default/templates/subscription_status.html:13 -#, fuzzy -msgid "You are not subscribed to this question." -msgstr "订阅最>新问题" - -#: forum/skins/default/templates/subscription_status.html:18 -#: forum/views/commands.py:323 -msgid "unsubscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:20 -#: forum/views/commands.py:323 -msgid "subscribe me" -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:24 -#, python-format -msgid "" -"\n" -" (you can adjust your notification settings on your profile)\n" -" " -msgstr "" - -#: forum/skins/default/templates/subscription_status.html:29 -msgid "Once you sign in you will be able to subscribe for any updates here" -msgstr "" - -# book.html line 123 must be empty in english -#: forum/skins/default/templates/tag_selector.html:4 -#: forum/skins/default/templates/question_list/tag_selector.html:6 -#, fuzzy -msgid "Interesting tags" -msgstr "的问题" - -# this is how above two are supposed to be -#: forum/skins/default/templates/tag_selector.html:10 -#: forum/skins/default/templates/tag_selector.html:27 -#: forum/skins/default/templates/question_list/related_tags.html:9 -#: forum/skins/default/templates/question_list/tag_selector.html:12 -#: forum/skins/default/templates/question_list/tag_selector.html:29 -#, fuzzy, python-format -msgid "see questions tagged '%(tag_name)s'" -msgstr "查看有关'%(tagname)s'的问题" - -#: forum/skins/default/templates/tag_selector.html:14 -#: forum/skins/default/templates/question_list/tag_selector.html:16 -#, python-format -msgid "remove '%(tag_name)s' from the list of interesting tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:20 -#: forum/skins/default/templates/tag_selector.html:37 -#: forum/skins/default/templates/question_list/tag_selector.html:22 -#: forum/skins/default/templates/question_list/tag_selector.html:39 -msgid "Add" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:21 -#: forum/skins/default/templates/question_list/tag_selector.html:23 -#, fuzzy -msgid "Ignored tags" -msgstr "修改问题标签" - -#: forum/skins/default/templates/tag_selector.html:31 -#: forum/skins/default/templates/question_list/tag_selector.html:33 -#, python-format -msgid "remove '%(tag_name)s' from the list of ignored tags" -msgstr "" - -#: forum/skins/default/templates/tag_selector.html:40 -#: forum/skins/default/templates/question_list/tag_selector.html:42 -#, fuzzy -msgid "keep ignored questions hidden" -msgstr "打开关闭任何人的问题" - -#: forum/skins/default/templates/tags.html:6 -#: forum/skins/default/templates/tags.html:30 -msgid "Tag list" -msgstr "标签列表" - -#: forum/skins/default/templates/tags.html:32 -msgid "sorted alphabetically" -msgstr "按名称的字母先后顺序排序" - -#: forum/skins/default/templates/tags.html:32 -msgid "by name" -msgstr "按名称排序" - -#: forum/skins/default/templates/tags.html:33 -msgid "sorted by frequency of tag use" -msgstr "按标签被使用的次数排序" - -#: forum/skins/default/templates/tags.html:33 -#, fuzzy -msgid "by popularity" -msgstr "按流行程度排序" - -#: forum/skins/default/templates/tags.html:39 -msgid "All tags matching query" -msgstr "匹配查询" - -#: forum/skins/default/templates/tags.html:39 -msgid "all tags - make this empty in english" -msgstr "的所有标签" - -#: forum/skins/default/templates/tags.html:42 -#, fuzzy -msgid "Nothing found" -msgstr "没有找到相关数据。" - -#: forum/skins/default/templates/auth/auth_settings.html:5 -#: forum/skins/default/templates/auth/auth_settings.html:7 -msgid "Authentication settings" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:9 -msgid "" -"These are the external authentication providers currently associated with " -"your account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:12 -#, fuzzy -msgid "remove" -msgstr "打开" - -#: forum/skins/default/templates/auth/auth_settings.html:17 -msgid "" -"You currently have no external authentication provider associated with your " -"account." -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:19 -msgid "Add new provider" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:21 -msgid "This is where you can change your password. Make sure you remember it!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:24 -msgid "" -"You can set up a password for your account, so you can login using standard " -"username and password!" -msgstr "" - -#: forum/skins/default/templates/auth/auth_settings.html:31 -#, fuzzy -msgid "Create password" -msgstr "确认密码" - -#: forum/skins/default/templates/auth/complete.html:5 -msgid "Connect your OpenID with this site" -msgstr "绑定OpenID" - -#: forum/skins/default/templates/auth/complete.html:8 -msgid "Connect your OpenID with your account on this site" -msgstr "绑定OpenID帐号" - -#: forum/skins/default/templates/auth/complete.html:12 -msgid "You are here for the first time with " -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:13 -msgid "" -"Please create your screen name and save your email address. Saved email " -"address will let you subscribe for the updates on the most interesting " -"questions and will be used to create and retrieve your unique avatar image. " -msgstr "" - -# todo: review this message may be confusing user -#: forum/skins/default/templates/auth/complete.html:15 -msgid "This account already exists, please use another." -msgstr "输入您的新帐号或者指定已经存在的帐号。" - -#: forum/skins/default/templates/auth/complete.html:30 -msgid "Sorry, looks like we have some errors:" -msgstr "请注意以下错误:" - -#: forum/skins/default/templates/auth/complete.html:47 -msgid "Screen name label" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:54 -#, fuzzy -msgid "Email address label" -msgstr "您的电子邮件地址" - -#: forum/skins/default/templates/auth/complete.html:60 -#: forum/skins/default/templates/auth/signup.html:18 -msgid "receive updates motivational blurb" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:64 -#: forum/skins/default/templates/auth/signup.html:22 -msgid "please select one of the options above" -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:67 -msgid "Tag filter tool will be your right panel, once you log in." -msgstr "" - -#: forum/skins/default/templates/auth/complete.html:68 -msgid "create account" -msgstr "创建帐号" - -#: forum/skins/default/templates/auth/complete.html:77 -msgid "Existing account" -msgstr "已经存在的用户" - -#: forum/skins/default/templates/auth/complete.html:78 -msgid "user name" -msgstr "用户名" - -#: forum/skins/default/templates/auth/complete.html:79 -msgid "password" -msgstr "密码" - -#: forum/skins/default/templates/auth/complete.html:86 -msgid "Register" -msgstr "确认" - -#: forum/skins/default/templates/auth/complete.html:87 -msgid "Forgot your password?" -msgstr "忘记密码?" - -#: forum/skins/default/templates/auth/email_validation.html:6 -#: forum/skins/default/templates/auth/temp_login_email.html:6 -msgid "Greetings from the Q&A forum" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:8 -msgid "To make use of the Forum, please follow the link below:" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:12 -msgid "Following the link above will help us verify your email address." -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:14 -#: forum/skins/default/templates/auth/temp_login_email.html:14 -msgid "" -"If you beleive that this message was sent in mistake -\n" -" no further action is needed. Just ingore this email, we apologize\n" -" for any inconvenience" -msgstr "" - -#: forum/skins/default/templates/auth/email_validation.html:18 -#: forum/skins/default/templates/auth/temp_login_email.html:18 -#: forum/skins/default/templates/notifications/answeraccepted.html:15 -#: forum/skins/default/templates/notifications/newanswer.html:25 -#: forum/skins/default/templates/notifications/newcomment.html:32 -#: forum/skins/default/templates/notifications/newmember.html:15 -#: forum/skins/default/templates/notifications/newquestion.html:25 -msgid "" -"Sincerely,
    \n" -" Forum Administrator" -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:6 -msgid "Login" -msgstr "登录" - -#: forum/skins/default/templates/auth/signin.html:24 -msgid "User login" -msgstr "用户登录" - -#: forum/skins/default/templates/auth/signin.html:36 -#: forum/skins/default/templates/auth/signin.html:86 -#: forum/skins/default/templates/auth/signin.html:92 -msgid "Or..." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:39 -msgid "Click to sign in through any of these services." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:44 -msgid "Validate my email after I login." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:94 -#, fuzzy -msgid "Click" -msgstr "链接" - -#: forum/skins/default/templates/auth/signin.html:94 -msgid "if you're having troubles signing in." -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:98 -msgid "Enter your " -msgstr "" - -#: forum/skins/default/templates/auth/signin.html:154 -msgid "Why use OpenID?" -msgstr "为什么需要OpenID登录?" - -#: forum/skins/default/templates/auth/signin.html:157 -msgid "with openid it is easier" -msgstr "" -"构建在OpenID网络认证上的本系统,不需要你注册新的帐号,即可使用我们系统的所有" -"功能" - -#: forum/skins/default/templates/auth/signin.html:160 -msgid "reuse openid" -msgstr "用同一个帐号可登录互联网所有激活OpenID的网站" - -#: forum/skins/default/templates/auth/signin.html:163 -msgid "openid is widely adopted" -msgstr "全世界有1.6亿OpenID帐号,和10,000个支持OpenID的站点" - -#: forum/skins/default/templates/auth/signin.html:166 -msgid "openid is supported open standard" -msgstr "OpenID是有开放标准,并且有相关的基金组织提供支持" - -#: forum/skins/default/templates/auth/signin.html:171 -msgid "Find out more" -msgstr "查看更多" - -#: forum/skins/default/templates/auth/signin.html:172 -msgid "Get OpenID" -msgstr "获取OpenID" - -#: forum/skins/default/templates/auth/signup.html:4 -msgid "Signup" -msgstr "注册帐号" - -#: forum/skins/default/templates/auth/signup.html:8 -#, fuzzy -msgid "Create login name and password" -msgstr "使用帐号密码登录" - -#: forum/skins/default/templates/auth/signup.html:10 -msgid "Traditional signup info" -msgstr "" - -#: forum/skins/default/templates/auth/signup.html:31 -#, fuzzy -msgid "Create Account" -msgstr "创建帐号" - -#: forum/skins/default/templates/auth/signup.html:32 -msgid "or" -msgstr "或者" - -#: forum/skins/default/templates/auth/signup.html:33 -#, fuzzy -msgid "return to login page" -msgstr "返回登录" - -#: forum/skins/default/templates/auth/temp_login_email.html:8 -msgid "You're seeing this because someone requested a temporary login link" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_email.html:12 -msgid "Following the link above will give you access to your account." -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:5 -msgid "Request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:7 -msgid "Account: request temporary login key" -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:8 -msgid "" -"\n" -" If you're experiencing problems accessing your account, or if you forgot " -"your password,\n" -" here you can request a temporary login key. Fill out your account email " -"and we'll send you a temporary access link that\n" -" will enable you to access your account. This token is valid only once " -"and for a limited period of time.\n" -" " -msgstr "" - -#: forum/skins/default/templates/auth/temp_login_request.html:25 -#, fuzzy -msgid "Send link" -msgstr "链接" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, fuzzy, python-format -msgid "%(who)s has selected this answer as the correct answer" -msgstr "这个答案已经被提问作者标记为最佳答案" - -#: forum/skins/default/templates/node/accept_button.html:5 -#, fuzzy -msgid "mark this answer as the accepted answer" -msgstr "有答案已被接受为正确答案" - -#: forum/skins/default/templates/node/comments.html:22 -#, fuzzy -msgid "I like this comment (click again to cancel)" -msgstr "这篇帖子有价值(再次点击取消操作)" - -#: forum/skins/default/templates/node/comments.html:26 -#, fuzzy -msgid "Edit comment" -msgstr "添加评论" - -#: forum/skins/default/templates/node/comments.html:30 -#, fuzzy -msgid "Delete comment" -msgstr "删除任何一个评论" - -#: forum/skins/default/templates/node/comments.html:42 -#, python-format -msgid "showing %(showing)s of %(total)s" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:44 -msgid "show all" -msgstr "" - -#: forum/skins/default/templates/node/comments.html:47 -#, fuzzy -msgid "add new comment" -msgstr "添加评论" - -#: forum/skins/default/templates/node/comments.html:55 -#, fuzzy -msgid " add comment" -msgstr "添加评论" - -#: forum/skins/default/templates/node/comments.html:58 -#, python-format -msgid "" -"\n" -" have %(max_length)" -"s characters left\n" -" " -msgstr "" - -#: forum/skins/default/templates/node/comments.html:71 -#, fuzzy -msgid "just now" -msgstr "点击退出登录" - -#: forum/skins/default/templates/node/favorite_mark.html:3 -#, fuzzy -msgid "mark/unmark this question as favorite (click again to cancel)" -msgstr "我要收藏这个问题(再次点击取消操作)" - -#: forum/skins/default/templates/node/vote_buttons.html:3 -#, fuzzy -msgid "I like this post (click again to cancel)" -msgstr "这篇帖子有价值(再次点击取消操作)" - -#: forum/skins/default/templates/node/vote_buttons.html:7 -msgid "current number of votes" -msgstr "当前总票数" - -#: forum/skins/default/templates/node/vote_buttons.html:10 -#, fuzzy -msgid "I dont like this post (click again to cancel)" -msgstr "这篇帖子没有价值(再次点击取消操作)" - -#: forum/skins/default/templates/notifications/answeraccepted.html:6 -#: forum/skins/default/templates/notifications/digest.html:7 -#: forum/skins/default/templates/notifications/newanswer.html:6 -#: forum/skins/default/templates/notifications/newcomment.html:6 -#: forum/skins/default/templates/notifications/newmember.html:6 -#: forum/skins/default/templates/notifications/newquestion.html:6 -msgid "Hello" -msgstr "" - -#: forum/skins/default/templates/notifications/answeraccepted.html:9 -#, python-format -msgid "" -"\n" -" Just to let you know that %(accepter)s has just accepted %" -"(answer_author)s's answer on his question\n" -" %(question_title)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:9 -#, python-format -msgid "" -"\n" -" This is the %(digest_type)s activity digest for %(app_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:15 -#, python-format -msgid "" -"\n" -" %(nusers_count)s new user%(nusers_count_pluralize)s joined the %" -"(app_title)s community:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:28 -#, python-format -msgid "" -"\n" -" %(question_count)s of your subscriptions have updates:\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:35 -#, fuzzy -msgid "On question " -msgstr "提问" - -#: forum/skins/default/templates/notifications/digest.html:37 -#, python-format -msgid "" -"\n" -" %(answer_count)s new answer%(answer_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:42 -#, python-format -msgid "" -"\n" -" %(comment_count)s new comment%(comment_count_pluralize)" -"s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:46 -#, fuzzy -msgid "on your own post(s)" -msgstr "获取您自己的" - -#: forum/skins/default/templates/notifications/digest.html:50 -#, fuzzy -msgid "an answer was accepted" -msgstr "问题已经解决,已得到正确答案" - -#: forum/skins/default/templates/notifications/digest.html:59 -#, python-format -msgid "" -"\n" -" %(question_count)s new question%(question_count_pluralize)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:63 -msgid "matching your interesting tags" -msgstr "" - -#: forum/skins/default/templates/notifications/digest.html:65 -#, fuzzy -msgid "posted :" -msgstr "投赞成票" - -#: forum/skins/default/templates/notifications/digest.html:71 -#, python-format -msgid "" -"\n" -" Posted by %(author_name)s in %(question_time)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:7 -#, python-format -msgid "" -"\n" -" Hello, this is a %(site_title)s forum feedback message\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:13 -msgid "Sender" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:15 -#: forum/skins/default/templates/notifications/feedback.html:18 -#: forum/skins/default/templates/users/info.html:93 -msgid "email" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:17 -msgid "anonymous" -msgstr "" - -#: forum/skins/default/templates/notifications/feedback.html:25 -msgid "Message body:" -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new answer on %(app_title)s to the " -"question\n" -" %(question_title)s\":\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newanswer.html:20 -#: forum/skins/default/templates/notifications/newcomment.html:28 -#: forum/skins/default/templates/notifications/newquestion.html:20 -msgid "" -"\n" -" Don't forget to come over and cast your vote.\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a comment on\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:14 -#, python-format -msgid "" -"\n" -" the answer posted by %" -"(poster_name)s to\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newcomment.html:19 -#, python-format -msgid "" -"\n" -" the question %" -"(question_title)s\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newmember.html:9 -#, python-format -msgid "" -"\n" -" %(newmember_name)s has just joined %(app_title)s. You can visit %" -"(newmember_name)s's profile using the following link:
    \n" -" %(newmember_name)s profile\n" -" " -msgstr "" - -#: forum/skins/default/templates/notifications/newquestion.html:9 -#, python-format -msgid "" -"\n" -" %(author_name)s has just posted a new question on %(app_title)s, " -"with title\n" -" %(question_title)s and " -"tagged %(question_tags)s:\n" -" " -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:13 -msgid "OSQA administration area" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/base.html:26 -msgid "Administration menu" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:7 -msgid "Dashboard" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:10 -msgid "Welcome to the OSQA administration area." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:17 -#, fuzzy -msgid "Site statistics" -msgstr "网站访问者" - -#: forum/skins/default/templates/osqaadmin/index.html:21 -#: forum/skins/default/templates/osqaadmin/index.html:26 -msgid "in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -#, fuzzy -msgid "user" -msgstr "用户" - -#: forum/skins/default/templates/osqaadmin/index.html:31 -msgid "joined in the last 24 hours" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:37 -#, fuzzy -msgid "Site status" -msgstr "网站访问者" - -#: forum/skins/default/templates/osqaadmin/index.html:42 -msgid "" -"Your site is running in bootstrap mode, click the button bellow to revert to " -"defaults." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:45 -msgid "" -"Your site is running in standard mode, click the button bellow to run in " -"bootstrap mode." -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:47 -msgid "" -"Your site is running with some customized settings, click the buttons bellow " -"to run with defaults or in bootstrap mode" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "Are you sure you want to revert to the defaults?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:51 -msgid "revert to defaults" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "Are you sure you want to run bootstrap mode?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:54 -msgid "go bootstrap" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:59 -msgid "Recalculate scores and reputation" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -msgid "This is a heavy operation, are you sure?" -msgstr "" - -#: forum/skins/default/templates/osqaadmin/index.html:60 -#, fuzzy -msgid "Recalculate" -msgstr "真实姓名" - -#: forum/skins/default/templates/osqaadmin/index.html:65 -#, fuzzy -msgid "Recent activity" -msgstr "最近活动" - -#: forum/skins/default/templates/question_list/item.html:12 -#, fuzzy -msgid "this question has an accepted answer" -msgstr "这个问题被" - -#: forum/skins/default/templates/question_list/related_tags.html:6 -msgid "Related tags" -msgstr "相关标签" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -msgid "most recently updated questions" -msgstr "最近被更新的问题" - -#: forum/skins/default/templates/question_list/sort_tabs.html:4 -#, fuzzy -msgid "active" -msgstr "活跃问题" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "most recently asked questions" -msgstr "最新加入系统的问题" - -#: forum/skins/default/templates/question_list/sort_tabs.html:5 -msgid "newest" -msgstr "最新问题" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest questions" -msgstr "被回复最多的问题" - -#: forum/skins/default/templates/question_list/sort_tabs.html:6 -msgid "hottest" -msgstr "热门问题" - -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted questions" -msgstr "投票次数最多的问题" - -# "最有价值问题" -# "最新问题" -#: forum/skins/default/templates/question_list/sort_tabs.html:7 -msgid "most voted" -msgstr "最有价值的问题" - -#: forum/skins/default/templates/question_list/title.html:5 -msgid "Found by tags" -msgstr "标签问题" - -#: forum/skins/default/templates/question_list/title.html:9 -msgid "Search results" -msgstr "" - -#: forum/skins/default/templates/question_list/title.html:11 -msgid "Found by title" -msgstr "查询结果" - -#: forum/skins/default/templates/question_list/title.html:15 -msgid "Unanswered questions" -msgstr "没有回答的问题" - -#: forum/skins/default/templates/question_list/title.html:17 -#: forum/skins/default/templates/users/subscriptions.html:74 -msgid "All questions" -msgstr "所有问题" - -#: forum/skins/default/templates/sidebar/recent_awards.html:4 -msgid "Recent awards" -msgstr "最新奖牌" - -#: forum/skins/default/templates/sidebar/recent_awards.html:15 -msgid "all awards" -msgstr "所有奖牌" - -#: forum/skins/default/templates/sidebar/recent_tags.html:4 -msgid "Recent tags" -msgstr "最新标签" - -#: forum/skins/default/templates/sidebar/recent_tags.html:12 -msgid "popular tags" -msgstr "受欢迎的标签" - -#: forum/skins/default/templates/users/edit.html:6 -msgid "Edit user profile" -msgstr "修改个人资料" - -#: forum/skins/default/templates/users/edit.html:19 -msgid "edit profile" -msgstr "修改资料" - -#: forum/skins/default/templates/users/edit.html:31 -msgid "image associated with your email address" -msgstr "和您的邮件地址是绑定的" - -#: forum/skins/default/templates/users/edit.html:31 -#, python-format -msgid "avatar, see %(gravatar_faq_url)s" -msgstr "" - -#: forum/skins/default/templates/users/edit.html:36 -#: forum/skins/default/templates/users/info.html:52 -msgid "Registered user" -msgstr "注册用户" - -#: forum/skins/default/templates/users/edit.html:43 -#, fuzzy -msgid "Screen Name" -msgstr "当前页" - -#: forum/skins/default/templates/users/edit.html:86 -#: forum/skins/default/templates/users/subscriptions.html:116 -msgid "Update" -msgstr "更新" - -#: forum/skins/default/templates/users/info.html:22 -#: forum/skins/default/templates/users/signature.html:6 -#: forum/skins/default/templates/users/users.html:26 -msgid "reputation" -msgstr "积分" - -#: forum/skins/default/templates/users/info.html:32 -msgid "Moderate this user" -msgstr "" - -#: forum/skins/default/templates/users/info.html:44 -msgid "update profile" -msgstr "更新我的资料" - -#: forum/skins/default/templates/users/info.html:56 -msgid "real name" -msgstr "姓名" - -#: forum/skins/default/templates/users/info.html:61 -msgid "member for" -msgstr "已加入" - -#: forum/skins/default/templates/users/info.html:66 -msgid "last seen" -msgstr "上次活动时间" - -#: forum/skins/default/templates/users/info.html:72 -msgid "user website" -msgstr "个人网站" - -#: forum/skins/default/templates/users/info.html:78 -msgid "location" -msgstr "城市" - -# user_info.html -#: forum/skins/default/templates/users/info.html:86 -msgid "age" -msgstr "年龄" - -#: forum/skins/default/templates/users/info.html:87 -msgid "age unit" -msgstr "岁" - -#: forum/skins/default/templates/users/info.html:100 -msgid "todays unused votes" -msgstr "今日剩余投票数" - -#: forum/skins/default/templates/users/info.html:101 -msgid "votes left" -msgstr "票" - -#: forum/skins/default/templates/users/stats.html:13 -#, python-format -msgid "" -"\n" -" 1 Question\n" -" " -msgid_plural "" -"\n" -" %(counter)s Questions\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:29 -#, python-format -msgid "" -"\n" -" 1 Answer\n" -" " -msgid_plural "" -"\n" -" %(counter)s Answers\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:42 -#, fuzzy, python-format -msgid "the answer has been voted for %(vote_count)s times" -msgstr "该回答总共有%d个投票" - -#: forum/skins/default/templates/users/stats.html:42 -msgid "this answer has been selected as correct" -msgstr "该回答已被设为最佳答案" - -#: forum/skins/default/templates/users/stats.html:58 -#, python-format -msgid "" -"\n" -" 1 Vote\n" -" " -msgid_plural "" -"\n" -" %(cnt)s Votes\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:69 -msgid "thumb up" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:70 -msgid "user has voted up this many times" -msgstr "该用户投的赞成票总数" - -#: forum/skins/default/templates/users/stats.html:74 -msgid "thumb down" -msgstr "" - -#: forum/skins/default/templates/users/stats.html:75 -#, fuzzy -msgid "user voted down this many times" -msgstr "用户投的反对票总数" - -#: forum/skins/default/templates/users/stats.html:84 -#, python-format -msgid "" -"\n" -" 1 Tag\n" -" " -msgid_plural "" -"\n" -" %(counter)s Tags\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/stats.html:97 -#, fuzzy, python-format -msgid "" -"see other questions with %(view_user)s's contributions tagged '%(tag_name)s' " -msgstr "查看有关'%s'的问题" - -#: forum/skins/default/templates/users/stats.html:112 -#, python-format -msgid "" -"\n" -" 1 Badge\n" -" " -msgid_plural "" -"\n" -" %(counter)s Badges\n" -" " -msgstr[0] "" -msgstr[1] "" - -#: forum/skins/default/templates/users/subscriptions.html:8 -msgid "Notifications and subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:10 -msgid "" -"\n" -" Here you can decide which types of notifications you wish to " -"receive, and it's frequency.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:14 -msgid "" -"\n" -" Currently you have notifications enabled. You can always stop all " -"notifications without loosing your settings and restart them afterwards.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:18 -msgid "" -"\n" -" Currently you have notifications disabled. You can enable them " -"clicking on the Start notifications button bellow.
    \n" -" " -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:28 -msgid "Notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:32 -msgid "A new member joins" -msgstr "" - -# must have extra space after in english -#: forum/skins/default/templates/users/subscriptions.html:36 -#, fuzzy -msgid "A new question is posted" -msgstr "查看有关" - -#: forum/skins/default/templates/users/subscriptions.html:40 -msgid "A new question matching my interesting tags is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:44 -msgid "There's an update on one of my subscriptions" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:52 -msgid "Auto subscribe me to:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:57 -#, fuzzy -msgid "Questions I ask" -msgstr "您正在浏览的问题含有以下标签" - -#: forum/skins/default/templates/users/subscriptions.html:60 -#, fuzzy -msgid "Questions I answer" -msgstr "您正在浏览的问题含有以下标签" - -#: forum/skins/default/templates/users/subscriptions.html:63 -#, fuzzy -msgid "Questions I comment" -msgstr "问题列表" - -#: forum/skins/default/templates/users/subscriptions.html:68 -#, fuzzy -msgid "Questions I view" -msgstr "问题列表" - -#: forum/skins/default/templates/users/subscriptions.html:71 -msgid "All questions matching my interesting tags" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:82 -msgid "On my subscriptions, notify me when:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:87 -#, fuzzy -msgid "An answer is posted" -msgstr "受欢迎的提问" - -#: forum/skins/default/templates/users/subscriptions.html:90 -msgid "A comment on one of my posts is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:95 -msgid "A comment is posted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:98 -msgid "An answer is accepted" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:106 -msgid "More:" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:111 -msgid "" -"Notify me when someone replys to one of my comments on any post using the " -"
    @username
    notation" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:118 -msgid "Stop notifications" -msgstr "" - -#: forum/skins/default/templates/users/subscriptions.html:120 -msgid "Start notifications" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "User profile" -msgstr "用户概览" - -#: forum/skins/default/templates/users/tabs.html:7 -msgid "overview" -msgstr "概览" - -#: forum/skins/default/templates/users/tabs.html:9 -msgid "recent activity" -msgstr "最近活动" - -#: forum/skins/default/templates/users/tabs.html:11 -msgid "graph of user reputation" -msgstr "用户的社区积分历史" - -#: forum/skins/default/templates/users/tabs.html:12 -msgid "reputation history" -msgstr "积分" - -#: forum/skins/default/templates/users/tabs.html:15 forum/views/users.py:196 -msgid "user vote record" -msgstr "用户所有投票" - -#: forum/skins/default/templates/users/tabs.html:15 -msgid "casted votes" -msgstr "投票" - -#: forum/skins/default/templates/users/tabs.html:18 -msgid "questions that user selected as his/her favorite" -msgstr "用户收藏的问题" - -#: forum/skins/default/templates/users/tabs.html:19 -msgid "favorites" -msgstr "收藏" - -#: forum/skins/default/templates/users/tabs.html:22 -msgid "email subscription settings" -msgstr "" - -#: forum/skins/default/templates/users/tabs.html:23 -#, fuzzy -msgid "subscriptions" -msgstr "问题" - -#: forum/skins/default/templates/users/users.html:6 -#: forum/skins/default/templates/users/users.html:24 -msgid "Users" -msgstr "用户列表" - -#: forum/skins/default/templates/users/users.html:27 -msgid "recent" -msgstr "最新加入" - -#: forum/skins/default/templates/users/users.html:28 -msgid "oldest" -msgstr "最先加入" - -#: forum/skins/default/templates/users/users.html:29 -msgid "by username" -msgstr "用户名" - -#: forum/skins/default/templates/users/users.html:35 -#, fuzzy, python-format -msgid "users matching query %(suser)s:" -msgstr "" -"匹配查询 '%s' 的所有用户名:" - -#: forum/skins/default/templates/users/users.html:39 -msgid "Nothing found." -msgstr "没有找到相关数据。" - -#: forum/templatetags/extra_tags.py:168 forum/templatetags/extra_tags.py:195 -#, fuzzy -msgid "reputation points" -msgstr "积分" - -#: forum/templatetags/extra_tags.py:248 -#, fuzzy -msgid "2 days ago" -msgstr "于%s关闭" - -#: forum/templatetags/extra_tags.py:250 -msgid "yesterday" -msgstr "" - -#: forum/templatetags/extra_tags.py:252 -#, python-format -msgid "%(hr)d hour ago" -msgid_plural "%(hr)d hours ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/extra_tags.py:254 -#, python-format -msgid "%(min)d min ago" -msgid_plural "%(min)d mins ago" -msgstr[0] "" -msgstr[1] "" - -#: forum/templatetags/node_tags.py:58 -msgid "permanent link" -msgstr "永久链接" - -#: forum/templatetags/node_tags.py:58 -msgid "answer permanent link" -msgstr "该回答的链接地址" - -#: forum/templatetags/node_tags.py:64 -#, fuzzy -msgid "retag" -msgstr "更新了标签" - -#: forum/templatetags/node_tags.py:68 -msgid "reopen" -msgstr "打开" - -#: forum/templatetags/node_tags.py:70 -msgid "close" -msgstr "关闭" - -#: forum/templatetags/node_tags.py:73 forum/views/commands.py:124 -#: forum/views/commands.py:136 -msgid "flag" -msgstr "" - -#: forum/templatetags/node_tags.py:79 -msgid "" -"report as offensive (i.e containing spam, advertising, malicious text, etc.)" -msgstr "检举该帖为垃“水帖”(含广告、人身攻击、恶意言论等)" - -#: forum/templatetags/node_tags.py:82 -msgid "delete" -msgstr "删除" - -#: forum/templatetags/question_list_tags.py:57 -#, fuzzy -msgid "Newest questions are shown first. " -msgstr "回复最多的问题将显示在最前面。" - -#: forum/templatetags/question_list_tags.py:58 -msgid "Questions are sorted by the time of last update." -msgstr "问题按最后更新时间显示排序。" - -#: forum/templatetags/question_list_tags.py:59 -msgid "Questions sorted by number of responses." -msgstr "问题按回复数量显示排序。" - -#: forum/templatetags/question_list_tags.py:60 -msgid "Questions are sorted by the number of votes." -msgstr "问题按投票数量显示排序。" - -#: forum/templatetags/user_tags.py:58 forum/views/readers.py:293 -#, python-format -msgid "Revision n. %(rev_number)d" -msgstr "" - -#: forum/utils/forms.py:32 -#, fuzzy -msgid "this field is required" -msgstr " 标签不能为空。" - -#: forum/utils/forms.py:47 -msgid "choose a username" -msgstr "选择一个用户名" - -#: forum/utils/forms.py:52 -#, fuzzy -msgid "user name is required" -msgstr " 标签不能为空。" - -#: forum/utils/forms.py:53 -#, fuzzy -msgid "sorry, this name is taken, please choose another" -msgstr "对不起,您不能注册该用户名,请换一个试试" - -#: forum/utils/forms.py:54 -#, fuzzy -msgid "sorry, this name is not allowed, please choose another" -msgstr "对不起,您不能注册该用户名,请换一个试试" - -#: forum/utils/forms.py:55 -msgid "sorry, there is no user with this name" -msgstr "" - -#: forum/utils/forms.py:56 -msgid "sorry, we have a serious error - user name is taken by several users" -msgstr "" - -#: forum/utils/forms.py:57 -msgid "user name can only consist of letters, empty space and underscore" -msgstr "" - -#: forum/utils/forms.py:105 -msgid "your email address" -msgstr "您的电子邮件地址" - -#: forum/utils/forms.py:106 -#, fuzzy -msgid "email address is required" -msgstr " 标签不能为空。" - -#: forum/utils/forms.py:108 -#, fuzzy -msgid "this email is already used by someone else, please choose another" -msgstr "该电子邮件已被注册,请选择另一个再试。" - -#: forum/utils/forms.py:133 -msgid "choose password" -msgstr "密码" - -#: forum/utils/forms.py:134 -#, fuzzy -msgid "password is required" -msgstr " 标签不能为空。" - -#: forum/utils/forms.py:137 -msgid "retype password" -msgstr "确认密码" - -#: forum/utils/forms.py:138 -#, fuzzy -msgid "please, retype your password" -msgstr "确认密码" - -#: forum/utils/forms.py:139 -msgid "sorry, entered passwords did not match, please try again" -msgstr "" - -#: forum/views/admin.py:47 -#, python-format -msgid "'%s' settings saved succesfully" -msgstr "" - -#: forum/views/admin.py:141 -msgid "Bootstrap mode enabled" -msgstr "" - -#: forum/views/admin.py:155 -msgid "All values reverted to defaults" -msgstr "" - -#: forum/views/admin.py:171 -msgid "All values recalculated" -msgstr "" - -#: forum/views/auth.py:103 forum/views/auth.py:112 -msgid "" -"Sorry, these login credentials belong to anoother user. Plese terminate your " -"current session and try again." -msgstr "" - -#: forum/views/auth.py:105 -msgid "You are already logged in with that user." -msgstr "" - -#: forum/views/auth.py:110 -msgid "These login credentials are already associated with your account." -msgstr "" - -#: forum/views/auth.py:116 -msgid "The new credentials are now associated with your account" -msgstr "" - -#: forum/views/auth.py:157 -msgid "" -"Oops, something went wrong in the middle of this process. Please try again." -msgstr "" - -#: forum/views/auth.py:219 -msgid "Temporary login link" -msgstr "" - -#: forum/views/auth.py:224 -#, fuzzy -msgid "An email has been sent with your temporary login key" -msgstr "和您的邮件地址是绑定的" - -#: forum/views/auth.py:239 -msgid "" -"You are logged in with a temporary access key, please take the time to fix " -"your issue with authentication." -msgstr "" - -#: forum/views/auth.py:245 -msgid "Email Validation" -msgstr "" - -#: forum/views/auth.py:256 -msgid "Thank you, your email is now validated." -msgstr "" - -#: forum/views/auth.py:280 -#, fuzzy -msgid "Your password was changed" -msgstr "密码" - -#: forum/views/auth.py:282 -#, fuzzy -msgid "New password set" -msgstr "密码" - -#: forum/views/auth.py:315 -#, python-format -msgid "You removed the association with %s" -msgstr "" - -#: forum/views/auth.py:353 -#, python-format -msgid "Welcome back %s, you are now logged in" -msgstr "" - -#: forum/views/commands.py:20 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough reputation points to %(action)s." -"
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:29 -#, python-format -msgid "" -"\n" -" Sorry but you cannot %(action)s your own post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:38 -#, python-format -msgid "" -"\n" -" Sorry but anonymous users cannot %(action)s.
    \n" -" Please login or create an account here.\n" -" " -msgstr "" - -#: forum/views/commands.py:47 -#, python-format -msgid "" -"\n" -" Sorry, but you don't have enough %(action)s left for today..
    \n" -" The limit is %(limit)s per day..
    \n" -" Please check the
    faq\n" -" " -msgstr "" - -#: forum/views/commands.py:57 -#, python-format -msgid "" -"\n" -" Sorry, but you cannot %(action)s twice the same post.
    \n" -" Please check the faq\n" -" " -msgstr "" - -#: forum/views/commands.py:71 forum/views/commands.py:74 -#: forum/views/commands.py:111 -#, fuzzy -msgid "vote" -msgid_plural "votes" -msgstr[0] "票" -msgstr[1] "票" - -#: forum/views/commands.py:89 -#, python-format -msgid "" -"Sorry but you cannot cancel a vote after %(ndays)d %(tdays)s from the " -"original vote" -msgstr "" - -#: forum/views/commands.py:90 -msgid "day" -msgid_plural "days" -msgstr[0] "" -msgstr[1] "" - -#: forum/views/commands.py:110 -#, python-format -msgid "You have %(nvotes)s %(tvotes)s left today." -msgstr "" - -#: forum/views/commands.py:121 forum/views/commands.py:127 -msgid "flag posts" -msgstr "" - -#: forum/views/commands.py:132 -#, fuzzy -msgid "flags" -msgstr "标签" - -#: forum/views/commands.py:149 forum/views/commands.py:155 -#, fuzzy -msgid "like comments" -msgstr "评论" - -#: forum/views/commands.py:152 -#, fuzzy -msgid "like" -msgstr "链接" - -#: forum/views/commands.py:179 forum/views/commands.py:182 -#, fuzzy -msgid "delete comments" -msgstr "删除任何一个评论" - -#: forum/views/commands.py:197 -#, fuzzy -msgid "mark a question as favorite" -msgstr "这个问题被" - -#: forum/views/commands.py:221 forum/views/commands.py:233 -#, fuzzy -msgid "comment" -msgstr "评论" - -#: forum/views/commands.py:224 forum/views/commands.py:351 -msgid "Invalid request" -msgstr "" - -# todo - check if it's indeed plural -#: forum/views/commands.py:230 -#, fuzzy -msgid "edit comments" -msgstr "添加评论" - -#: forum/views/commands.py:240 -msgid "Comment is empty" -msgstr "" - -#: forum/views/commands.py:265 -#, fuzzy -msgid "accept answers" -msgstr "最先回答" - -#: forum/views/commands.py:271 -msgid "Sorry but only the question author can accept an answer" -msgstr "" - -#: forum/views/commands.py:295 forum/views/commands.py:298 -#, fuzzy -msgid "delete posts" -msgstr "删除" - -#: forum/views/meta.py:43 -#, python-format -msgid "Feedback message from %(site_name)s" -msgstr "" - -#: forum/views/meta.py:46 -msgid "Thanks for the feedback!" -msgstr "" - -#: forum/views/meta.py:53 -msgid "We look forward to hearing your feedback! Please, give it next time :)" -msgstr "" - -#: forum/views/readers.py:64 -#, fuzzy -msgid "Open questions without an accepted answer" -msgstr "您正在浏览的问题含有以下标签" - -#: forum/views/readers.py:73 -#, python-format -msgid "Questions tagged %(tag)s" -msgstr "" - -#: forum/views/readers.py:131 -#, python-format -msgid "questions matching '%(keywords)s'" -msgstr "" - -#: forum/views/users.py:152 -#, fuzzy -msgid "user profile" -msgstr "用户概览" - -#: forum/views/users.py:152 -#, fuzzy -msgid "user profile overview" -msgstr "用户概览" - -#: forum/views/users.py:186 -#, fuzzy -msgid "recent user activity" -msgstr "最近活动" - -#: forum/views/users.py:186 -#, fuzzy -msgid "profile - recent activity" -msgstr "最近活动" - -#: forum/views/users.py:196 -msgid "profile - votes" -msgstr "投票 - 用户资料" - -#: forum/views/users.py:203 -msgid "user reputation in the community" -msgstr "用户社区积分" - -#: forum/views/users.py:203 -msgid "profile - user reputation" -msgstr "积分 - 用户资料" - -#: forum/views/users.py:214 -#, fuzzy -msgid "favorite questions" -msgstr "收藏" - -#: forum/views/users.py:214 -msgid "profile - favorite questions" -msgstr "收藏 - 用户资料" - -#: forum/views/users.py:220 -#, fuzzy -msgid "subscription settings" -msgstr "用户参数的设置" - -#: forum/views/users.py:220 -#, fuzzy -msgid "profile - subscriptions" -msgstr "积分 - 用户资料" - -#: forum/views/users.py:230 -msgid "Notifications are now enabled" -msgstr "" - -#: forum/views/users.py:232 -msgid "Notifications are now disabled" -msgstr "" - -#: forum/views/users.py:239 -msgid "New subscription settings are now saved" -msgstr "" - -#: forum/views/writers.py:68 -msgid "uploading images is limited to users with >60 reputation points" -msgstr "上传图片只限于积分+60以上注册用户!" - -# todo take these out of settings -#: forum/views/writers.py:70 -msgid "allowed file types are 'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'" -msgstr "只允许上传'jpg', 'jpeg', 'gif', 'bmp', 'png', 'tiff'类型的文件!" - -#: forum/views/writers.py:72 -#, fuzzy, python-format -msgid "maximum upload file size is %sM" -msgstr "只允许上传%sK大小的文件!" - -#: forum/views/writers.py:74 -#, fuzzy, python-format -msgid "" -"Error uploading file. Please contact the site administrator. Thank you. %s" -msgstr "在文件上传过程中产生了错误,请联系管理员,谢谢^_^" - -#: forum/views/writers.py:85 -#, fuzzy -msgid "Initial revision" -msgstr "初始版本" - -#: forum/views/writers.py:143 -#, fuzzy -msgid "Retag" -msgstr "标签" - -#: forum_modules/books/urls.py:7 forum_modules/books/urls.py:8 -#: forum_modules/books/urls.py:9 -#, fuzzy -msgid "books/" -msgstr "读书" - -#: forum_modules/default_badges/badges.py:17 -#: forum_modules/default_badges/badges.py:24 -#: forum_modules/default_badges/badges.py:31 -#, fuzzy, python-format -msgid "Asked a question with %s views" -msgstr "我要提问" - -#: forum_modules/default_badges/badges.py:39 -#: forum_modules/default_badges/badges.py:53 -#: forum_modules/default_badges/badges.py:67 -#, fuzzy, python-format -msgid "Answer voted up %s times" -msgstr "该用户投的赞成票总数" - -#: forum_modules/default_badges/badges.py:46 -#: forum_modules/default_badges/badges.py:60 -#: forum_modules/default_badges/badges.py:74 -#, fuzzy, python-format -msgid "Question voted up %s times" -msgstr "该用户投的赞成票总数" - -#: forum_modules/default_badges/badges.py:82 -#: forum_modules/default_badges/badges.py:89 -#, fuzzy, python-format -msgid "Question favorited by %s users" -msgstr "您正在浏览的问题含有以下标签" - -#: forum_modules/default_badges/badges.py:97 -#, python-format -msgid "Deleted own post with score of %s or higher" -msgstr "" - -#: forum_modules/default_badges/badges.py:108 -#, python-format -msgid "Deleted own post with score of %s or lower" -msgstr "" - -#: forum_modules/default_badges/badges.py:120 -msgid "First flagged post" -msgstr "" - -#: forum_modules/default_badges/badges.py:127 -#, fuzzy -msgid "First down vote" -msgstr "投反对票" - -#: forum_modules/default_badges/badges.py:134 -msgid "First retag" -msgstr "" - -#: forum_modules/default_badges/badges.py:141 -#, fuzzy -msgid "First up vote" -msgstr "投赞成票" - -#: forum_modules/default_badges/badges.py:148 -msgid "First edit" -msgstr "" - -#: forum_modules/default_badges/badges.py:155 -#, fuzzy -msgid "First accepted answer on your own question" -msgstr "不是一个可以回答的“问题”" - -#: forum_modules/default_badges/badges.py:162 -#, fuzzy -msgid "Completed all user profile fields" -msgstr "完成个人所有资料" - -#: forum_modules/default_badges/badges.py:169 -msgid "First rollback" -msgstr "" - -#: forum_modules/default_badges/badges.py:177 -#, python-format -msgid "Voted %s times" -msgstr "" - -#: forum_modules/default_badges/badges.py:184 -#, fuzzy, python-format -msgid "Left %s comments" -msgstr "评论" - -#: forum_modules/default_badges/badges.py:192 -#, python-format -msgid "Answered your own question with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:205 -msgid "Strunk & White" -msgstr "" - -#: forum_modules/default_badges/badges.py:206 -#, fuzzy, python-format -msgid "Edited %s entries" -msgstr "修改回答" - -#: forum_modules/default_badges/badges.py:217 -msgid "Asked first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:228 -msgid "Answered first question with at least one up vote" -msgstr "" - -#: forum_modules/default_badges/badges.py:260 -#, python-format -msgid "First answer was accepted with at least %s up votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:271 -#, fuzzy, python-format -msgid "Accepted answer and voted up %s times" -msgstr "该回答总共有%d个投票" - -#: forum_modules/default_badges/badges.py:282 -#, python-format -msgid "" -"Answered a question more than %(dif_days)s days later with at least %" -"(up_votes)s votes" -msgstr "" - -#: forum_modules/default_badges/badges.py:295 -#, fuzzy, python-format -msgid "Created a tag used by %s questions" -msgstr "最新问题" - -#: forum_modules/default_badges/settings.py:6 -msgid "Popular Question views" -msgstr "" - -#: forum_modules/default_badges/settings.py:7 -msgid "" -"\n" -"Number of question views required to award a Popular Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:12 -#, fuzzy -msgid "Notable Question views" -msgstr "全部问题" - -#: forum_modules/default_badges/settings.py:13 -msgid "" -"\n" -"Number of question views required to award a Notable Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:18 -#, fuzzy -msgid "Famous Question views" -msgstr "问题列表" - -#: forum_modules/default_badges/settings.py:19 -msgid "" -"\n" -"Number of question views required to award a Famous Question badge to the " -"question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:24 -#, fuzzy -msgid "Nice Answer up votes" -msgstr "当前总票数" - -#: forum_modules/default_badges/settings.py:25 -msgid "" -"\n" -"Number of up votes required to award a Nice Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:30 -#, fuzzy -msgid "Nice Question up votes" -msgstr "您正在浏览的问题含有以下标签" - -#: forum_modules/default_badges/settings.py:31 -msgid "" -"\n" -"Number of up votes required to award a Nice Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:36 -#, fuzzy -msgid "Good Answer up votes" -msgstr "今日剩余投票数" - -#: forum_modules/default_badges/settings.py:37 -msgid "" -"\n" -"Number of up votes required to award a Good Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:42 -#, fuzzy -msgid "Good Question up votes" -msgstr "您正在浏览的问题含有以下标签" - -#: forum_modules/default_badges/settings.py:43 -msgid "" -"\n" -"Number of up votes required to award a Good Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:48 -#, fuzzy -msgid "Great Answer up votes" -msgstr "当前总票数" - -#: forum_modules/default_badges/settings.py:49 -msgid "" -"\n" -"Number of up votes required to award a Great Answer badge to the answer " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:54 -#, fuzzy -msgid "Great Question up votes" -msgstr "给任何问题整理标签" - -#: forum_modules/default_badges/settings.py:55 -msgid "" -"\n" -"Number of up votes required to award a Great Question badge to the question " -"author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:60 -#, fuzzy -msgid "Favorite Question favorite count" -msgstr "收藏" - -#: forum_modules/default_badges/settings.py:61 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Favorite Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:66 -msgid "Stellar Question favorite count" -msgstr "" - -#: forum_modules/default_badges/settings.py:67 -msgid "" -"\n" -"How many times a question needs to be favorited by other users to award a " -"Stellar Question badge to the question author\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:72 -msgid "Disciplined minimum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:73 -msgid "" -"\n" -"Minimum score a question needs to have to award the Disciplined badge to an " -"author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:78 -msgid "Peer Pressure maximum score" -msgstr "" - -#: forum_modules/default_badges/settings.py:79 -msgid "" -"\n" -"Maximum score a question needs to have to award the Peer Pressure badge to " -"an author of a question who deletes it.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:84 -msgid "Civic Duty votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:85 -msgid "" -"\n" -"Number of votes an user needs to cast to be awarded the Civic Duty badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:90 -#, fuzzy -msgid "Pundit number of comments" -msgstr "当前总票数" - -#: forum_modules/default_badges/settings.py:91 -msgid "" -"\n" -"Number of comments an user needs to post to be awarded the Pundit badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:96 -msgid "Self Learner up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:97 -msgid "" -"\n" -"Number of up votes an answer from the question author needs to have for the " -"author to be awarded the Self Learner badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:102 -msgid "Strunk and White updates" -msgstr "" - -#: forum_modules/default_badges/settings.py:103 -msgid "" -"\n" -"Number of question or answer updates an user needs to make to be awarded the " -"Strunk & White badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:108 -msgid "Enlightened up votes" -msgstr "" - -#: forum_modules/default_badges/settings.py:109 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Enlightened badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:114 -#, fuzzy -msgid "Guru up votes" -msgstr "票数" - -#: forum_modules/default_badges/settings.py:115 -msgid "" -"\n" -"Number of up votes an accepted answer needs to have for the author to be " -"awarded the Guru badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:120 -#, fuzzy -msgid "Necromancer up votes" -msgstr "撤销投票" - -#: forum_modules/default_badges/settings.py:121 -msgid "" -"\n" -"Number of up votes an answer needs to have for the author to be awarded the " -"Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:126 -msgid "Necromancer difference in days" -msgstr "" - -#: forum_modules/default_badges/settings.py:127 -msgid "" -"\n" -"Difference in days betwen the posted date of a question and an answer for " -"the answer author to be awarded the Necromancer badge.\n" -msgstr "" - -#: forum_modules/default_badges/settings.py:132 -msgid "Taxonomist usage count" -msgstr "" - -#: forum_modules/default_badges/settings.py:133 -msgid "" -"\n" -"How many usages a tag needs to have for the tag creator to be awarded the " -"Taxonomist badge. \n" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:31 -msgid "Sorry, your Facebook session has expired, please try again" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:33 -msgid "" -"The authentication with Facebook connect failed due to an invalid signature" -msgstr "" - -#: forum_modules/facebookauth/authentication.py:35 -msgid "" -"The authentication with Facebook connect failed, cannot find authentication " -"tokens" -msgstr "" - -#: forum_modules/localauth/forms.py:75 -msgid "Please enter valid username and password (both are case-sensitive)." -msgstr "" - -#: forum_modules/localauth/forms.py:79 -msgid "This account is inactive." -msgstr "" - -#: forum_modules/localauth/forms.py:81 -#, fuzzy -msgid "Login failed." -msgstr "用户名" - -#: forum_modules/localauth/forms.py:85 -msgid "This user is not a valid user" -msgstr "" - -#: forum_modules/localauth/forms.py:88 -#, fuzzy -msgid "Please enter username and password" -msgstr "使用帐号密码登录" - -#: forum_modules/localauth/forms.py:90 -#, fuzzy -msgid "Please enter your password" -msgstr "重设密码" - -#: forum_modules/localauth/forms.py:92 -#, fuzzy -msgid "Please enter user name" -msgstr "请帮助我们回答" - -#: forum_modules/localauth/urls.py:7 -msgid "local/" -msgstr "" - -#: forum_modules/localauth/views.py:33 -#, fuzzy -msgid "A validation email has been sent to your email address. " -msgstr "和您的邮件地址是绑定的" - -#: forum_modules/oauthauth/consumer.py:33 -msgid "Error, the oauth token is not on the server" -msgstr "" - -#: forum_modules/oauthauth/consumer.py:38 -msgid "Something went wrong! Auth tokens do not match" -msgstr "" - -#: forum_modules/openidauth/consumer.py:40 -msgid "Sorry, but your input is not a valid OpenId" -msgstr "" - -#: forum_modules/openidauth/consumer.py:92 -msgid "The OpenId authentication request was canceled" -msgstr "" - -#: forum_modules/openidauth/consumer.py:94 -msgid "The OpenId authentication failed: " -msgstr "" - -#: forum_modules/openidauth/consumer.py:96 -msgid "Setup needed" -msgstr "" - -#: forum_modules/openidauth/consumer.py:98 -msgid "The OpenId authentication failed with an unknown status: " -msgstr "" - -#: forum_modules/openidauth/templates/openidurl.html:7 -#, fuzzy -msgid "Enter your OpenId Url" -msgstr "使用OpenID注册" - -#: forum_modules/project_badges/badges.py:9 -#, python-format -msgid "Got %s upvotes in a question tagged with \"bug\"" -msgstr "" - -#: forum_modules/recaptcha/formfield.py:20 -msgid "Invalid captcha" -msgstr "" - -#: forum_modules/sximporter/importer.py:39 -#, python-format -msgid "Unknown user %(number)d" -msgstr "" - -#: forum_modules/sximporter/urls.py:8 -msgid "sximporter/" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:7 -msgid "SX Importer" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:10 -msgid "Welcome to Stack Exchange dump importer." -msgstr "" - -#: forum_modules/sximporter/templates/page.html:16 -msgid "Your user id in stack exchange" -msgstr "" - -#: forum_modules/sximporter/templates/page.html:20 -msgid "Merge users with same user name and email" -msgstr "" - -#: locale/phrases.py:1 -msgid "Test Phrase 1" -msgstr "" - -#: locale/phrases.py:2 -msgid "Test Phrase 2" -msgstr "" - -#: locale/phrases.py:3 -msgid "Test Phrase 3" -msgstr "" - -#: locale/phrases.py:4 -msgid "Test Phrase n" -msgstr "" - -#, fuzzy -#~ msgid "i-names are not supported" -#~ msgstr "基本的HTML标签也是支持的" - -# translation and user name validation are language-specific -#~ msgid "invalid user name" -#~ msgstr "用户名只能包含英文字母、数字和下划线" - -# minimal length of user name may be language specific -#~ msgid "username too short" -#~ msgstr "用户名太短,请使用三个或三个以上字符" - -#~ msgid "this name is already in use - please try anoter" -#~ msgstr "该用户名已被注册,请换一个试试" - -#~ msgid "" -#~ "This email is already registered in our database. Please " -#~ "choose another." -#~ msgstr "该电子邮件已被注册,请选择另一个再试。" - -#~ msgid "Incorrect username." -#~ msgstr "选择一个用户名" - -#, fuzzy -#~ msgid "signup/" -#~ msgstr "注册帐号" - -# todo please check this in chinese -#, fuzzy -#~ msgid "Account deleted." -#~ msgstr "取消" - -#, fuzzy -#~ msgid "Request for new password" -#~ msgstr "重设密码" - -#~ msgid "site title" -#~ msgstr "CNProg.com" - -#~ msgid "site slogan" -#~ msgstr "程序员问答社区" - -#~ msgid "meta site content" -#~ msgstr "" -#~ "中国程序员的编程技术问答社区。我们做专业的、可协作编辑的技术问答社区。" - -#~ msgid "" -#~ "please use space to separate tags (this enables autocomplete feature)" -#~ msgstr "多个标签请用空格间隔-最多5个标签。(优先使用自动匹配的英文标签。)" - -#~ msgid "responses" -#~ msgstr "回应" - -#~ msgid "profile - responses" -#~ msgstr "回应 - 用户资料" - -#~ msgid "users favorite questions" -#~ msgstr "用户收藏的问题" - -#~ msgid "preferences" -#~ msgstr "设置" - -#~ msgid "profile - user preferences" -#~ msgstr "设置 - 用户资料" - -#, fuzzy -#~ msgid " ago" -#~ msgstr "前" - -#~ msgid "Save" -#~ msgstr "保存" - -#~ msgid "learn more about OpenID" -#~ msgstr "了解更多有关OpenID的信息" - -#~ msgid "User name" -#~ msgstr "您的大名" - -#~ msgid "Email: (won't be shown to anyone)" -#~ msgstr "电子邮件:(不会公开显示)" - -#~ msgid "" -#~ "gold badge descriptionGold badge is very rare. To obtain it you have to " -#~ "show profound knowledge and ability in addition to actively participating " -#~ "in the community. Gold badge is the highest award in this community." -#~ msgstr "" -#~ "金牌是十分罕见的。你不仅要参与社区的提问、回答、投票等活动,而且需要有高深" -#~ "的知识和能力才能获得。" - -#~ msgid "" -#~ "silver badge descriptionObtaining silver badge requires significant " -#~ "patience. If you got one, you've very significantly contributed to this " -#~ "community" -#~ msgstr "它是不同寻常的荣誉,只要你付出足够的努力就会得到。" - -#~ msgid "Connect with Twitter" -#~ msgstr "同步Twitter消息" - -#~ msgid "Twitter account name:" -#~ msgstr "账号:" - -#~ msgid "Twitter password:" -#~ msgstr "密码:" - -#~ msgid "Send my Questions to Twitter" -#~ msgstr "发布我的提问到我的Twitter" - -#~ msgid "Send my Answers to Twitter" -#~ msgstr "发布我的回答到我的Twitter" - -#, fuzzy -#~ msgid "" -#~ "bronze badge descriptionIf you are active in this community, you will get " -#~ "this medal - still it is a special honor." -#~ msgstr "铜牌会在你活跃于社区时产生,它相对容易获得,但也是一种特殊的荣誉。" - -# base_content.html -#~ msgid "congratulations, community gave you a badge" -#~ msgstr "恭喜您,社区给您颁发了奖牌" - -#~ msgid "see" -#~ msgstr "查看" - -#, fuzzy -#~ msgid "About us" -#~ msgstr "关于本站" - -#, fuzzy -#~ msgid "Contact" -#~ msgstr "联系我们" - -#~ msgid "my profile" -#~ msgstr "我的资料" - -#~ msgid "last updated questions" -#~ msgstr "最新更新的问题" - -#~ msgid "given to" -#~ msgstr "授予" - -#~ msgid "subscribe to last 30 questions by RSS" -#~ msgstr "RSS订阅最新30个问题" - -#~ msgid "Still looking for more? See" -#~ msgstr "在寻找更多问题吗?请查阅" - -#, fuzzy -#~ msgid "complete list of quesionts" -#~ msgstr "全部问题列表" - -#, fuzzy -#~ msgid "Size per page:" -#~ msgstr "每页显示" - -#~ msgid "" -#~ "remove favorite mark from this question (click again to restore mark)" -#~ msgstr "我要收藏这个问题(再次点击取消操作)" - -#~ msgid "flag offensive" -#~ msgstr "垃圾帖?" - -#~ msgid "Answers" -#~ msgstr "个回答" - -#~ msgid "i like this answer (click again to cancel)" -#~ msgstr "这篇帖子有价值(再次点击取消操作)" - -#~ msgid "i dont like this answer (click again to cancel)" -#~ msgstr "这篇帖子没有价值(再次点击取消操作)" - -#~ msgid "mark this answer as favorite (click again to undo)" -#~ msgstr "最佳答案(再次点击取消操作)" - -# todo please check this in chinese -#~ msgid "undelete" -#~ msgstr "取消" - -#~ msgid "Login to answer" -#~ msgstr "登录并回答该问题" - -#~ msgid "ago" -#~ msgstr "前" - -#, fuzzy -#~ msgid "please ask a relevant question" -#~ msgstr "我要提问" - -# index.html -#~ msgid "Community wiki" -#~ msgstr "社区Wiki" - -# must have extra space after in english -#, fuzzy -#~ msgid "Browse questions with tag of " -#~ msgstr "查看有关" - -#~ msgid "have %(num_q)s unanswered questions" -#~ msgstr "" -#~ "您正在浏览所有
    %(num_q)s
    个

    问题" -#~ "按 问题创建时间 排序。最新加入的问题将显示在最前面。

    " - -# in unanswered.html and somewhere else -#~ msgid "Have a total of" -#~ msgstr "您正在浏览所有" - -#~ msgid "avatar" -#~ msgstr "修改头像" - -#~ msgid "User questions" -#~ msgstr "个问题" - -#, fuzzy -#~ msgid "" -#~ "the answer has been commented %(answered_question.comment_count)s times" -#~ msgstr "该回答有%d条评论" - -#~ msgid "votes total" -#~ msgstr "个投票" - -#~ msgid "Tags" -#~ msgstr "个标签" - -#, fuzzy -#~ msgid "this questions was selected as favorite" -#~ msgstr "这个问题被" - -#~ msgid "Change email" -#~ msgstr "更换电子邮件" - -#, fuzzy -#~ msgid "Account: change OpenID URL" -#~ msgstr "更换OpenID地址" - -#, fuzzy -#~ msgid "Account: change password" -#~ msgstr "修改密码" - -#, fuzzy -#~ msgid "New password again" -#~ msgstr "发送新密码" - -#, fuzzy -#~ msgid "" -#~ "Your OpenID is accepted. Please complete this to finish registration." -#~ msgstr "您的OpenID帐号已经验证通过! 请完成最后一步 - 绑定OpenID到您的帐号。" - -#~ msgid "New account" -#~ msgstr "新帐号" - -#~ msgid "User name (will be shown to others, cannot be modified)" -#~ msgstr "用户名(在社区显示友好名称,不可更改)" - -#, fuzzy -#~ msgid "Password:" -#~ msgstr "密码" - -#, fuzzy -#~ msgid "Delete account permanently" -#~ msgstr "删除帐号" - -#~ msgid "Send new password" -#~ msgstr "发送新密码" - -#~ msgid "Lost your password? No problem - here you can reset it." -#~ msgstr "丢失了您的密码? 你可以在这里重设密码。" - -#~ msgid "" -#~ "Please enter your username below and new password will be sent to your " -#~ "registered e-mail" -#~ msgstr "请输入用户名,新的密码会发送到你注册时候填写的电子邮件。" - -# todo - check translation or see if it's indeed true -#~ msgid "" -#~ "Note: your new password will be activated only after you click the " -#~ "activation link in the email message" -#~ msgstr "注意: 新的密码只有您在激活邮件中的链接后才会被激活。" - -#~ msgid "we support two login modes" -#~ msgstr "" -#~ "CNProg支持两种登录模式。您可以使用帐号、密码登录,或者使用OpenID登" -#~ "录。" - -#~ msgid "Login with your OpenID" -#~ msgstr "使用OpenID登录" - -#~ msgid "select openid provider" -#~ msgstr "1)请选择您的帐号类:" - -#~ msgid "verify openid link and login" -#~ msgstr "2)型并完成正确的OpenID地址(如:替换“{username}”为您的对应帐号):" - -#, fuzzy -#~ msgid "Create new acccount" -#~ msgstr "注册新帐号" - -#~ msgid "" -#~ "We support two types of user registration: conventional username/" -#~ "password, and" -#~ msgstr "我们支持两种注册方式,你可以使用常规的用户名、密码方式注册,或者" - -#~ msgid "the OpenID method" -#~ msgstr "使用OpenID帐号注册" - -#, fuzzy -#~ msgid "Sorry, looks like we have some errors" -#~ msgstr "请注意以下错误:" - -#~ msgid "Conventional registration" -#~ msgstr "请注意以下错误:" - -#~ msgid "choose a user name" -#~ msgstr "选择一个用户名" - -#~ msgid "back to login" -#~ msgstr "返回登录" - -#~ msgid "meta site keywords, comma separated" -#~ msgstr "" -#~ "技术问答社区,中国程序员,编程技术社区,程序员社区,程序员论坛,程序员" -#~ "wiki,程序员博客" - -#~ msgid "what is this website" -#~ msgstr "" -#~ "CNProg是一个面向程序员的可协作编辑的开放源代码问" -#~ "答社区。" - -#~ msgid "what can one do on this website" -#~ msgstr "" -#~ "您可以在这里提问各类程序技术问题 - 问题不分语言和平台。 " -#~ "同时也希望您对力所能及的问题,给予您的宝贵答案。" - -#~ msgid "book technical Q&A" -#~ msgstr "图书相关的技术答疑" - -#~ msgid "blog" -#~ msgstr "Blog" - -#~ msgid "current revision" -#~ msgstr "当前版本" - -#~ msgid "Change now" -#~ msgstr "现在修改" - -#~ msgid "uses tags for the classification of questions" -#~ msgstr "用标签来分类系统的信息" - -#~ msgid "Found by tag" -#~ msgstr "标签问题" - -#~ msgid "" -#~ "\n" -#~ "\t\t\thave total %(q_num)s questions tagged %(tagname)s\n" -#~ "\t\t\t" -#~ msgid_plural "" -#~ "\n" -#~ "\t\t\thave total %(q_num)s questions tagged %(tagname)s\n" -#~ "\t\t\t" -#~ msgstr[0] "" -#~ "\n" -#~ "您正在浏览所有
    %(q_num)s
    个标记为%(tagname)s

    " -#~ msgstr[1] "" -#~ "\n" -#~ "您正在浏览所有
    %(q_num)s
    个标记为%(tagname)s

    " - -#~ msgid "" -#~ "\n" -#~ "\t\t\thave total %(q_num)s questions containing %(searchtitle)s\n" -#~ "\t\t\t" -#~ msgid_plural "" -#~ "\n" -#~ "\t\t\thave total %(q_num)s questions containing %(searchtitle)s\n" -#~ "\t\t\t" -#~ msgstr[0] "" -#~ "\n" -#~ "您正在浏览所有
    %(q_num)s
    个标题含有" -#~ "%(searchtitle)s

    " -#~ msgstr[1] "" -#~ "\n" -#~ "您正在浏览所有
    %(q_num)s
    个标题含有" -#~ "%(searchtitle)s

    " - -#~ msgid "number of questions" -#~ msgstr "个" - -#~ msgid "number of unanswered questions" -#~ msgstr "" -#~ "个 没有回答的 问题。" - -#~ msgid "tagged with" -#~ msgstr "标记为" - -#~ msgid "whose title contains" -#~ msgstr "标题含有" - -#~ msgid "number of questions end of sentence" -#~ msgstr "的问题。" - -#~ msgid "Most recently answered ones are shown first." -#~ msgstr "最后被回答或者>更新的问题将显示在最前面。" - -#~ msgid "Most voted questions are shown first" -#~ msgstr "投票最多的问题将显示在最前面。" - -#~ msgid "" -#~ "Anyone can ask questions and give answers, points are not necessary for " -#~ "that." -#~ msgstr "对于正常使用社区进行提问、回答而言,积分不是必须的。" - -#~ msgid "" -#~ "As we've said before, users help running this site. Point system helps " -#~ "select users who can administer this community." -#~ msgstr "" -#~ "我们一再声明,CNProg由你来运行和维护。如果你想帮助我们来运作CNProg,你需要" -#~ "一定的积分等级。" - -#~ msgid "" -#~ "Reputation points roughly measure how community trusts you. These points " -#~ "are given to you directly by other members of the community." -#~ msgstr "" -#~ "积分是一种用来粗略衡量社区对你有多信任的数据。积分不是有谁来支付或直接给予你的,而是你通过获得其他用户的支持和信" -#~ "任“赚得”的。" - -#~ msgid "" -#~ "For example, if you ask an interesting question or give a helpful answer, " -#~ "your input will be upvoted and you will gain more trust in the community." -#~ msgstr "" -#~ "举例来说,如果你提了一个非常有帮助的问题或者做了很有用的回答,你将会被其他" -#~ "用户投赞成票。" - -#~ msgid "" -#~ "If on the other hand someone gives a misleading answer, the answer will " -#~ "be voted down and he/she loses some points." -#~ msgstr "" -#~ "相反,你提了不受欢迎的问题,或者误导用户的回答,你将可能被其他用户投反对" -#~ "票。每个赞成" - -#~ msgid "" -#~ "Each vote in favor will generate 10 points, each vote " -#~ "against will subtract 2 points." -#~ msgstr "" -#~ "票会帮你产生10个社区积分,每个反对票会相应扣除你" -#~ "2个积分。" - -#~ msgid "" -#~ "Through the votes of other people you can accumulate a maximum of " -#~ "200 points." -#~ msgstr "" -#~ "每天通过别人投赞成票,你最多只能产生200个积分,这是上限。" - -#~ msgid "After accumulating certain number of points, you can do more:" -#~ msgstr "当你累计到一定>积分,你可以在社区做更多的事情:" - -#~ msgid "gold badge: the highest honor and is very rare" -#~ msgstr "金牌:十分罕见之最高荣耀" - -#~ msgid "" -#~ "silver badge: occasionally awarded for the very high quality contributions" -#~ msgstr "银牌:偶尔颁发之优质奖章" - -#~ msgid "Gold badge is very rare." -#~ msgstr "金牌是十分罕见的。" - -#~ msgid "Gold badge is the highest award in this community." -#~ msgstr "获得金牌意味着你在某个层次上已经达到了顶峰。" - -#~ msgid "Obtaining silver badge requires significant patience." -#~ msgstr "银牌需要经过长时间的奋斗才能获得。" diff --git a/forum/modules/template_loader.py/log/README.TXT b/forum/modules/template_loader.py/log/README.TXT deleted file mode 100644 index 54247a8..0000000 --- a/forum/modules/template_loader.py/log/README.TXT +++ /dev/null @@ -1 +0,0 @@ -this file is just a placeholder so the empty directory is not ignored by version control \ No newline at end of file diff --git a/forum/modules/template_loader.py/manage.py b/forum/modules/template_loader.py/manage.py deleted file mode 100644 index f9894f5..0000000 --- a/forum/modules/template_loader.py/manage.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python -from django.core.management import execute_manager -try: - import settings # Assumed to be in the same directory. -except ImportError, e: - import traceback - traceback.print_exc() - import sys - sys.stderr.write("Error: Can't find the file 'forms.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file forms.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) - sys.exit(1) - -if __name__ == "__main__": - execute_manager(settings) diff --git a/forum/modules/template_loader.py/osqa.iml b/forum/modules/template_loader.py/osqa.iml deleted file mode 100644 index aa15d10..0000000 --- a/forum/modules/template_loader.py/osqa.iml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/forum/modules/template_loader.py/osqa.wsgi.dist b/forum/modules/template_loader.py/osqa.wsgi.dist deleted file mode 100644 index 70c0da8..0000000 --- a/forum/modules/template_loader.py/osqa.wsgi.dist +++ /dev/null @@ -1,11 +0,0 @@ -import os -import sys -sys.path.append('/path/to_dir_above') -sys.path.append('/path/to_dir_above/osqa') -# The first part of this module name should be identical to the directory name -# of the OSQA source. For instance, if the full path to OSQA is -# /home/osqa/osqa-server, then the DJANGO_SETTINGS_MODULE should have a value -# of 'osqa-server.settings'. -os.environ['DJANGO_SETTINGS_MODULE'] = 'osqa.settings' -import django.core.handlers.wsgi -application = django.core.handlers.wsgi.WSGIHandler() diff --git a/forum/modules/template_loader.py/rmpyc b/forum/modules/template_loader.py/rmpyc deleted file mode 100644 index 014575f..0000000 --- a/forum/modules/template_loader.py/rmpyc +++ /dev/null @@ -1 +0,0 @@ -rm `find . -name '*.pyc'` diff --git a/forum/modules/template_loader.py/settings.py b/forum/modules/template_loader.py/settings.py deleted file mode 100644 index bd76b22..0000000 --- a/forum/modules/template_loader.py/settings.py +++ /dev/null @@ -1,115 +0,0 @@ -# encoding:utf-8 -# Django settings for lanai project. -import os.path -import sys - -SITE_ID = 1 - -ADMIN_MEDIA_PREFIX = '/admin_media/' -SECRET_KEY = '$oo^&_m&qwbib=(_4m_n*zn-d=g#s0he5fx9xonnym#8p6yigm' -# List of callables that know how to import templates from various sources. -TEMPLATE_LOADERS = ( - 'django.template.loaders.filesystem.load_template_source', - 'django.template.loaders.app_directories.load_template_source', - 'forum.modules.module_templates_loader', - 'forum.skins.load_template_source', -# 'django.template.loaders.eggs.load_template_source', -) - -MIDDLEWARE_CLASSES = [ - #'django.middleware.gzip.GZipMiddleware', - 'django.contrib.sessions.middleware.SessionMiddleware', - #'django.middleware.locale.LocaleMiddleware', - #'django.middleware.cache.UpdateCacheMiddleware', - 'django.middleware.common.CommonMiddleware', - #'django.middleware.cache.FetchFromCacheMiddleware', - 'forum.middleware.extended_user.ExtendedUser', - #'django.middleware.sqlprint.SqlPrintingMiddleware', - 'forum.middleware.anon_user.ConnectToSessionMessagesMiddleware', - 'forum.middleware.request_utils.RequestUtils', - 'forum.middleware.cancel.CancelActionMiddleware', - #'recaptcha_django.middleware.ReCaptchaMiddleware', - 'django.middleware.transaction.TransactionMiddleware', -] - -TEMPLATE_CONTEXT_PROCESSORS = ( - 'django.core.context_processors.request', - 'forum.context.application_settings', - #'django.core.context_processors.i18n', - 'forum.user_messages.context_processors.user_messages',#must be before auth - 'django.core.context_processors.auth', #this is required for admin -) - -ROOT_URLCONF = 'urls' - -TEMPLATE_DIRS = ( - os.path.join(os.path.dirname(__file__),'forum','skins').replace('\\','/'), -) - -#UPLOAD SETTINGS -FILE_UPLOAD_TEMP_DIR = os.path.join(os.path.dirname(__file__), 'tmp').replace('\\','/') -FILE_UPLOAD_HANDLERS = ("django.core.files.uploadhandler.MemoryFileUploadHandler", - "django.core.files.uploadhandler.TemporaryFileUploadHandler",) -DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage' -# for user upload -ALLOW_FILE_TYPES = ('.jpg', '.jpeg', '.gif', '.bmp', '.png', '.tiff') -# unit byte -ALLOW_MAX_FILE_SIZE = 1024 * 1024 - -# User settings -from settings_local import * - -try: - if len(FORUM_SCRIPT_ALIAS) > 0: - APP_URL = '%s/%s' % (APP_URL, FORUM_SCRIPT_ALIAS[:-1]) -except NameError: - pass - -app_url_split = APP_URL.split("://") - -APP_PROTOCOL = app_url_split[0] -APP_DOMAIN = app_url_split[1].split('/')[0] -APP_BASE_URL = '%s://%s' % (APP_PROTOCOL, APP_DOMAIN) - -FORCE_SCRIPT_NAME = '' - -for path in app_url_split[1].split('/')[1:]: - FORCE_SCRIPT_NAME = FORCE_SCRIPT_NAME + '/' + path - -if FORCE_SCRIPT_NAME.endswith('/'): - FORCE_SCRIPT_NAME = FORCE_SCRIPT_NAME[:-1] - -INSTALLED_APPS = [ - 'django.contrib.auth', - 'django.contrib.contenttypes', - 'django.contrib.sessions', - 'django.contrib.sites', - 'django.contrib.admin', - 'django.contrib.humanize', - 'django.contrib.sitemaps', - 'django.contrib.markup', - 'forum', -] - -if DEBUG: - try: - import debug_toolbar - MIDDLEWARE_CLASSES.append('debug_toolbar.middleware.DebugToolbarMiddleware') - INSTALLED_APPS.append('debug_toolbar') - except: - pass - -try: - import south - INSTALLED_APPS.append('south') -except: - pass - -if not DEBUG: - try: - import rosetta - INSTALLED_APPS.append('rosetta') - except: - pass - -AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend',] diff --git a/forum/modules/template_loader.py/settings_local.py.dist b/forum/modules/template_loader.py/settings_local.py.dist deleted file mode 100644 index 9768cfa..0000000 --- a/forum/modules/template_loader.py/settings_local.py.dist +++ /dev/null @@ -1,54 +0,0 @@ -# encoding:utf-8 -import os.path - -SITE_SRC_ROOT = os.path.dirname(__file__) -LOG_FILENAME = 'django.osqa.log' - -#for logging -import logging -logging.basicConfig( - filename=os.path.join(SITE_SRC_ROOT, 'log', LOG_FILENAME), - level=logging.ERROR, - format='%(pathname)s TIME: %(asctime)s MSG: %(filename)s:%(funcName)s:%(lineno)d %(message)s', -) - -#ADMINS and MANAGERS -ADMINS = () -MANAGERS = ADMINS - -DEBUG = False -DEBUG_TOOLBAR_CONFIG = { - 'INTERCEPT_REDIRECTS': True -} -TEMPLATE_DEBUG = DEBUG -INTERNAL_IPS = ('127.0.0.1',) - - -DATABASE_NAME = '' # Or path to database file if using sqlite3. -DATABASE_USER = '' # Not used with sqlite3. -DATABASE_PASSWORD = '' # Not used with sqlite3. -DATABASE_ENGINE = '' #mysql, etc -DATABASE_HOST = '' -DATABASE_PORT = '' - -CACHE_BACKEND = 'file://%s' % os.path.join(os.path.dirname(__file__),'cache').replace('\\','/') -#CACHE_BACKEND = 'dummy://' -SESSION_ENGINE = 'django.contrib.sessions.backends.db' - -# This should be equal to your domain name, plus the web application context. -# This shouldn't be followed by a trailing slash. -# I.e., http://www.yoursite.com or http://www.hostedsite.com/yourhostapp -APP_URL = 'http://' - -#LOCALIZATIONS -TIME_ZONE = 'America/New_York' - -#OTHER SETTINGS - -USE_I18N = True -LANGUAGE_CODE = 'en' - -DJANGO_VERSION = 1.1 -OSQA_DEFAULT_SKIN = 'default' - -DISABLED_MODULES = ['books', 'recaptcha', 'project_badges'] diff --git a/forum/modules/template_loader.py/tmp/README b/forum/modules/template_loader.py/tmp/README deleted file mode 100644 index 708174a..0000000 --- a/forum/modules/template_loader.py/tmp/README +++ /dev/null @@ -1 +0,0 @@ -Just an empty placeholder. \ No newline at end of file diff --git a/forum/modules/template_loader.py/urls.py b/forum/modules/template_loader.py/urls.py deleted file mode 100644 index 0355657..0000000 --- a/forum/modules/template_loader.py/urls.py +++ /dev/null @@ -1,13 +0,0 @@ -from django.conf.urls.defaults import * -from django.utils.translation import ugettext as _ -from django.conf import settings - -urlpatterns = patterns('', - (r'', include('forum.urls')), -) - -if 'rosetta' in settings.INSTALLED_APPS: - urlpatterns += patterns('', - url(r'^rosetta/', include('rosetta.urls')), - ) -