Python论坛  - 讨论区

标题:Re[3]: [python-chinese] moinmoin如何设置访客不能编辑页面

2004年08月10日 星期二 15:39

Zoom.Quiet zoomquiet at infopro.cn
Tue Aug 10 15:39:05 HKT 2004

Hollo 0.706:

  如果我们都能将技术修炼的仙一样,别人一提都说
“够鸟(diao)!” 这辈子也值了!


/******** [2004-08-10]15:38:13 ; 0.706 wrote:

0.706> "Zoom.Quiet"  	鸟人太难听了,改人鸟算了 

0.706> ======= 2004-08-10 14:57:11 您在来信中写道:=======

>>Hollo HD:
>>
>>PPS.
>>今天得小空,将 wiki.woodpecker.org.cn 的文章结构调整了一下子,
>>
>>创造个新词儿,你审核一下子是也乎?
>>
>>++++++++++++++++++++++++
>>ps:
>>http://wiki.woodpecker.org.cn/moin.cgi/HelpOnAccessControlLists
>>是标准的权限控制,不过麻烦些,除非根 Unix
>>用户结合,否则没有什么意思,不过在下倒是一直没有找到如何可以让匿名用户可以写注解的,
>>
>>好象 Moin 不象其它的Wiki 有注解功能??
>>
>>++++++++++++++++++++++++++++
>>
>>  咦咦咦??不是说过了??
>>按照在下的 config.py 依法处理就好的?
>>关键的::
>>
>># permissions 
>>
>>from MoinMoin.security import Permissions 
>>class SecurityPolicy(Permissions): 
>>    def edit(self, pagename, **_): 
>>        # only known users are allowed to delete 
>>        return self.user.valid 
>>
>>其中 **_ 是个正则表达式,可以更进一步限定的!
>>中蟒,就是如此干的!
>>
>>
>>
>>/******** [2004-08-10]14:47:49 ; HD wrote:
>>
>>HD> 呵呵,在哪里设置呀,怎么设置?zoom.q呀,说说。有人在追我了。 :)
>>
>>
>>
>>********************************************/
>>
>>-- 
>>Free as in Freedom
>>
>> Zoom.Quiet                           
>>
>>#=========================================#
>>]Time is unimportant, only life important![
>>#=========================================#
>>
>>sender is the Bat!2.12.00
>>
>>_______________________________________________
>>python-chinese list
>>python-chinese at lists.python.cn
>>http://python.cn/mailman/listinfo/python-chinese
>>

0.706> = = = = = = = = = = = = = = = = = = = =
			

0.706>         致
0.706> 礼!
 
				 
0.706>         0.706
0.706>         0.706 at 163.com
0.706>           2004-08-10



********************************************/

-- 
Free as in Freedom

 Zoom.Quiet                           

#=========================================#
]Time is unimportant, only life important![
#=========================================#

sender is the Bat!2.12.00



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年08月10日 星期二 15:43

limodou chatme at 263.net
Tue Aug 10 15:43:30 HKT 2004

tocer,您好!

	因为使用Python根本不关心这个。不要总把C/C++里的概念在Python中使用,因为它们根本就不一样。

======= 2004-08-10 15:33:00 您在来信中写道:=======

>没想到这么难解决
>
>----- Original Message ----- 
>From: "gentoo.cn" <gentoo.cn at 126.com>
>To: <python-chinese at lists.python.cn>
>Sent: Tuesday, August 10, 2004 12:53 PM
>Subject: Re: [python-chinese] 如何测量一个变量或者常量在内存中的大小
>
>
>> 找到一个相关的讨论
>> http://www.egenix.com/mailman-archives/egenix-users/2002-November/000156.html
>> 
>> gentoo.cn wrote:
>> 
>> >我的意思是:是不是可以通过计算一个Object的Struct来猜测这个Object的大小?
>> >比如c='a', string="abcd"
>> >那么c的类型是1c, string的类型是4c
>> >calcsize('c')=1
>> >calcsize('L')=4
>> >也就是说一个数值型的对象占用4Bytes内存空间,一个字符型对象占用1Bytes内存
>> >空间?
>> >对于string="abcd"这个对象,类型是4c所以占用4Bytes内存空间?
>> >不知道Python如何考虑对齐的(也许他最小的单位是1Bytes所以都是8bit的倍数,
>> >这样就对齐了?)
>> >
>> >大家都来讨论讨论啊。
>> >
>> >
>> >
>> >limodou wrote:
>> >
>> >  
>> >
>> >>gentoo.cn,您好!
>> >>
>> >> 那个不是内存的大小吧。而是对应的struct的大小。因为在python中都是对象,而不仅仅是数据结构。不知道:你想知道内存大小有什么用?
>> >>
>> >>======= 2004-08-10 11:05:42 您在来信中写道:=======
>> >>
>> >> 
>> >>
>> >>    
>> >>
>> >>>import struct
>> >>>struct.pack
>> >>>struct.calcsize ?
>> >>>
>> >>>难道使用这个方法吗?
>> >>>我也想知道有什么方法来计算对象的size
>> >>>
>> >>>*calcsize*( fmt)
>> >>>
>> >>>  Return the size of the struct (and hence of the string)
>> >>>  corresponding to the given format. 
>> >>>
>> >>>Format characters have the following meaning; the conversion between C
>> >>>and Python values should be obvious given their types:
>> >>>
>> >>>*Format* *C Type* *Python* *Notes*
>> >>>x pad byte no value 
>> >>>c char string of length 1 
>> >>>b signed char integer 
>> >>>B unsigned char integer 
>> >>>h short integer 
>> >>>H unsigned short integer 
>> >>>i int integer 
>> >>>I unsigned int long 
>> >>>l long integer 
>> >>>L unsigned long long 
>> >>>q long long long (1)
>> >>>Q unsigned long long long (1)
>> >>>f float float 
>> >>>d double float 
>> >>>s char[] string 
>> >>>p char[] string 
>> >>>P void * integer 
>> >>>
>> >>>
>> >>>tocer wrote:
>> >>>
>> >>>   
>> >>>
>> >>>      
>> >>>
>> >>>>比如:
>> >>>>a=[1,2,3]
>> >>>>测试 a 在内存中的所占的字节数
>> >>>>
>> >>>>------------------------------------------------------------------------
>> >>>>
>> >>>>_______________________________________________
>> >>>>python-chinese list
>> >>>>python-chinese at lists.python.cn
>> >>>>http://python.cn/mailman/listinfo/python-chinese
>> >>>>
>> >>>>
>> >>>>     
>> >>>>
>> >>>>        
>> >>>>
>> >>>_______________________________________________
>> >>>python-chinese list
>> >>>python-chinese at lists.python.cn
>> >>>http://python.cn/mailman/listinfo/python-chinese
>> >>>
>> >>>   
>> >>>
>> >>>      
>> >>>
>> >>= = = = = = = = = = = = = = = = = = = =
>> >> 
>> >>
>> >>        致
>> >>礼!
>> >>
>> >> 
>> >>        limodou
>> >>        chatme at 263.net
>> >>          2004-08-10
>> >>
>> >> 
>> >>
>> >>------------------------------------------------------------------------
>> >>
>> >>_______________________________________________
>> >>python-chinese list
>> >>python-chinese at lists.python.cn
>> >>http://python.cn/mailman/listinfo/python-chinese
>> >> 
>> >>
>> >>    
>> >>
>> >
>> >_______________________________________________
>> >python-chinese list
>> >python-chinese at lists.python.cn
>> >http://python.cn/mailman/listinfo/python-chinese
>> >
>> >
>> >  
>> >
>> 
>> _______________________________________________
>> python-chinese list
>> python-chinese at lists.python.cn
>> http://python.cn/mailman/listinfo/python-chinese
>> _______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-10


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2004年08月10日 星期二 15:50

limodou chatme at 263.net
Tue Aug 10 15:50:51 HKT 2004

Zoom.Quiet,您好!

	为什么不说“够牛”呢?鸟(diao)是骂人的话吧。

======= 2004-08-10 15:39:05 您在来信中写道:=======

>Hollo 0.706:
>
>  如果我们都能将技术修炼的仙一样,别人一提都说
>“够鸟(diao)!” 这辈子也值了!
>
>
>/******** [2004-08-10]15:38:13 ; 0.706 wrote:
>
>0.706> "Zoom.Quiet" >
>0.706> 	鸟人太难听了,改人鸟算了 
>
>0.706> ======= 2004-08-10 14:57:11 您在来信中写道:=======
>
>>>Hollo HD:
>>>
>>>PPS.
>>>今天得小空,将 wiki.woodpecker.org.cn 的文章结构调整了一下子,
>>>
>>>创造个新词儿,你审核一下子是也乎?
>>>
>>>++++++++++++++++++++++++
>>>ps:
>>>http://wiki.woodpecker.org.cn/moin.cgi/HelpOnAccessControlLists
>>>是标准的权限控制,不过麻烦些,除非根 Unix
>>>用户结合,否则没有什么意思,不过在下倒是一直没有找到如何可以让匿名用户可以写注解的,
>>>
>>>好象 Moin 不象其它的Wiki 有注解功能??
>>>
>>>++++++++++++++++++++++++++++
>>>
>>>  咦咦咦??不是说过了??
>>>按照在下的 config.py 依法处理就好的?
>>>关键的::
>>>
>>># permissions 
>>>
>>>from MoinMoin.security import Permissions 
>>>class SecurityPolicy(Permissions): 
>>>    def edit(self, pagename, **_): 
>>>        # only known users are allowed to delete 
>>>        return self.user.valid 
>>>
>>>其中 **_ 是个正则表达式,可以更进一步限定的!
>>>中蟒,就是如此干的!
>>>
>>>
>>>
>>>/******** [2004-08-10]14:47:49 ; HD wrote:
>>>
>>>HD> 呵呵,在哪里设置呀,怎么设置?zoom.q呀,说说。有人在追我了。 :)
>>>
>>>
>>>
>>>********************************************/
>>>
>>>-- 
>>>Free as in Freedom
>>>
>>> Zoom.Quiet                           
>>>
>>>#=========================================#
>>>]Time is unimportant, only life important![
>>>#=========================================#
>>>
>>>sender is the Bat!2.12.00
>>>
>>>_______________________________________________
>>>python-chinese list
>>>python-chinese at lists.python.cn
>>>http://python.cn/mailman/listinfo/python-chinese
>>>
>
>0.706> = = = = = = = = = = = = = = = = = = = =
>			
>
>0.706>         致
>0.706> 礼!
> 
>				 
>0.706>         0.706
>0.706>         0.706 at 163.com
>0.706>           2004-08-10
>
>
>
>********************************************/
>
>-- 
>Free as in Freedom
>
> Zoom.Quiet                           
>
>#=========================================#
>]Time is unimportant, only life important![
>#=========================================#
>
>sender is the Bat!2.12.00
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        limodou
        chatme at 263.net
          2004-08-10


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号