瀏覽代碼

Adding icon argument to EmType::create() method

Yann Weber 9 年之前
父節點
當前提交
65166a5dfd
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      EditorialModel/types.py

+ 1
- 1
EditorialModel/types.py 查看文件

@@ -41,7 +41,7 @@ class EmType(EmComponent):
41 41
     # @see EmComponent::__init__()
42 42
     # 
43 43
     # @todo check that em_class is an EmClass object (fieldtypes can handle it)
44
-    def create(c, name, em_class, sortcolumn='rank', **em_component_args):
44
+    def create(c, name, em_class, sortcolumn='rank', icon=None, **em_component_args):
45 45
         return super(EmType, c).create(name=name, class_id=em_class.uid, sortcolumn=sortcolumn, **em_component_args)
46 46
 
47 47
     @property

Loading…
取消
儲存