Commit f461e4b8 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

include embedded files or images in the target document in FCKeditor's image/link dialogue.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29158 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39538ebc
...@@ -53,14 +53,8 @@ ...@@ -53,14 +53,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>kw[\'portal_type\'] = [x for x in context.getPortalDocumentTypeList() if x != \'Image\']\n <value> <string>return context.getPortalObject().portal_catalog(\n
\n context.FCKeditor_getDocumentListQuery(**kw))\n
kw[\'validation_state\'] = (\'published\', \'published_alive\', \'released\', \'released_alive\',\n
\'shared\', \'shared_alive\')\n
\n
context.log(context.portal_catalog(src__=1,**kw))\n
\n
return context.portal_catalog(**kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -98,13 +92,8 @@ return context.portal_catalog(**kw)\n ...@@ -98,13 +92,8 @@ return context.portal_catalog(**kw)\n
<value> <value>
<tuple> <tuple>
<string>kw</string> <string>kw</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>x</string>
<string>_write_</string>
<string>_apply_</string> <string>_apply_</string>
</tuple> </tuple>
</value> </value>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>from Products.ZSQLCatalog.SQLCatalog import Query, ComplexQuery\n
\n
if document_type == \'Image\':\n
portal_type = [\'Image\']\n
else:\n
portal_type = [x for x in context.getPortalDocumentTypeList() if x != \'Image\']\n
\n
return ComplexQuery(\n
Query(portal_type=portal_type),\n
ComplexQuery(\n
Query(validation_state=(\'published\', \'published_alive\', \'released\', \'released_alive\', \'shared\', \'shared_alive\'),\n
reference=\'!=None\'),\n
Query(validation_state=\'embedded\', parent_uid=context.getUid()),\n
operator=\'or\'),\n
Query(**kw),\n
operator=\'and\')\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>document_type=None, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>document_type</string>
<string>kw</string>
<string>Products.ZSQLCatalog.SQLCatalog</string>
<string>Query</string>
<string>ComplexQuery</string>
<string>portal_type</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>_getattr_</string>
<string>context</string>
<string>x</string>
<string>_apply_</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<tuple>
<none/>
</tuple>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>FCKeditor_getDocumentListQuery</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
...@@ -53,12 +53,8 @@ ...@@ -53,12 +53,8 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>kw[\'portal_type\'] = [\'Image\']\n <value> <string>return context.getPortalObject().portal_catalog(\n
\n context.FCKeditor_getDocumentListQuery(document_type=\'Image\', **kw))\n
kw[\'validation_state\'] = (\'published\', \'published_alive\', \'released\', \'released_alive\',\n
\'shared\', \'shared_alive\')\n
\n
return context.portal_catalog(**kw)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -96,10 +92,9 @@ return context.portal_catalog(**kw)\n ...@@ -96,10 +92,9 @@ return context.portal_catalog(**kw)\n
<value> <value>
<tuple> <tuple>
<string>kw</string> <string>kw</string>
<string>_write_</string>
<string>_apply_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>_apply_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
1033 1034
\ No newline at end of file \ No newline at end of file
...@@ -88,14 +88,14 @@ oFCKeditor.Config[\'FirefoxSpellChecker\']\t= true ;\n ...@@ -88,14 +88,14 @@ oFCKeditor.Config[\'FirefoxSpellChecker\']\t= true ;\n
\n \n
// browsing for links\n // browsing for links\n
oFCKeditor.Config[\'LinkBrowser\'] = ${link_browser};\n oFCKeditor.Config[\'LinkBrowser\'] = ${link_browser};\n
oFCKeditor.Config[\'LinkBrowserURL\'] = \'${portal_path}FCKeditor_viewDocumentSelectionDialog\';\n oFCKeditor.Config[\'LinkBrowserURL\'] = \'${baseHrefUrl}/FCKeditor_viewDocumentSelectionDialog\';\n
\n \n
// rapid upload activation for links\n // rapid upload activation for links\n
oFCKeditor.Config[\'LinkUpload\'] = false ; // XXX should be implemented using portal_contributions\n oFCKeditor.Config[\'LinkUpload\'] = false ; // XXX should be implemented using portal_contributions\n
\n \n
// browsing for images\n // browsing for images\n
oFCKeditor.Config[\'ImageBrowser\'] = ${image_browser};\n oFCKeditor.Config[\'ImageBrowser\'] = ${image_browser};\n
oFCKeditor.Config[\'ImageBrowserURL\'] = \'${portal_path}FCKeditor_viewImageSelectionDialog\';\n oFCKeditor.Config[\'ImageBrowserURL\'] = \'${baseHrefUrl}/FCKeditor_viewImageSelectionDialog\';\n
\n \n
// rapid upload activation for images\n // rapid upload activation for images\n
oFCKeditor.Config[\'ImageUpload\'] = false ; // XXX should be implemented using portal_contributions\n oFCKeditor.Config[\'ImageUpload\'] = false ; // XXX should be implemented using portal_contributions\n
......
833 834
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment