Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
52259368
Commit
52259368
authored
Jan 03, 2025
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: add Base_castDictToXMLString
parent
4a56c93b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletion
+32
-1
master/bt5/slapos_cloud/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSCloud.py
...plateItem/portal_components/extension.erp5.SlapOSCloud.py
+4
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Base_castDictToXMLString.xml
...em/portal_skins/slapos_cloud/Base_castDictToXMLString.xml
+28
-0
No files found.
master/bt5/slapos_cloud/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSCloud.py
View file @
52259368
...
@@ -34,7 +34,7 @@ from zExceptions import Unauthorized
...
@@ -34,7 +34,7 @@ from zExceptions import Unauthorized
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Products.ERP5Type.UnrestrictedMethod
import
UnrestrictedMethod
from
Acquisition
import
aq_base
,
aq_inner
from
Acquisition
import
aq_base
,
aq_inner
from
slapos.util
import
dumps
from
slapos.util
import
dumps
,
dict2xml
from
lxml
import
etree
from
lxml
import
etree
def
cloneDocumentWithANewPortalType
(
obj
,
portal_type
):
def
cloneDocumentWithANewPortalType
(
obj
,
portal_type
):
...
@@ -360,3 +360,6 @@ def isValidXmlMarshaller(self, value, REQUEST=None):
...
@@ -360,3 +360,6 @@ def isValidXmlMarshaller(self, value, REQUEST=None):
# No better way them this for now
# No better way them this for now
dumps
(
value
)
dumps
(
value
)
return
True
return
True
def
convertDictToXml
(
self
,
dictionnary_value
):
return
dict2xml
(
dictionnary_value
)
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/Base_castDictToXMLString.xml
0 → 100644
View file @
52259368
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ExternalMethod"
module=
"Products.ExternalMethod.ExternalMethod"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_function
</string>
</key>
<value>
<string>
convertDictToXml
</string>
</value>
</item>
<item>
<key>
<string>
_module
</string>
</key>
<value>
<string>
SlapOSCloud
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Base_castDictToXMLString
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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