about.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. from django.core.management.base import BaseCommand, CommandError
  2. from django.utils import timezone
  3. from misago import get_version
  4. from optparse import make_option
  5. class Command(BaseCommand):
  6. """
  7. Displays version number and license
  8. """
  9. help = 'Displays Misago Credits'
  10. def handle(self, *args, **options):
  11. self.stdout.write('\n')
  12. self.stdout.write(' _\n')
  13. self.stdout.write(' ____ ___ (_)________ ____ ____ \n')
  14. self.stdout.write(' / __ `__ \/ / ___/ __ `/ __ `/ __ \ \n')
  15. self.stdout.write(' / / / / / / (__ ) /_/ / /_/ / /_/ / \n')
  16. self.stdout.write(' /_/ /_/ /_/_/____/\__,_/\__, /\____/ \n')
  17. self.stdout.write(' /____/\n')
  18. self.stdout.write('\n')
  19. self.stdout.write(' Your community is powered by Misago v.%s' % get_version())
  20. self.stdout.write('\n For help and feedback visit http://misago-project.org')
  21. self.stdout.write('\n\n')
  22. self.stdout.write('================================================================================')
  23. self.stdout.write('\n\n')
  24. self.stdout.write('Copyright (C) %s, Rafal Piton' % timezone.now().year)
  25. self.stdout.write('\n')
  26. self.stdout.write('\nThis program is free software; you can redistribute it and/or modify it under')
  27. self.stdout.write('\nthe terms of the GNU General Public License version 3 as published by')
  28. self.stdout.write('\nthe Free Software Foundation')
  29. self.stdout.write('\n')
  30. self.stdout.write('\nThis program is distributed in the hope that it will be useful, but')
  31. self.stdout.write('\nWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY')
  32. self.stdout.write('\nor FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License')
  33. self.stdout.write('\nfor more details.')
  34. self.stdout.write('\n')
  35. self.stdout.write('\nYou should have received a copy of the GNU General Public License along')
  36. self.stdout.write('\nalong with this program. If not, see <http://www.gnu.org/licenses/>.')
  37. self.stdout.write('\n\n')