Mailinglist Archive: opensuse-buildservice (216 mails)

< Previous Next >
[opensuse-buildservice] Comment for compile_dispatches in BSServer.pm
  • From: David Greaves <david@xxxxxxxxxxxx>
  • Date: Thu, 25 Mar 2010 23:48:42 +0000
  • Message-id: <4BABF65A.6050609@xxxxxxxxxxxx>
mls... is this about right?

# dispatches are the uri pattern => fn() mapping
#
# eg
# 'POST:/source/$project/$package cmd=diff rev? orev:rev? oproject:project?
opackage:package? expand:bool? linkrev? olinkrev:linkrev? unified:bool?' =>
\&sourcediff,
#
# maps a URI like:
# /source/home:lbt/emacs?332&orev=323&oproject=home:cvm&opackage=vi&expand&
# to call
# &sourcediff with
# $project=home:lbt
# $package=emacs
# $cmd=diff
# $rev=332
# $orev=323
# $expand=1
#
# [<auth>] [<header>] <path> [<variables>] => <function>
# <auth> ::== "!" <role>
# <header> ::== ( "GET" | "HEAD" | "PUT" | "POST" | "DELETE" ) ":"
# <path> ::== { "/" <path-element> }+
# <path-element> ::== <non / string> | <perlscalar>
# <variables> ::== <perlscalar> [":" <type>] ["?"] | "*:*"
# <type> ::== "rev" | "bool" | "project" | "linkrev"
#
# <auth> is ??probably useful...??
#
# The <header> defines the http type (and does what wrt auth?)
#
# The <path> matches the main routing path of the uri
# and allocates non-fixed elements to <perlscalar>
#
# the <variables> allow query elements to be defined
# linkrev/rev expects an OBS revision such as 133
# bool expects the presence or absence of a query element : &var&
# project expects a projid such as : home:lbt
#
# The ? for a variable indicates that it is optional.



--
"Don't worry, you'll be fine; I saw it work in a cartoon once..."
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages