about.py 2.3 KB

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