• Leigh Stoller's avatar
    New script to set the node location. Linked from the shownode page. Only · 303132ed
    Leigh Stoller authored
    admin people allowed. Comment from script:
    
    # * Initially we come in with just a nodeid. Display a page of little maps
    #   and titles the user must select (a floor in a building) from. User clicks.
    # * Next time through we have a building and floor defined in addition to the
    #   the nodeid. We put up that big image with the current nodes on that floor.
    #   We use the external floormap program to generate that image, but without
    #   an imagemap. Instead, we use a form with an input type=image, which acts
    #   as a big submit button; when the user clicks in the image, the browser
    #   submits the form, but with the x,y coords added as form arguments.
    # * We get all of the above arguments on the final click, including x,y. Verify
    #   all the aguments, and then do the insert.
    # * If user goes to reset the node location, form includes an additional submit
    #   button that says to use the old coords. This allows us to change the contact
    #   info for a node without actually changing the location.
    
    Caveats:
    
    * We do not describe buildings in the DB, and so we are currently hardwired
      to MEB for the building, and the images for each floor are still
      hardwired in the external script (vis/floormap.in) that creates the
      image. Needs to be dealt with before we can export this stuff.
    
    * There is no way web interface to delete a location entry. That should be
      easy to deal with when needed, but in the meantime:
    
    	delete from location_info where node_id='pcXXX'
    
    * All nodes get a "Set Location Entry" on the shownode page menu; I leave
      it to admin people to not set the location for a non-wireless node; will
      fix later as needed.
    
    * Coordinates are all in pixels. As Russ points out, this is (way) less
      then ideal, but certainly simple.
    303132ed
Name
Last commit
Last update
account Loading commit data...
apache Loading commit data...
assign Loading commit data...
autoconf Loading commit data...
capture Loading commit data...
cdrom Loading commit data...
db Loading commit data...
delay/linux Loading commit data...
dhcpd Loading commit data...
discvr Loading commit data...
doc Loading commit data...
event Loading commit data...
hw_config Loading commit data...
hyperviewer Loading commit data...
install Loading commit data...
ipod Loading commit data...
lib Loading commit data...
os Loading commit data...
patches Loading commit data...
pxe Loading commit data...
rc.d Loading commit data...
rpms Loading commit data...
security Loading commit data...
sensors Loading commit data...
sql Loading commit data...
ssl Loading commit data...
sysadmin Loading commit data...
tbsetup Loading commit data...
testsuite Loading commit data...
tip Loading commit data...
tmcd Loading commit data...
tools Loading commit data...
utils Loading commit data...
vis Loading commit data...
www Loading commit data...
xmlrpc Loading commit data...
BUGS Loading commit data...
GNUmakefile.in Loading commit data...
GNUmakerules Loading commit data...
GPL-COPYING Loading commit data...
LICENSE Loading commit data...
Makeconf.in Loading commit data...
README Loading commit data...
TODO Loading commit data...
TODO.plab Loading commit data...
config.h.in Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
defs-aerolab Loading commit data...
defs-barb-emulab Loading commit data...
defs-barb-mini Loading commit data...
defs-calfeld-emulab Loading commit data...
defs-davidand-emulab Loading commit data...
defs-default Loading commit data...
defs-duerig-emulab Loading commit data...
defs-example Loading commit data...
defs-gatech Loading commit data...
defs-kwebb-emulab Loading commit data...
defs-mini Loading commit data...
defs-newbold-emulab Loading commit data...
defs-newbold-macdb Loading commit data...
defs-newbold-mini Loading commit data...
defs-rchriste-emulab Loading commit data...
defs-ricci-emulab Loading commit data...
defs-ricci-mini Loading commit data...
defs-shash-emulab Loading commit data...
defs-shash-mini Loading commit data...
defs-stoller-emulab Loading commit data...
defs-stoller-home Loading commit data...
defs-stoller-mini Loading commit data...
defs-uky Loading commit data...
defs-wide Loading commit data...