Module Expr Str Assign NameStore Str ImportFrom alias Import alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier FunctionDef arguments args defaults body Expr Str Return NameLoad decorator_list Call NameLoad keyword Str keyword ListLoad keyword AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad Print BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Call NameLoad NameLoad Str Return Dict Str Str NameLoad NameLoad decorator_list Call NameLoad keyword Str keyword ListLoad Str keyword AttributeLoad NameLoad attr FunctionDef arguments args defaults kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list Call NameLoad keyword Str keyword ListLoad keyword AttributeLoad NameLoad attr
N/A N/A 
   Copyright 2013, 2014 Ricardo Tubio-Pardavila

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A __author__ rtubiopa@calpoly.edu rpc4django rpcmethod N/A socket services.accounts models account_models services.common gis website settings satnet_settings keep_alive N/A N/A N/A N/A N/A JRPC method
    Simple method used to keep alive the server connection.
    :return: True
     N/A True N/A N/A rpcmethod name network.alive signature N/A login_required N/A satnet_settings JRPC_LOGIN_REQUIRED hostname_geoip N/A N/A hostname N/A N/A N/A JRPC method
    Retrieves the location of the given hostname using the GEO IP services.
    :param hostname: The name of the host
    :return: JSON object, { latitude: $lat, longitude: $lng }
     N/A host_ip N/A N/A socket gethostbyname hostname N/A N/A lat lng N/A N/A gis get_remote_user_location ip host_ip N/A N/A N/A N/A N/A N/A N/A N/A N/A >>> host =  N/A str hostname , ip =  N/A str host_ip , @( N/A str lat ,  N/A str lng ) N/A N/A latitude longitude lat lng N/A N/A rpcmethod name network.geoip signature N/A String login_required N/A satnet_settings JRPC_LOGIN_REQUIRED current_user N/A N/A N/A kwargs N/A N/A JRPC method
    Retrieves the username for the currently logged user
    :param kwargs: Necessary to access to the HTTP request object
    :return: String with the name of the currently logged user
     N/A N/A user username N/A N/A account_models get_user http_request N/A N/A kwargs get request None N/A username N/A N/A rpcmethod name network.user signature N/A login_required N/A satnet_settings JRPC_LOGIN_REQUIRED