Oh and, the fix I pasted here is *somewhat* hacky, and is really just meant to get you off the ground. The maintainer will need to patch this at a later date though.
Cal On Mon, Jul 11, 2011 at 1:36 AM, Cal Leeming [Simplicity Media Ltd] < cal.leem...@simplicitymedialtd.co.uk> wrote: > Hmm, grp is only valid on unix platforms according to here: > > http://docs.python.org/library/grp.html > > https://github.com/saxix/django-iadmin/blob/master/iadmin/plugins/fm/fs.py > > *line 4-6:* > > from grp import getgrgid > > from pwd import getpwuid > > *Replace with this:* > * > * > import os > if not os.name == 'nt': > from grp import getgrgid > from pwd import getpwuid > > > *line 40-41:* > > self.user = getpwuid(itemstat.st_uid)[0] > self.group = getgrgid(itemstat.st_gid)[0] > > *Replace with this:* > > if not os.name == 'nt': > self.user = getpwuid(itemstat.st_uid)[0] > self.group = getgrgid(itemstat.st_gid)[0] > else: > self.user = 0 > self.group = 0 > > This may or may not work lol. > > Cal > > On Mon, Jul 11, 2011 at 1:31 AM, leo <eilinx....@gmail.com> wrote: > >> hi, sax >> After downloading the newest code and i try to implement the iadmin >> the setup works well this time but when I try to access the >> localhost/admin >> got the follow error , >> >> My platform Win2008R2, python 2.6.6 >> >> I checked the code found something, >> I write my code in Win, and in Win python can not import grp. >> but when i try import in FreeBSD it works.My win's python install >> by default. >> So I think your iadmin is not suitable for Windows now. >> >> >> ImportError at /admin >> >> No module named grp >> >> Request Method: GET Request URL: http://localhost:8888/admin Django >> Version: 1.3 Exception Type: ImportError Exception Value: >> >> No module named grp >> >> Exception Location: D:\Python26\lib\site-packages\iadmin\plugins\fm\fs.py >> in <module>, line 4 Python Executable: D:\Python26\python.exe Python >> Version: 2.6.6 Python Path: >> >> ['D:\\Documents\\Workspace\\server', >> 'C:\\Windows\\system32\\python26.zip', >> 'D:\\Python26\\DLLs', >> 'D:\\Python26\\lib', >> 'D:\\Python26\\lib\\plat-win', >> 'D:\\Python26\\lib\\lib-tk', >> 'D:\\Python26', >> 'D:\\Python26\\lib\\site-packages'] >> >> Server time: Mon, 11 Jul 2011 08:22:54 +0800 >> >> >> >> >> >> On 2011/7/10 12:30, leo wrote: >> >> hi, sax >> I downloaded the package and want to install is using normal way >> then I got error like this: >> >> D:\saxix-django-iadmin-ec7ad2a>setup.py install >> Traceback (most recent call last): >> File "D:\saxix-django-iadmin-ec7ad2a\setup.py", line 44, in <module> >> version = ".".join(iadmin.__version__), >> TypeError: sequence item 0: expected string, int found >> >> I got confused because the package install procedure is different >> with online's manual... >> >> >> >> On 2011/7/5 3:26, sax wrote: >> >> yep, but more test needed.... >> >> sax >> >> >> >> 2011/7/4 Fred Chevitarese <fchevitar...@gmail.com> >> >>> Hmmm I like it ! >>> >>> All those features are already working? >>> >>> >>> ^^ >>> >>> >>> " >>> *O relógio da vida recebe corda apenas uma vez.* >>> *Ninguém tem o poder de decidir quando os ponteiros pararão, se mais >>> cedo ou se mais tarde.* >>> *O presente é o único tempo que você possui.* >>> *Viva, ame e trabalhe com vontade.* >>> *Não ponha nenhuma esperança no tempo, pois o relógio pode parar a >>> qualquer momento.* >>> " >>> >>> Fred Chevitarese - GNU/Linux >>> http://chevitarese.wordpress.com >>> >>> >>> >>> >>> >>> 2011/7/4 creecode <creec...@gmail.com> >>> >>>> Sounds interesting! Thanks! >>>> >>>> >>>> On Monday, July 4, 2011 11:06:44 AM UTC-7, sax wrote: >>>>> >>>>> Django iAdmin >>>>> >>>>> iAdmin is a replacement of standard django admin application. >>>>> Features >>>>> >>>>> - multiple columns portlets-like home page >>>>> - tabbed view of inlines >>>>> - mass updates functionality >>>>> - export to csv with options and formatting >>>>> - advanced import from csv with foreign key handling >>>>> - link to foreignkey edit page from changelist >>>>> (list_display_rel_links) >>>>> - filter by cell values (cell_filters) >>>>> - ajax autocomplete widgets for ForeignKey >>>>> - auto register missed modules. >>>>> - auto add fields not present in fieldset (add_undefined_fields) >>>>> - utilities ( tabular_factory) >>>>> - info page for packages and application version >>>>> - integrated file manager with upload/zip functionality >>>>> - WYSIWYG editor wymeditor >>>>> - shortcuts to configure django.contrib.* applications >>>>> >>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Django users" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/django-users/-/PCtWyR-jwVMJ. >>>> >>>> To post to this group, send email to django-users@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> django-users+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/django-users?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Django users" group. >>> To post to this group, send email to django-users@googlegroups.com. >>> To unsubscribe from this group, send email to >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> >> >> -- >> chlin >> >> >> -- >> chlin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-users@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.