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
alecs_myu
erp5
Commits
3b7f9450
Commit
3b7f9450
authored
Dec 28, 2007
by
Mame Coumba Sall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
71725822
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
product/ERP5Form/ScribusUtils.py
product/ERP5Form/ScribusUtils.py
+9
-12
No files found.
product/ERP5Form/ScribusUtils.py
View file @
3b7f9450
...
@@ -214,14 +214,10 @@ class ManageModule:
...
@@ -214,14 +214,10 @@ class ManageModule:
del
default_groups
[
0
:]
del
default_groups
[
0
:]
for
page_iterator
in
range
(
global_properties
[
'page'
]):
for
page_iterator
in
range
(
global_properties
[
'page'
]):
page_number
=
'page_%s'
%
str
(
page_iterator
)
page_number
=
'page_%s'
%
str
(
page_iterator
)
default_groups
.
append
(
page_number
)
default_groups
.
append
(
page_number
)
# default_groups list completed, need to update the form_groups
# default_groups list completed, need to update the form_groups
# renaming form default group with list's first item
# renaming form default group with list's first item
form_view_id_object
.
rename_group
(
'Default'
,
form_view_id_object
.
rename_group
(
'Default'
,
default_groups
[
0
])
default_groups
[
0
]
)
# adding all other items
# adding all other items
for
group
in
default_groups
[
0
:]:
for
group
in
default_groups
[
0
:]:
form_view_id_object
.
add_group
(
group
)
form_view_id_object
.
add_group
(
group
)
...
@@ -642,7 +638,8 @@ class ManageFiles:
...
@@ -642,7 +638,8 @@ class ManageFiles:
# splitting this string to get the list of objects
# splitting this string to get the list of objects
for
image
in
result
[
1
].
split
(
'
\
n
'
):
for
image
in
result
[
1
].
split
(
'
\
n
'
):
temp_jpg
=
open
(
'/tmp/%s'
%
image
,
'r'
)
temp_jpg
=
open
(
'/tmp/%s'
%
image
,
'r'
)
form_page_id
=
object_names
[
'page'
]
+
str
(
image_number
)
form_page_id
=
ob
ject_names
[
'page'
]
+
str
(
image_number
)
addImage
=
skin_folder
.
manage_addProduct
[
'OFSP'
].
manage_addImage
addImage
=
skin_folder
.
manage_addProduct
[
'OFSP'
].
manage_addImage
addImage
(
form_page_id
,
temp_jpg
,
"background image"
)
addImage
(
form_page_id
,
temp_jpg
,
"background image"
)
image_number
+=
1
image_number
+=
1
...
...
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