~markwash/network-service/style-points

« back to all changes in this revision

Viewing changes to melange/ipam/service.py

  • Committer: rajarammallya
  • Date: 2011-05-11 07:13:30 UTC
  • Revision ID: rajarammallya@gmail.com-20110511071330-xsn77y273q7iw32m
Rajaram/Santhosh|Pushed the mapping of the models with DB into mappers.py, added an api for db

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        return "index"
29
29
 
30
30
    def create(self,request):
31
 
        block = IpBlock()
32
 
        block.update(request.params)
33
 
        block.save()
 
31
        block = IpBlock.create(request.params)
34
32
        return self._ip_block_dict(block)
35
33
 
36
34
    def show(self, request,id):