OpenSocial

Posted by toddw on 2007-11-29 12:26 |
0.8.1
Todd Whiteman
Wed, 2011-03-23 18:18
  • : 4.0 - 6.*
  • : 4.0 - 6.*

This extension provides support for developing OpenSocial applications (XML and JavaScript) in Komodo.

Brief install guide:

  • Download and install the attached extension "opensocial-version-ko.xpi" in Komodo, restart when prompted
  • Go to Komodo's preferences, in the "Code Intelligence" category toggle the "OpenSocial_v070" API catalog
  • Restart Komodo (otherwise JS completions will not yet work)

Overview of OpenSocial code assistance provided by Komodo:

  • "OpenSocial (XML)" sample template, for when creating a new gadget xml file
  • JavaScript completions and calltips occur for the "opensocial.*" namespace
  • XML (gadget) completions, will only work if the user manually adds the
    custom XML namespace declaration (see the XML gadget sample below). This is included in the gadget template.
  • XML container state completions, will only work if the user manually adds the
    custom XML namespace declaration (see the XML container sample below).

Example OpenSocial XML code with DTD:

<?xml version="1.0" encoding="UTF-8"?>
<Module xmlns="http://code.google.com/apis/gadgets">
 <ModulePrefs title="Sample1" >
   <Require feature="opensocial-0.7"/>
 </ModulePrefs>
 <Content type="html-inline">
   <![CDATA[
       ...
  ]]>
  </Content>
</Module>

Example OpenSocial container state XML file with DTD:

<?xml version="1.0" encoding="UTF-8"?>
<container xmlns="http://code.google.com/apis/opensocial">
  <viewer>
    <person id="myperson@dummy.com" name="Person" email="myperson@dummy.com" />
  </viewer>
  ...
</container>

OpenSocial References: