You can split the path that is passed to the handler script this way:
path_list = self.request.path.strip('/').split('/')
If the URL is /porfile/interman
then path_list will be ['profile', 'interman']
If you have a user model that looks something like this:
class MyUser(search.SearchableModel):
user = db.UserProperty()
#The name is a string property, which means that it is indexable
and searchable.
name = db.StringProperty()
def put(self):
#Replace the dots with spaces, and capitalize the name
properly
self.name = self.user.nickname()
db.Model.put(self)
Then, you can query for a user this way:
user = MyUser.gql("WHERE name =:1", path[1])
By the way, a different way to map URLs is explained here:
http://code.google.com/appengine/docs/webapp/running.html