Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
bb655f5d
Commit
bb655f5d
authored
Jan 30, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use UrlMixin instead ad-hoc implementation of samething.
parent
77158e5b
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
54 additions
and
50 deletions
+54
-50
bt5/erp5_run_my_doc/ActionTemplateItem/portal_types/Review/import_page.xml
...oc/ActionTemplateItem/portal_types/Review/import_page.xml
+1
-1
bt5/erp5_run_my_doc/PortalTypeTemplateItem/portal_types/Review.xml
...run_my_doc/PortalTypeTemplateItem/portal_types/Review.xml
+3
-1
bt5/erp5_run_my_doc/PropertySheetTemplateItem/portal_property_sheets/Review/document_url_property.xml
...m/portal_property_sheets/Review/document_url_property.xml
+0
-38
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_importWebPage.xml
...tem/portal_skins/erp5_run_my_doc/Review_importWebPage.xml
+9
-5
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view.xml
...TemplateItem/portal_skins/erp5_run_my_doc/Review_view.xml
+1
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/my_reference.xml
...portal_skins/erp5_run_my_doc/Review_view/my_reference.xml
+1
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/my_url_string.xml
...ortal_skins/erp5_run_my_doc/Review_view/my_url_string.xml
+37
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/reviewer.xml
...tem/portal_skins/erp5_run_my_doc/Review_view/reviewer.xml
+1
-1
bt5/erp5_run_my_doc/bt/revision
bt5/erp5_run_my_doc/bt/revision
+1
-1
No files found.
bt5/erp5_run_my_doc/ActionTemplateItem/portal_types/Review/import_page.xml
View file @
bb655f5d
...
...
@@ -58,7 +58,7 @@
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1.
0
</float>
</value>
<value>
<float>
1.
1
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
...
...
bt5/erp5_run_my_doc/PortalTypeTemplateItem/portal_types/Review.xml
View file @
bb655f5d
...
...
@@ -55,7 +55,9 @@
<item>
<key>
<string>
type_mixin
</string>
</key>
<value>
<tuple/>
<tuple>
<string>
UrlMixin
</string>
</tuple>
</value>
</item>
</dictionary>
...
...
bt5/erp5_run_my_doc/PropertySheetTemplateItem/portal_property_sheets/Review/document_url_property.xml
deleted
100644 → 0
View file @
77158e5b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Standard Property"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
elementary_type/string
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
document_url_property
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Standard Property
</string>
</value>
</item>
<item>
<key>
<string>
property_default
</string>
</key>
<value>
<string>
python: \'\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_importWebPage.xml
View file @
bb655f5d
...
...
@@ -50,17 +50,21 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
if document_url is not None or not document_url:\n
<value>
<string>
translateString = context.Base_translateString\n
\n
if document_url is not None or not document_url:\n
context.setTextContent(context.ERP5RunMyDocs_importWebPage(document_url))\n
context.setDocumentUrl(document_url)\n
translateString = context.Base_translateString\n
context.fromURL(document_url)\n
portal_status_message = "Web Page successfully imported"\n
context.Base_redirect(\'view\', keep_items = dict(portal_status_message=translateString(portal_status_message)))\n
else:\n
portal_status_message = "Url was not Provided."\n
\n
context.Base_redirect(\'view\', keep_items = dict(portal_status_message=translateString(portal_status_message)))\n
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
document_url
=
\'\'
</string>
</value>
<value>
<string>
document_url
=
\'\'
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view.xml
View file @
bb655f5d
...
...
@@ -100,7 +100,7 @@
<string>
my_title
</string>
<string>
my_short_title
</string>
<string>
my_reference
</string>
<string>
my_
document_url
</string>
<string>
my_
url_string
</string>
<string>
my_annotation
</string>
</list>
</value>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/my_reference.xml
View file @
bb655f5d
...
...
@@ -11,8 +11,8 @@
<value>
<list>
<string>
description
</string>
<string>
title
</string>
<string>
display_width
</string>
<string>
title
</string>
</list>
</value>
</item>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/my_
document_url
.xml
→
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/my_
url_string
.xml
View file @
bb655f5d
...
...
@@ -10,6 +10,7 @@
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
default
</string>
<string>
description
</string>
<string>
editable
</string>
<string>
title
</string>
...
...
@@ -18,7 +19,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_
document_url
</string>
</value>
<value>
<string>
my_
url_string
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -54,6 +55,20 @@
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
editable
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -66,6 +81,10 @@
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
...
...
@@ -73,6 +92,10 @@
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The URL of the original document
</string>
</value>
...
...
@@ -103,4 +126,17 @@
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
here/asURL
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/Review_view/reviewer.xml
View file @
bb655f5d
...
...
@@ -176,7 +176,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
not:
here/isExternalDocument
</string>
</value>
<value>
<string>
here/isExternalDocument
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
bt5/erp5_run_my_doc/bt/revision
View file @
bb655f5d
16
\ No newline at end of file
17
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment