Differences between revisions 17 and 18
Revision 17 as of 2007-09-10 18:33:34
Size: 2966
Editor: n01-114
Comment: Some clarification about __builtins__. Reordered minor annoyances too.
Revision 18 as of 2007-09-10 19:48:24
Size: 3001
Editor: n01-114
Comment: Added a ref. to django.util.functional on the issue about __unicode__
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
   * There is also a problem with the algorithm deciding whether to call {{{__str__}}} or {{{__unicode__}}}. More research is needed, but it affects the lazy string evaluation on which the Django i18n system relies.    * There is also a problem with the algorithm deciding whether to call {{{__str__}}} or {{{__unicode__}}}. More research is needed, but it affects the lazy string evaluation on which the Django i18n system relies ({{{django/utils/functional.py}}}).

Gaps between Jython and Django

Mayor problems

Minor annoyances

  • slice should be a type, not a function.
  • PyBoolean.__tojava__ returns an Integer

    • It affects zxJDBC unless a DataHandler sets the right type of boolean parameters. Fortunately, JDBC30DataHandler does this thing, at least on my limited tests -- LeonardoSoto

  • 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 __builtins__ as a module. Django adds "_" as a convenience method for calling gettext in django/conf/__init__.py.

    • According to the Python docs, __builtins__ is a implementation detail and shouldn't be used by portable applications, so it's a Django problem

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.

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