1. 07 Aug, 2017 1 commit
  2. 12 Jun, 2017 1 commit
  3. 07 Oct, 2016 1 commit
  4. 08 Apr, 2016 1 commit
  5. 01 Apr, 2016 4 commits
  6. 11 Mar, 2016 1 commit
    • mattdrayer/xblock-translations: Add I18N/L10N support to XBlocks via the runtime · 3ed3fea2
      * mattdrayer:  Latest proto code
      * mattdrayer:  Add translation.py
      * asadiqbal08: Xblock translation ugettext update, remove translation.py
      * mattdrayer:  Additional I18N work -- starting to see some translations!
      * asadiqbal08: Trying to make xBlock message catalog files path dynamic
      * mattdrayer:  Remove unnecessary modifications
      * mattdrayer:  Cleaned up implementation
      * mattdrayer:  Moved import statement
      * asadiqbal08: update as suggested
      * asadiqbal08: xblock its own domain
      * asadiqbal08: translation: secure none object
      * asadiqbal08: pylint
      * asadiqbal08: get locale from xblock
      * asadiqbal08: update
      * mattdrayer:  Determine XBlock locale path within runtime service
      * mattdrayer:  Determine module location via the runtime
      * mattdrayer:  Remove ModuleI18nService reference
      * asadiqbal08: override the service in studio
      * asadiqbal08: remove import
      * asadiqbal08: update the Modulei18nService
      * asadiqbal08: update the Modulei18nService
      * mattdrayer:  Remove redundant __class__ reference
      * asadiqbal08: update the docstring
      * asadiqbal08: tests
      * mattdrayer:  Remove specific ugettext override from ModuleI18nService
      * mattdrayer:  Move service operation to base class
      * mattdrayer:  Address quality violations
      * asadiqbal08: Investigating the test failure issue on jenkins and solved
      * asadiqbal08: First utilizing the parent class method
      * mattdrayer:  Use recommended callable approach
      * asadiqbal08: remove unused code
      * asadiqbal08: Updated the test to use cms preview module system runtime in order to get i18n service.
      * asadiqbal08: Pylint quality
      * asadiqbal08: update the service call to check xblock declarations
      * asadiqbal08: update doc string
      * asadiqbal08: i18n callable test in studio
      * asadiqbal08: test lms runtime for modulei18n service
      * asadiqbal08: add doc strings
      * asadiqbal08: Rename locale and domain to Flask-Babel convention
      Matt Drayer committed
  7. 28 Oct, 2015 1 commit
    • Changes to handler URL generation · 9b88bdb0
      * The LMS now also monkey-patches
        xmodule.x_module.descriptor_global_handler_url and
        xmodule.x_module.descriptor_global_local_resource_url so that we can
        get LMS XBlock URLs from the DescriptorSystem. That functionality is
        needed in the block transforms collect() phase for certain XModules
        like Video. For instance, say we want to generate the transcripts
        URLs. The collect phase is run asynchronously, without a user context.
      
      * The URL handler monkey-patching is now done in the startup.py files
        for LMS and Studio. Studio used to do this in the import of
        cms/djangoapps/contentstore/views/item.py. This was mostly just
        because it seemed like a sane and consistent place to put it.
      
      * LmsHandlerUrls was removed, its handler_url and local_resource_url
        methods were moved to be top level functions. The only reason that
        class existed seems to be to give a place to store course_id state,
        and that can now be derived from the block location.
      
      * To avoid the Module -> Descriptor ProxyAttribute magic that we do
        (which explodes with an UndefinedContext error because there is no
        user involved), when examining the block's handler method in
        handler_url, I made a few changes:
      
      ** Check the .__class__ to see if the handler was defined, instead of the
         block itself.
      
      ** The above required me to relax the check for _is_xblock_handler on the
         function, since that will no longer be defined.
      
      90% of this goes away when we kill XModules and do the refactoring we've
      wanted to do for a while.
      David Ormsbee committed
  8. 22 May, 2015 1 commit
  9. 20 May, 2015 1 commit
  10. 04 Feb, 2015 1 commit
  11. 13 Dec, 2014 2 commits