Ah yes, well, being that we are all heavily involved with computers
this seems like a problem that could be solved with software, let's
see:

the attached files are the skeleton for an xml-rpc meeting location announcement
thingy written in python, it's very basic

run the server by starting it as
python meetserver.py &

and run the client as
python meetclient.py

Note that this program as currently written is not vulnerable to the
object traversal hack covered in
http://www.python.org/security/PSF-2005-001/

however future versions will probably not be safe to run on python < 2.3.5

TODO Server:
 store state
 expose addLocation and setLocation (requires authentication)
 add time/calendaring
 integrate with website (mod_python,CGIXMLRPCHandler)

TODO Client:
 add options for addLocation and setLocation 
 add authorisation management
 add html snippet output 

if there's any interest we could get this to a point to field on the
euglug.org server



On 5/11/05, Jeff Newton <[EMAIL PROTECTED]> wrote:
> As far as I know they are - haven't seen anything posted this week about it,
> hmm, looks like I forgot to start it at the beginning of the week, oh well...
> Its ain't perfect being a computer guru these days. ;)
> 
> 
> Jim K wrote:
> > Are we still meeting in Springfield on thursday evenings
> > at 228 Main St. in Springfield at 7pm?
> > Jim K
> >
> >
> > _______________________________________________
> > EUGLUG mailing list
> > [email protected]
> > http://www.euglug.org/mailman/listinfo/euglug
> >
> _______________________________________________
> EUGLUG mailing list
> [email protected]
> http://www.euglug.org/mailman/listinfo/euglug
> 


-- 
http://Zoneverte.org -- information explained
Do you know what your IT infrastructure does?
#!/usr/bin/env python

from SimpleXMLRPCServer import SimpleXMLRPCServer

class Meeting:
    def __init__(self):
        self.locations = []
        self._index = 0
    def addLocation(self,params):
        self.locations.append(params)
    def setLocation(self,index):
        if 0 <= index <= len(self.locations):
            self._index = index
    def getLocation(self):
        return self.locations[self._index]

if __name__=='__main__':
    meet = Meeting()
    meet.addLocation(
        {
        'street': '228 Main St.',
        'city' : 'Springfield',
        'state': 'Oregon'
        })
    serv = SimpleXMLRPCServer(("localhost",8000))
    serv.register_function(meet.getLocation)
    serv.serve_forever()
#!/usr/bin/env python

import xmlrpclib

server = xmlrpclib.ServerProxy('http://localhost:8000')

location = server.getLocation()

tmpl = """The Next EUGLUG meeting will be at:
%(street)s
%(city)s,%(state)s
"""

print tmpl % location

    
_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to