/usr/share/tcltk/xotcl1.6.7-actiweb/WebAgent.xotcl is in xotcl 1.6.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | # $Id: WebAgent.xotcl,v 1.3 2005/09/09 21:09:01 neumann Exp $
package provide xotcl::actiweb::webAgent 0.8
package require xotcl::actiweb::agent
package require xotcl::actiweb::invoker
package require xotcl::mixinStrategy
package require XOTcl
namespace eval ::xotcl::actiweb::webAgent {
namespace import ::xotcl::*
#
# Web Agent are special agents that allow us to define another
# object in the paramter webfacade as a facade for the web agent
# itself and the sub-system shielded by the web agent with an interface
# for agents
#
Class WebAgent -superclass Agent
WebAgent instproc init args {
next
}
#
# let the web agents facade handle the call -> interprete args
# as "method args"
# return result of the invoker
#
#WebAgent instproc invokeFacade {args} {
# set a ""
# set m ""
# set l [llength $args]
# set o [my webfacade]
# if {$l > 0} {
# set m [lindex $args 0]
# }
# if {$l > 1} {
# set a [lrange $args 1 end]
# }
#
# #puts stderr "Web Agent [self]->invoke: OBJ: $o PROC: $m ARGS: $a"
#
# #
# # tell the invoker to redirect the call to the webfacade object
# #
# set re [RedirectException [self]::[my autoname re] \
# -obj $o -method $m -arguments $a]
#
# return $re
#}
#WebAgent instproc default args {
# return [next]
#}
namespace export WebAgent
}
namespace import ::xotcl::actiweb::webAgent::*
|