Ticket #105 (assigned task)

Opened 1 year ago

Last modified 1 year ago

Move code from scripts to separate modules

Reported by: stephan Assigned to: yvesjm (accepted)
Priority: major Milestone: 0.2.0
Component: common Version: 0.1.7
Keywords: Cc:

Description

Instead of having code in all scripts (like in all files in source:branches/restructuring/bin) we should probably move the code in separate modules.

Going for a common module layout here again is probably the way to go, so moving all that code to nwu.<component>.app and creating an "app" class with at least a "main" method is a good idea.

Also, this step could be used to create a common argument parser for all scripts in nwu.common.app.

This has been discussed via email (see http://lists.sp.or.at/pipermail/nwu/2008-January/000019.html) .

Attachments

test.py (1.0 kB) - added by stephan on 01/09/08 14:26:11.

Change History

01/09/08 11:31:41 changed by stephan

I am working on the base/shared code right now.

01/09/08 14:26:11 changed by stephan

  • attachment test.py added.

01/09/08 14:27:12 changed by stephan

Basic framework code can now be found in SVN (sources:branches/stephan/nwu/common/app.py as of r423).

test.py attached here is an example of how to use the framework.

01/16/08 17:16:03 changed by stephan

  • owner changed from yves to yvesjm.

Fixed 'assigned to' field.

Also, nwu-server in source:trunk/bin/nwu-server makes use of the new application framework.

01/17/08 15:47:19 changed by yvesjm

  • status changed from new to assigned.
  • version set to 0.1.7.
-->