|
/
Zope
/
gocept svn checkins
/
Archive
/
2007
/
2007-03
/
SVN: r4523 - in grok-workshop/trunk: doc/step-7/workshop doc/step-8/workshop doc/step-9/workshop src/workshop
[
SVN: r4520 - in grok-workshop/trunk: . doc ... ]
[
SVN: r4532 - in grok-workshop/trunk: ... ]
SVN: r4523 - in grok-workshop/trunk: doc/step-7/workshop doc/step-8/workshop doc/step-9/workshop src/workshop
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:24:09 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:24:08 2007
New Revision: 4523
Modified:
grok-workshop/trunk/doc/step-7/workshop/lfodtool.py
grok-workshop/trunk/doc/step-8/workshop/lfodtool.py
grok-workshop/trunk/doc/step-9/workshop/lfodtool.py
grok-workshop/trunk/src/workshop/lfodtool.py
Log:
whitespace
Modified: grok-workshop/trunk/doc/step-7/workshop/lfodtool.py
==============================================================================
--- grok-workshop/trunk/doc/step-7/workshop/lfodtool.py (original)
+++ grok-workshop/trunk/doc/step-7/workshop/lfodtool.py Thu Mar 1 13:24:08
2007
(at)(at) -45,6 +45,7 (at)(at)
class Chart(grok.View):
+
def update(self):
self.person_data = [
{"fullname": person.fullname,
Modified: grok-workshop/trunk/doc/step-8/workshop/lfodtool.py
==============================================================================
--- grok-workshop/trunk/doc/step-8/workshop/lfodtool.py (original)
+++ grok-workshop/trunk/doc/step-8/workshop/lfodtool.py Thu Mar 1 13:24:08
2007
(at)(at) -49,6 +49,7 (at)(at)
class Chart(grok.View):
+
def update(self):
self.person_data = [
{"fullname": person.fullname,
Modified: grok-workshop/trunk/doc/step-9/workshop/lfodtool.py
==============================================================================
--- grok-workshop/trunk/doc/step-9/workshop/lfodtool.py (original)
+++ grok-workshop/trunk/doc/step-9/workshop/lfodtool.py Thu Mar 1 13:24:08
2007
(at)(at) -49,6 +49,7 (at)(at)
class Chart(grok.View):
+
def update(self):
self.person_data = [
{"fullname": person.fullname,
Modified: grok-workshop/trunk/src/workshop/lfodtool.py
==============================================================================
--- grok-workshop/trunk/src/workshop/lfodtool.py (original)
+++ grok-workshop/trunk/src/workshop/lfodtool.py Thu Mar 1 13:24:08 2007
(at)(at) -49,6 +49,7 (at)(at)
class Chart(grok.View):
+
def update(self):
self.person_data = [
{"fullname": person.fullname,
|
SVN: r4525 - in grok-workshop/trunk/doc/step-5/workshop: . lfodtool_templates
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:36:28 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:36:26 2007
New Revision: 4525
Added:
grok-workshop/trunk/doc/step-5/workshop/
- copied from r4524, grok-workshop/trunk/doc/step-6/workshop/
Modified:
grok-workshop/trunk/doc/step-5/workshop/lfodtool.py
grok-workshop/trunk/doc/step-5/workshop/lfodtool_templates/chart.pt
Log:
adding step 5
Modified: grok-workshop/trunk/doc/step-5/workshop/lfodtool.py
==============================================================================
--- grok-workshop/trunk/doc/step-6/workshop/lfodtool.py (original)
+++ grok-workshop/trunk/doc/step-5/workshop/lfodtool.py Thu Mar 1 13:36:26
2007
(at)(at) -1,4 +1,3 (at)(at)
-import zope.interface
import zope.component
import grok
(at)(at) -14,32 +13,14 (at)(at)
for obj in office.values()
if workshop.interfaces.IPerson.providedBy(obj))
- def get_credits(self, person):
- credits = ICredits(person)
- return credits.value
-
-
-class ICredits(zope.interface.Interface):
- pass
-
-
-class Credits(grok.Annotation):
- grok.implements(ICredits)
- grok.context(grok.Model)
-
- value = 0
-
class Chart(grok.View):
def update(self):
self.person_data = [
{"fullname": person.fullname,
- "credits": credits,
}
- for credits, person in sorted(
- (self.context.get_credits(person), person)
- for person in self.context.persons())
+ for person in self.context.persons()
]
Modified: grok-workshop/trunk/doc/step-5/workshop/lfodtool_templates/chart.pt
==============================================================================
---
grok-workshop/trunk/doc/step-6/workshop/lfodtool_templates/chart.pt (original)
+++ grok-workshop/trunk/doc/step-5/workshop/lfodtool_templates/chart.pt Thu Mar
1 13:36:26 2007
(at)(at) -1,9 +1,6 (at)(at)
<table>
<tbody>
<tr tal:repeat="data view/person_data">
- <td>
- <strong tal:content="data/credits" />
- </td>
<td tal:content="data/fullname" />
</tr>
</tbody>
|
SVN: r4526 - in grok-workshop/trunk/doc: step-5/workshop step-6/workshop
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:39:29 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:39:27 2007
New Revision: 4526
Modified:
grok-workshop/trunk/doc/step-5/workshop/office.py
grok-workshop/trunk/doc/step-6/workshop/office.py
Log:
removing remains of int id utility in early steps
Modified: grok-workshop/trunk/doc/step-5/workshop/office.py
==============================================================================
--- grok-workshop/trunk/doc/step-5/workshop/office.py (original)
+++ grok-workshop/trunk/doc/step-5/workshop/office.py Thu Mar 1 13:39:27 2007
(at)(at) -4,12 +4,10 (at)(at)
import grok
import workshop.lfodtool
import workshop.person
-import workshop.util
class Office(grok.Application, grok.Model, grok.Container):
grok.local_utility(workshop.lfodtool.LFODTool)
- grok.local_utility(workshop.util.IntIds)
class Index(grok.View):
Modified: grok-workshop/trunk/doc/step-6/workshop/office.py
==============================================================================
--- grok-workshop/trunk/doc/step-6/workshop/office.py (original)
+++ grok-workshop/trunk/doc/step-6/workshop/office.py Thu Mar 1 13:39:27 2007
(at)(at) -4,12 +4,10 (at)(at)
import grok
import workshop.lfodtool
import workshop.person
-import workshop.util
class Office(grok.Application, grok.Model, grok.Container):
grok.local_utility(workshop.lfodtool.LFODTool)
- grok.local_utility(workshop.util.IntIds)
class Index(grok.View):
|
SVN: r4527 - in grok-workshop/trunk/doc/step-4/workshop: . lfodtool_templates office_templates
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:43:07 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:43:02 2007
New Revision: 4527
Added:
grok-workshop/trunk/doc/step-4/workshop/
- copied from r4525, grok-workshop/trunk/doc/step-5/workshop/
grok-workshop/trunk/doc/step-4/workshop/office.py
- copied, changed from r4526,
grok-workshop/trunk/doc/step-5/workshop/office.py
Removed:
grok-workshop/trunk/doc/step-4/workshop/interfaces.py
grok-workshop/trunk/doc/step-4/workshop/lfodtool.py
grok-workshop/trunk/doc/step-4/workshop/lfodtool_templates/
Modified:
grok-workshop/trunk/doc/step-4/workshop/office_templates/index.pt
Log:
adding step 4
Copied: grok-workshop/trunk/doc/step-4/workshop/office.py (from r4526,
grok-workshop/trunk/doc/step-5/workshop/office.py)
==============================================================================
--- grok-workshop/trunk/doc/step-5/workshop/office.py (original)
+++ grok-workshop/trunk/doc/step-4/workshop/office.py Thu Mar 1 13:43:02 2007
(at)(at) -2,12 +2,11 (at)(at)
import zope.app.container.interfaces
import grok
-import workshop.lfodtool
import workshop.person
class Office(grok.Application, grok.Model, grok.Container):
- grok.local_utility(workshop.lfodtool.LFODTool)
+ pass
class Index(grok.View):
Modified: grok-workshop/trunk/doc/step-4/workshop/office_templates/index.pt
==============================================================================
---
grok-workshop/trunk/doc/step-5/workshop/office_templates/index.pt (original)
+++ grok-workshop/trunk/doc/step-4/workshop/office_templates/index.pt Thu Mar
1 13:43:02 2007
(at)(at) -3,11 +3,6 (at)(at)
</head>
<body>
- <div style="float:right; border:1px solid black;"
- tal:define="lfodtool context/(at)(at)findlfodtool">
- <tal:lfod content="structure lfodtool/(at)(at)chart" />
- </div>
-
<p>
Personen:
</p>
|
SVN: r4528 - in grok-workshop/trunk/doc/step-3/workshop: . person_templates
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:47:11 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:47:09 2007
New Revision: 4528
Added:
grok-workshop/trunk/doc/step-3/workshop/
- copied from r4527, grok-workshop/trunk/doc/step-4/workshop/
Modified:
grok-workshop/trunk/doc/step-3/workshop/office.py
grok-workshop/trunk/doc/step-3/workshop/person_templates/edit.pt
grok-workshop/trunk/doc/step-3/workshop/person_templates/index.pt
Log:
adding step 3
Modified: grok-workshop/trunk/doc/step-3/workshop/office.py
==============================================================================
--- grok-workshop/trunk/doc/step-4/workshop/office.py (original)
+++ grok-workshop/trunk/doc/step-3/workshop/office.py Thu Mar 1 13:47:09 2007
(at)(at) -1,4 +1,3 (at)(at)
-import zope.interface
import zope.app.container.interfaces
import grok
(at)(at) -25,10 +24,3 (at)(at)
def render(self):
self.redirect(self.url(self.person))
-
-
-class FindOffice(grok.View):
- grok.context(zope.interface.Interface)
-
- def render(self):
- self.redirect(self.url(grok.getSite()))
Modified: grok-workshop/trunk/doc/step-3/workshop/person_templates/edit.pt
==============================================================================
--- grok-workshop/trunk/doc/step-4/workshop/person_templates/edit.pt (original)
+++ grok-workshop/trunk/doc/step-3/workshop/person_templates/edit.pt Thu Mar 1
13:47:09 2007
(at)(at) -7,7 +7,6 (at)(at)
<ul>
<li><a tal:attributes="href
python:view.url('index')">view</a></li>
- <li><a tal:attributes="href python:view.url('findoffice')">Zur
Liste</a></li>
</ul>
<form action="." tal:attributes="action request/URL" method="post"
Modified: grok-workshop/trunk/doc/step-3/workshop/person_templates/index.pt
==============================================================================
---
grok-workshop/trunk/doc/step-4/workshop/person_templates/index.pt (original)
+++ grok-workshop/trunk/doc/step-3/workshop/person_templates/index.pt Thu Mar
1 13:47:09 2007
(at)(at) -7,7 +7,6 (at)(at)
<ul>
<li><a tal:attributes="href
python:view.url('edit')">edit</a></li>
- <li><a tal:attributes="href python:view.url('findoffice')">Zur
Liste</a></li>
</ul>
<p tal:content="context/comment" />
|
SVN: r4529 - in grok-workshop/trunk/doc/step-2/workshop: . person_templates
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:53:58 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:53:56 2007
New Revision: 4529
Log:
adding step 2
Added:
grok-workshop/trunk/doc/step-2/workshop/
- copied from r4528, grok-workshop/trunk/doc/step-3/workshop/
Removed:
grok-workshop/trunk/doc/step-2/workshop/person_templates/edit.pt
Modified:
grok-workshop/trunk/doc/step-2/workshop/person.py
grok-workshop/trunk/doc/step-2/workshop/person_templates/index.pt
Modified: grok-workshop/trunk/doc/step-2/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-3/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-2/workshop/person.py Thu Mar 1 13:53:56 2007
(at)(at) -15,7 +15,3 (at)(at)
class Index(grok.View):
pass
-
-
-class Edit(grok.EditForm):
- pass
Modified: grok-workshop/trunk/doc/step-2/workshop/person_templates/index.pt
==============================================================================
---
grok-workshop/trunk/doc/step-3/workshop/person_templates/index.pt (original)
+++ grok-workshop/trunk/doc/step-2/workshop/person_templates/index.pt Thu Mar
1 13:53:56 2007
(at)(at) -5,10 +5,6 (at)(at)
<body>
<h1 tal:content="context/fullname" />
- <ul>
- <li><a tal:attributes="href
python:view.url('edit')">edit</a></li>
- </ul>
-
<p tal:content="context/comment" />
</body>
|
SVN: r4530 - in grok-workshop/trunk/doc: step-2/workshop step-3/workshop step-4/workshop
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 13:54:55 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 13:54:54 2007
New Revision: 4530
Log:
removing IPerson stuff from early steps
Modified:
grok-workshop/trunk/doc/step-2/workshop/person.py
grok-workshop/trunk/doc/step-3/workshop/person.py
grok-workshop/trunk/doc/step-4/workshop/person.py
Modified: grok-workshop/trunk/doc/step-2/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-2/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-2/workshop/person.py Thu Mar 1 13:54:54 2007
(at)(at) -1,11 +1,9 (at)(at)
import zope.schema
import grok
-import workshop.interfaces
class Person(grok.Model):
- grok.implements(workshop.interfaces.IPerson)
class fields:
fullname = zope.schema.TextLine(title=u"Name")
Modified: grok-workshop/trunk/doc/step-3/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-3/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-3/workshop/person.py Thu Mar 1 13:54:54 2007
(at)(at) -1,11 +1,9 (at)(at)
import zope.schema
import grok
-import workshop.interfaces
class Person(grok.Model):
- grok.implements(workshop.interfaces.IPerson)
class fields:
fullname = zope.schema.TextLine(title=u"Name")
Modified: grok-workshop/trunk/doc/step-4/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-4/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-4/workshop/person.py Thu Mar 1 13:54:54 2007
(at)(at) -1,11 +1,9 (at)(at)
import zope.schema
import grok
-import workshop.interfaces
class Person(grok.Model):
- grok.implements(workshop.interfaces.IPerson)
class fields:
fullname = zope.schema.TextLine(title=u"Name")
|
SVN: r4531 - in grok-workshop/trunk/doc/step-1/workshop: . office_templates person_templates
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 14:01:38 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 14:01:37 2007
New Revision: 4531
Log:
adding step 1
Added:
grok-workshop/trunk/doc/step-1/workshop/
- copied from r4529, grok-workshop/trunk/doc/step-2/workshop/
Removed:
grok-workshop/trunk/doc/step-1/workshop/person.py
grok-workshop/trunk/doc/step-1/workshop/person_templates/
Modified:
grok-workshop/trunk/doc/step-1/workshop/office.py
grok-workshop/trunk/doc/step-1/workshop/office_templates/index.pt
Modified: grok-workshop/trunk/doc/step-1/workshop/office.py
==============================================================================
--- grok-workshop/trunk/doc/step-2/workshop/office.py (original)
+++ grok-workshop/trunk/doc/step-1/workshop/office.py Thu Mar 1 14:01:37 2007
(at)(at) -1,26 +1,9 (at)(at)
-import zope.app.container.interfaces
-
import grok
-import workshop.person
-class Office(grok.Application, grok.Model, grok.Container):
+class Office(grok.Application, grok.Model):
pass
class Index(grok.View):
pass
-
-
-class AddPerson(grok.View):
-
- def update(self, fullname):
- person = workshop.person.Person()
- person.fullname = fullname
- name_chooser =
zope.app.container.interfaces.INameChooser(self.context)
- name = name_chooser.chooseName("person", person)
- self.context[name] = person
- self.person = person
-
- def render(self):
- self.redirect(self.url(self.person))
Modified: grok-workshop/trunk/doc/step-1/workshop/office_templates/index.pt
==============================================================================
---
grok-workshop/trunk/doc/step-2/workshop/office_templates/index.pt (original)
+++ grok-workshop/trunk/doc/step-1/workshop/office_templates/index.pt Thu Mar
1 14:01:37 2007
(at)(at) -4,22 +4,8 (at)(at)
<body>
<p>
- Personen:
+ Büro
</p>
-
- <ul>
- <li tal:repeat="person context/values">
- <a tal:attributes="href python:view.url(person)"
- tal:content="person/fullname" />
- </li>
- </ul>
-
- <form action="addperson">
- <p>
- <input name="fullname" />
- <input type="submit" value="Person anlegen" />
- </p>
- </form>
</body>
</html>
|
SVN: r4536 - in grok-workshop/trunk: doc/step-9/workshop doc/step-9/workshop/person_templates src/workshop src/workshop/person_templates
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 15:35:42 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 15:35:40 2007
New Revision: 4536
Log:
simplifying layout framework
Removed:
grok-workshop/trunk/doc/step-9/workshop/person_templates/personbase.pt
grok-workshop/trunk/src/workshop/person_templates/personbase.pt
Modified:
grok-workshop/trunk/doc/step-9/workshop/person.py
grok-workshop/trunk/doc/step-9/workshop/person_templates/index.pt
grok-workshop/trunk/src/workshop/person.py
grok-workshop/trunk/src/workshop/person_templates/index.pt
Modified: grok-workshop/trunk/doc/step-9/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-9/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-9/workshop/person.py Thu Mar 1 15:35:40 2007
(at)(at) -13,10 +13,6 (at)(at)
comment = zope.schema.Text(title=u"Kommentar")
-class Personbase(grok.View):
- pass
-
-
class Index(grok.View):
pass
Modified: grok-workshop/trunk/doc/step-9/workshop/person_templates/index.pt
==============================================================================
---
grok-workshop/trunk/doc/step-9/workshop/person_templates/index.pt (original)
+++ grok-workshop/trunk/doc/step-9/workshop/person_templates/index.pt Thu Mar
1 15:35:40 2007
(at)(at) -1,7 +1,19 (at)(at)
-<html metal:use-macro="context/(at)(at)personbase/person-body">
+<html metal:use-macro="context/(at)(at)layout/main">
+
+ <metal:body fill-slot="body">
+ <div style="float:right; border:1px solid black;">
+ <tal:status content="structure context/(at)(at)status" />
+ </div>
+
+ <h1 tal:content="context/fullname" />
+
+ <ul>
+ <li><a tal:attributes="href
python:view.url('index')">view</a></li>
+ <li><a tal:attributes="href
python:view.url('edit')">edit</a></li>
+ <li><a tal:attributes="href
python:view.url('findoffice')">Zur Liste</a></li>
+ </ul>
- <metal:content fill-slot="content">
<p tal:content="context/comment" />
- </metal:content>
+ </metal:body>
</html>
Modified: grok-workshop/trunk/src/workshop/person.py
==============================================================================
--- grok-workshop/trunk/src/workshop/person.py (original)
+++ grok-workshop/trunk/src/workshop/person.py Thu Mar 1 15:35:40 2007
(at)(at) -13,10 +13,6 (at)(at)
comment = zope.schema.Text(title=u"Kommentar")
-class Personbase(grok.View):
- pass
-
-
class Index(grok.View):
pass
Modified: grok-workshop/trunk/src/workshop/person_templates/index.pt
==============================================================================
--- grok-workshop/trunk/src/workshop/person_templates/index.pt (original)
+++ grok-workshop/trunk/src/workshop/person_templates/index.pt Thu Mar 1
15:35:40 2007
(at)(at) -1,7 +1,19 (at)(at)
-<html metal:use-macro="context/(at)(at)personbase/person-body">
+<html metal:use-macro="context/(at)(at)layout/main">
+
+ <metal:body fill-slot="body">
+ <div style="float:right; border:1px solid black;">
+ <tal:status content="structure context/(at)(at)status" />
+ </div>
+
+ <h1 tal:content="context/fullname" />
+
+ <ul>
+ <li><a tal:attributes="href
python:view.url('index')">view</a></li>
+ <li><a tal:attributes="href
python:view.url('edit')">edit</a></li>
+ <li><a tal:attributes="href
python:view.url('findoffice')">Zur Liste</a></li>
+ </ul>
- <metal:content fill-slot="content">
<p tal:content="context/comment" />
- </metal:content>
+ </metal:body>
</html>
|
SVN: r4537 - in grok-workshop/trunk/doc: step-10 step-10/workshop step-9
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 15:40:29 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 15:40:27 2007
New Revision: 4537
Log:
splitting step 5: move stuff out of the way
Added:
grok-workshop/trunk/doc/step-10/
- copied from r4520, grok-workshop/trunk/doc/step-9/
grok-workshop/trunk/doc/step-10/workshop/
- copied from r4536, grok-workshop/trunk/doc/step-9/workshop/
Removed:
grok-workshop/trunk/doc/step-9/
|
SVN: r4538 - in grok-workshop/trunk/doc: step-8 step-9
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 15:40:50 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 15:40:49 2007
New Revision: 4538
Log:
splitting step 5: move stuff out of the way
Added:
grok-workshop/trunk/doc/step-9/
- copied from r4536, grok-workshop/trunk/doc/step-8/
Removed:
grok-workshop/trunk/doc/step-8/
|
SVN: r4539 - in grok-workshop/trunk/doc: step-7 step-8
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 15:41:03 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 15:41:02 2007
New Revision: 4539
Log:
splitting step 5: move stuff out of the way
Added:
grok-workshop/trunk/doc/step-8/
- copied from r4536, grok-workshop/trunk/doc/step-7/
Removed:
grok-workshop/trunk/doc/step-7/
|
SVN: r4555 - in grok-workshop/trunk: doc doc/step-10/workshop doc/step-3/workshop doc/step-4/workshop doc/step-5/workshop doc/step-6/workshop doc/step-7/workshop doc/step-8/workshop doc/step-9/workshop src/workshop
Thomas Lotze <tl(at)gocept.com> |
2007-03-01 19:13:42 |
[ FULL ]
|
Author: thomas
Date: Thu Mar 1 19:13:36 2007
New Revision: 4555
Log:
fixed the person edit form by introducing actions
Modified:
grok-workshop/trunk/doc/step-10/workshop/person.py
grok-workshop/trunk/doc/step-3/workshop/person.py
grok-workshop/trunk/doc/step-4/workshop/person.py
grok-workshop/trunk/doc/step-5/workshop/person.py
grok-workshop/trunk/doc/step-6/workshop/person.py
grok-workshop/trunk/doc/step-7/workshop/person.py
grok-workshop/trunk/doc/step-8/workshop/person.py
grok-workshop/trunk/doc/step-9/workshop/person.py
grok-workshop/trunk/doc/steps.txt
grok-workshop/trunk/src/workshop/person.py
Modified: grok-workshop/trunk/doc/step-10/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-10/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-10/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -19,6 +21,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-3/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-3/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-3/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -17,6 +19,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-4/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-4/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-4/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -17,6 +19,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-5/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-5/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-5/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -17,6 +19,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-6/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-6/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-6/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -19,6 +21,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-7/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-7/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-7/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -19,6 +21,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-8/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-8/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-8/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -19,6 +21,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/step-9/workshop/person.py
==============================================================================
--- grok-workshop/trunk/doc/step-9/workshop/person.py (original)
+++ grok-workshop/trunk/doc/step-9/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -19,6 +21,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
Modified: grok-workshop/trunk/doc/steps.txt
==============================================================================
--- grok-workshop/trunk/doc/steps.txt (original)
+++ grok-workshop/trunk/doc/steps.txt Thu Mar 1 19:13:36 2007
(at)(at) -22,13 +22,14 (at)(at)
3 - Edit persons
================
-grok.EditForm, render
+grok.EditForm, actions
4 - Navigation
==============
-FindOffice view: grok.getSite(), explicit grok.context
+FindOffice view: grok.context, render
+grok.getSite
5 - LFODTool
Modified: grok-workshop/trunk/src/workshop/person.py
==============================================================================
--- grok-workshop/trunk/src/workshop/person.py (original)
+++ grok-workshop/trunk/src/workshop/person.py Thu Mar 1 19:13:36 2007
(at)(at) -1,3 +1,5 (at)(at)
+# -*- coding: utf-8 -*-
+
import zope.schema
import grok
(at)(at) -19,6 +21,12 (at)(at)
class Edit(grok.EditForm):
- def __call__(self, **data):
- super(Edit, self).__call__(**data)
- self.redirect(self.url("index"))
+ (at)grok.action(u"Speichern")
+ def save(self, **data):
+ self.applyChanges(**data)
+ self.redirect(self.url(self.context))
+
+ (at)grok.action(u"Zurueck")
+ def back(self, **data):
+ self.redirect(self.url(self.context))
+
|
|