Differences between revisions 27 and 28
Revision 27 as of 2007-09-15 05:57:14
Size: 3648
Editor: pc-112-141-104-200
Comment: Added strptime problem
Revision 28 as of 2007-09-20 21:11:21
Size: 3975
Editor: pc-112-141-104-200
Comment: updated
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
   * {{{u'%s' % CustomClassThatImplementsStrAndUnicode() }}} raises unsupported operand type(s) for %
Line 15: Line 16:
   * Django [http://code.djangoproject.com/changeset/6194 works around this] until it's fixed.
Line 22: Line 24:
 * Jython does not have {{{os.W_OK}}} needed in {{{django/core/management.py}}}. This probably will not be hard to add this since {{{java.io.File}}} has a {{{canWrite()}}}.
   * {{{os.chmod}}} should be implemented too (After checking for write permissions, Django will try to change them if necessary).
     * That's hard. Maybe Django shouldn't check for permissions if running on Jython.
 * Jython does not have {{{os.getpid()}}}.
   *
Line 28: Line 27:
 * Jython methods are not descriptors. It seems a implementation datail. [https://hg.leosoto.com/django.jythonport/diff/50371f2df15a/django/dispatch/saferef.py Here] is the relevant code and a potential fix from the Django side.  * Jython methods are not descriptors. It seems a implementation detail. [https://hg.leosoto.com/django.jythonport/diff/50371f2df15a/django/dispatch/saferef.py Here] is the relevant code and a potential fix from the Django side.
Line 37: Line 36:
 * Jython does not have {{{os.getpid()}}}.
   * Django workarounds it now.
 * Jython does not have {{{os.W_OK}}} needed in {{{django/core/management.py}}}. This probably will not be hard to add this since {{{java.io.File}}} has a {{{canWrite()}}}.
   * {{{os.chmod}}} should be implemented too (After checking for write permissions, Django will try to change them if necessary).
     * That's hard. Maybe Django shouldn't check for permissions if running on Jython.
   * Django don't tries to check or change file permissions when running on Jython now

Gaps between Jython and Django

Major problems

Minor annoyances

Already Fixed

  • Jython does not have sys.stdout.isatty. Jython should get added to the exclusions around that call in django/core/management.py (win32 and 'Pocket PC' are already excluded).

  • stringmap (or the __dict__ implementation) needs a pop(o) method.

  • Jython lists and tuples don't have __iter__ .

  • Jython does not have os.getpid().

    • Django workarounds it now.
  • Jython does not have os.W_OK needed in django/core/management.py. This probably will not be hard to add this since java.io.File has a canWrite().

    • os.chmod should be implemented too (After checking for write permissions, Django will try to change them if necessary).

      • That's hard. Maybe Django shouldn't check for permissions if running on Jython.
    • Django don't tries to check or change file permissions when running on Jython now

DjangoOnJython (last edited 2014-05-22 23:24:19 by AdamBurke)