Ticket #5250 enhancement closed fixed

Opened 21 months ago

Last modified 20 months ago

finger15.tac patch

Reported by: anv Owned by: anv
Priority: low Milestone:
Component: core Keywords:
Cc: thijs Branch:
Author: Launchpad Bug:

Description (last modified by exarkun) (diff)

In the current version of finger15.tac the _read method has never been called. Proposal patch solves the problem.

Index: trunk/doc/core/howto/tutorial/listings/finger/finger15.tac
===================================================================
--- trunk/doc/core/howto/tutorial/listings/finger/finger15.tac	(revision 32505)
+++ trunk/doc/core/howto/tutorial/listings/finger/finger15.tac	(working copy)
@@ -79,6 +79,7 @@
 
 application = service.Application('finger', uid=1, gid=1)
 f = FingerService('/etc/users')
+f.setServiceParent(application)
 serviceCollection = service.IServiceCollection(application)
 internet.TCPServer(79, f.getFingerFactory()
                    ).setServiceParent(serviceCollection)

Attachments

tutorial_finger.patch Download (5.2 KB) - added by anv 20 months ago.
The whole patch

Change History

1

Changed 21 months ago by anv

Conceptually this is much better:

Index: trunk/doc/core/howto/tutorial/listings/finger/finger15.tac
===================================================================
--- trunk/doc/core/howto/tutorial/listings/finger/finger15.tac	(revision 30844)
+++ trunk/doc/core/howto/tutorial/listings/finger/finger15.tac	(working copy)
@@ -80,6 +80,7 @@
 application = service.Application('finger', uid=1, gid=1)
 f = FingerService('/etc/users')
 serviceCollection = service.IServiceCollection(application)
+f.setServiceParent(serviceCollection)
 internet.TCPServer(79, f.getFingerFactory()
                    ).setServiceParent(serviceCollection)
 internet.TCPServer(8000, server.Site(f.getResource())

2

Changed 21 months ago by thijs

  • cc thijs added
  • keywords review added

Putting the patch up for review as described in the ReviewProcess.

3

Changed 20 months ago by exarkun

  • owner set to anv
  • keywords review removed
  • description modified (diff)

Thanks. Due to the construction of the finger tutorial, the mistake is duplicated in every subsequent tac as well. Would you like to attach a patch addressing all of them?

Changed 20 months ago by anv

The whole patch

4

Changed 20 months ago by exarkun

Thanks!

5

Changed 20 months ago by exarkun

  • status changed from new to closed
  • resolution set to fixed

(In [32568]) Apply tutorial_finger.patch fixing the finger tutorial listings to correctly construct the service hierarchy.

Author: anv Reviewer: exarkun Fixes: #5250

Fix many finger tutorial listings, which did not add the finger service to the service hierarchy, preventing the service from ever reading the user list.

Note: See TracTickets for help on using tickets.