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
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
Sebastian
erp5
Commits
4aa8959b
Commit
4aa8959b
authored
Sep 01, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Publish document late, after reference is known.
parent
074a1a12
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
+1
-1
bt5/erp5_web_shadir/bt/revision
bt5/erp5_web_shadir/bt/revision
+1
-1
No files found.
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
View file @
4aa8959b
...
...
@@ -103,6 +103,7 @@ def WebSection_setObject(self, id, ob, **kw):
ob
.
setReference
(
reference
)
if
expiration_date
is
not
None
:
ob
.
setExpirationDate
(
expiration_date
)
ob
.
publish
()
return
ob
def
WebSection_putFactory
(
self
,
name
,
typ
,
body
):
...
...
@@ -119,6 +120,5 @@ def WebSection_putFactory(self, name, typ, body):
document
=
portal
.
portal_contributions
.
newContent
(
data
=
body
,
filename
=
name
,
discover_metadata
=
False
)
document
.
publish
()
return
document
bt5/erp5_web_shadir/bt/revision
View file @
4aa8959b
64
\ No newline at end of file
65
\ 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