Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ekaterina
erp5
Commits
5a53f57a
Commit
5a53f57a
authored
Aug 20, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use OpenDocument v1.2 Relax NG Schema.
parent
0b1cface
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18131 additions
and
38201 deletions
+18131
-38201
product/ERP5OOo/tests/OpenDocument-schema-v1.1.rng
product/ERP5OOo/tests/OpenDocument-schema-v1.1.rng
+0
-17891
product/ERP5OOo/tests/OpenDocument-schema-v1.2-draft9.rng
product/ERP5OOo/tests/OpenDocument-schema-v1.2-draft9.rng
+0
-20306
product/ERP5OOo/tests/OpenDocument-v1.2-os-schema.rng
product/ERP5OOo/tests/OpenDocument-v1.2-os-schema.rng
+18127
-0
product/ERP5OOo/tests/testFormPrintoutAsODG.py
product/ERP5OOo/tests/testFormPrintoutAsODG.py
+1
-1
product/ERP5OOo/tests/testFormPrintoutAsODT.py
product/ERP5OOo/tests/testFormPrintoutAsODT.py
+1
-1
product/ERP5OOo/tests/testOOoDynamicStyle.py
product/ERP5OOo/tests/testOOoDynamicStyle.py
+1
-1
product/ERP5OOo/tests/utils.py
product/ERP5OOo/tests/utils.py
+1
-1
No files found.
product/ERP5OOo/tests/OpenDocument-schema-v1.1.rng
deleted
100644 → 0
View file @
0b1cface
This diff is collapsed.
Click to expand it.
product/ERP5OOo/tests/OpenDocument-schema-v1.2-draft9.rng
deleted
100644 → 0
View file @
0b1cface
This diff is collapsed.
Click to expand it.
product/ERP5OOo/tests/OpenDocument-v1.2-os-schema.rng
0 → 100644
View file @
5a53f57a
This diff is collapsed.
Click to expand it.
product/ERP5OOo/tests/testFormPrintoutAsODG.py
View file @
5a53f57a
...
@@ -61,7 +61,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
...
@@ -61,7 +61,7 @@ class TestFormPrintoutAsODG(TestFormPrintoutMixin):
self
.
setSystemPreference
()
self
.
setSystemPreference
()
# XML validator
# XML validator
v12schema_url
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
v12schema_url
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'OpenDocument-
schema-v1.2-draft9
.rng'
)
'OpenDocument-
v1.2-os-schema
.rng'
)
self
.
validator
=
Validator
(
schema_url
=
v12schema_url
)
self
.
validator
=
Validator
(
schema_url
=
v12schema_url
)
foo_file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
foo_file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
...
...
product/ERP5OOo/tests/testFormPrintoutAsODT.py
View file @
5a53f57a
...
@@ -55,7 +55,7 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
...
@@ -55,7 +55,7 @@ class TestFormPrintoutAsODT(TestFormPrintoutMixin):
self
.
setSystemPreference
()
self
.
setSystemPreference
()
# XML validator
# XML validator
v12schema_url
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
v12schema_url
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'OpenDocument-
schema-v1.2-draft9
.rng'
)
'OpenDocument-
v1.2-os-schema
.rng'
)
self
.
validator
=
Validator
(
schema_url
=
v12schema_url
)
self
.
validator
=
Validator
(
schema_url
=
v12schema_url
)
foo_file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
foo_file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
...
...
product/ERP5OOo/tests/testOOoDynamicStyle.py
View file @
5a53f57a
...
@@ -54,7 +54,7 @@ class TestOooDynamicStyle(ERP5TypeTestCase):
...
@@ -54,7 +54,7 @@ class TestOooDynamicStyle(ERP5TypeTestCase):
self
.
login
()
self
.
login
()
self
.
getPortal
().
Localizer
=
DummyLocalizer
()
self
.
getPortal
().
Localizer
=
DummyLocalizer
()
v12schema_url
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
v12schema_url
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'OpenDocument-
schema-v1.2-draft9
.rng'
)
'OpenDocument-
v1.2-os-schema
.rng'
)
self
.
validator
=
Validator
(
schema_url
=
v12schema_url
)
self
.
validator
=
Validator
(
schema_url
=
v12schema_url
)
en_file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
en_file_path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'test_document'
,
'test_document'
,
...
...
product/ERP5OOo/tests/utils.py
View file @
5a53f57a
...
@@ -54,7 +54,7 @@ if lxml:
...
@@ -54,7 +54,7 @@ if lxml:
class
LXMLValidator
:
class
LXMLValidator
:
"""Validate ODF document using RelaxNG and lxml"""
"""Validate ODF document using RelaxNG and lxml"""
schema_url
=
\
schema_url
=
\
'http://docs.oasis-open.org/office/v1.
1/OS/OpenDocument-schema-v1.1
.rng'
'http://docs.oasis-open.org/office/v1.
2/os/OpenDocument-v1.2-os-schema
.rng'
def
__init__
(
self
,
schema_url
=
schema_url
):
def
__init__
(
self
,
schema_url
=
schema_url
):
self
.
schema_url
=
schema_url
self
.
schema_url
=
schema_url
...
...
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