@plone/volto 14.0.2 → 14.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/README.md +24 -3
- package/locales/ca/LC_MESSAGES/volto.po +12 -2
- package/locales/ca.json +1 -1
- package/locales/de/LC_MESSAGES/volto.po +12 -2
- package/locales/de.json +1 -1
- package/locales/en/LC_MESSAGES/volto.po +12 -2
- package/locales/en.json +1 -1
- package/locales/es/LC_MESSAGES/volto.po +12 -2
- package/locales/es.json +1 -1
- package/locales/eu/LC_MESSAGES/volto.po +12 -2
- package/locales/eu.json +1 -1
- package/locales/fr/LC_MESSAGES/volto.po +12 -2
- package/locales/fr.json +1 -1
- package/locales/it/LC_MESSAGES/volto.po +12 -2
- package/locales/it.json +1 -1
- package/locales/ja/LC_MESSAGES/volto.po +12 -2
- package/locales/ja.json +1 -1
- package/locales/nl/LC_MESSAGES/volto.po +12 -2
- package/locales/nl.json +1 -1
- package/locales/pt/LC_MESSAGES/volto.po +12 -2
- package/locales/pt.json +1 -1
- package/locales/pt_BR/LC_MESSAGES/volto.po +12 -2
- package/locales/pt_BR.json +1 -1
- package/locales/ro/LC_MESSAGES/volto.po +12 -2
- package/locales/ro.json +1 -1
- package/locales/volto.pot +12 -2
- package/package.json +3 -2
- package/src/actions/vocabularies/vocabularies.js +15 -3
- package/src/components/index.js +1 -0
- package/src/components/manage/Add/Add.jsx +1 -0
- package/src/components/manage/Blocks/HeroImageLeft/Edit.jsx +1 -1
- package/src/components/manage/Blocks/Listing/getAsyncData.js +1 -1
- package/src/components/manage/Blocks/Text/Edit.jsx +19 -0
- package/src/components/manage/Edit/Edit.jsx +1 -0
- package/src/components/manage/Form/Form.jsx +32 -6
- package/src/components/manage/Form/UndoToolbar.jsx +78 -0
- package/src/components/manage/Multilingual/TranslationObject.jsx +1 -0
- package/src/components/manage/Widgets/AlignWidget.stories.jsx +5 -21
- package/src/components/manage/Widgets/ArrayWidget.jsx +88 -88
- package/src/components/manage/Widgets/ArrayWidget.stories.jsx +37 -64
- package/src/components/manage/Widgets/CheckboxWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/DatetimeWidget.jsx +65 -74
- package/src/components/manage/Widgets/DatetimeWidget.stories.jsx +7 -23
- package/src/components/manage/Widgets/DatetimeWidget.test.jsx +17 -15
- package/src/components/manage/Widgets/EmailWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/FileWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/NumberWidget.stories.jsx +5 -23
- package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -32
- package/src/components/manage/Widgets/ObjectListWidget.stories.js +44 -44
- package/src/components/manage/Widgets/ObjectWidget.stories.jsx +13 -28
- package/src/components/manage/Widgets/PasswordWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/QueryWidget.jsx +2 -2
- package/src/components/manage/Widgets/QueryWidget.stories.jsx +1637 -22
- package/src/components/manage/Widgets/SelectAutoComplete.jsx +79 -48
- package/src/components/manage/Widgets/SelectAutoComplete.test.jsx +16 -0
- package/src/components/manage/Widgets/SelectAutocompleteWidget.stories.jsx +161 -0
- package/src/components/manage/Widgets/SelectUtils.js +90 -30
- package/src/components/manage/Widgets/SelectUtils.test.jsx +76 -1
- package/src/components/manage/Widgets/SelectWidget.jsx +26 -37
- package/src/components/manage/Widgets/SelectWidget.stories.jsx +96 -28
- package/src/components/manage/Widgets/TextWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/TextareaWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/TokenWidget.jsx +19 -17
- package/src/components/manage/Widgets/TokenWidget.stories.jsx +141 -0
- package/src/components/manage/Widgets/UrlWidget.stories.jsx +5 -21
- package/src/components/manage/Widgets/VocabularyTermsWidget.stories.js +27 -64
- package/src/components/manage/Widgets/WysiwygWidget.stories.jsx +5 -22
- package/src/components/manage/Widgets/story.jsx +38 -0
- package/src/components/theme/ContactForm/ContactForm.jsx +1 -0
- package/src/components/theme/ContactForm/ContactForm.stories.jsx +126 -0
- package/src/components/theme/CorsError/CorsError.jsx +2 -2
- package/src/components/theme/Navigation/NavItem.jsx +3 -1
- package/src/config/Blocks.jsx +8 -1
- package/src/config/Loadables.jsx +2 -0
- package/src/config/index.js +3 -0
- package/src/helpers/UndoManager/useUndoManager.js +102 -0
- package/src/helpers/index.js +1 -0
- package/src/reducers/vocabularies/vocabularies.js +13 -2
- package/src/store.js +1 -1
- package/src/storybook.jsx +55 -0
- package/theme/themes/pastanaga/extras/time-picker-overrides.less +1 -1
- package/include/python3.8/Python-ast.h +0 -715
- package/include/python3.8/Python.h +0 -160
- package/include/python3.8/abstract.h +0 -844
- package/include/python3.8/asdl.h +0 -46
- package/include/python3.8/ast.h +0 -37
- package/include/python3.8/bitset.h +0 -23
- package/include/python3.8/bltinmodule.h +0 -14
- package/include/python3.8/boolobject.h +0 -34
- package/include/python3.8/bytearrayobject.h +0 -62
- package/include/python3.8/bytes_methods.h +0 -69
- package/include/python3.8/bytesobject.h +0 -224
- package/include/python3.8/cellobject.h +0 -29
- package/include/python3.8/ceval.h +0 -231
- package/include/python3.8/classobject.h +0 -59
- package/include/python3.8/code.h +0 -180
- package/include/python3.8/codecs.h +0 -240
- package/include/python3.8/compile.h +0 -106
- package/include/python3.8/complexobject.h +0 -69
- package/include/python3.8/context.h +0 -84
- package/include/python3.8/cpython/abstract.h +0 -319
- package/include/python3.8/cpython/dictobject.h +0 -94
- package/include/python3.8/cpython/fileobject.h +0 -24
- package/include/python3.8/cpython/initconfig.h +0 -434
- package/include/python3.8/cpython/interpreteridobject.h +0 -19
- package/include/python3.8/cpython/object.h +0 -470
- package/include/python3.8/cpython/objimpl.h +0 -113
- package/include/python3.8/cpython/pyerrors.h +0 -188
- package/include/python3.8/cpython/pylifecycle.h +0 -78
- package/include/python3.8/cpython/pymem.h +0 -108
- package/include/python3.8/cpython/pystate.h +0 -252
- package/include/python3.8/cpython/sysmodule.h +0 -21
- package/include/python3.8/cpython/traceback.h +0 -22
- package/include/python3.8/cpython/tupleobject.h +0 -36
- package/include/python3.8/cpython/unicodeobject.h +0 -1239
- package/include/python3.8/datetime.h +0 -259
- package/include/python3.8/descrobject.h +0 -108
- package/include/python3.8/dictobject.h +0 -94
- package/include/python3.8/dtoa.h +0 -19
- package/include/python3.8/dynamic_annotations.h +0 -499
- package/include/python3.8/enumobject.h +0 -17
- package/include/python3.8/errcode.h +0 -38
- package/include/python3.8/eval.h +0 -37
- package/include/python3.8/fileobject.h +0 -49
- package/include/python3.8/fileutils.h +0 -185
- package/include/python3.8/floatobject.h +0 -130
- package/include/python3.8/frameobject.h +0 -92
- package/include/python3.8/funcobject.h +0 -104
- package/include/python3.8/genobject.h +0 -109
- package/include/python3.8/graminit.h +0 -94
- package/include/python3.8/grammar.h +0 -77
- package/include/python3.8/import.h +0 -149
- package/include/python3.8/internal/pycore_accu.h +0 -39
- package/include/python3.8/internal/pycore_atomic.h +0 -558
- package/include/python3.8/internal/pycore_ceval.h +0 -37
- package/include/python3.8/internal/pycore_code.h +0 -27
- package/include/python3.8/internal/pycore_condvar.h +0 -95
- package/include/python3.8/internal/pycore_context.h +0 -42
- package/include/python3.8/internal/pycore_fileutils.h +0 -54
- package/include/python3.8/internal/pycore_getopt.h +0 -22
- package/include/python3.8/internal/pycore_gil.h +0 -50
- package/include/python3.8/internal/pycore_hamt.h +0 -116
- package/include/python3.8/internal/pycore_initconfig.h +0 -166
- package/include/python3.8/internal/pycore_object.h +0 -81
- package/include/python3.8/internal/pycore_pathconfig.h +0 -75
- package/include/python3.8/internal/pycore_pyerrors.h +0 -62
- package/include/python3.8/internal/pycore_pyhash.h +0 -10
- package/include/python3.8/internal/pycore_pylifecycle.h +0 -118
- package/include/python3.8/internal/pycore_pymem.h +0 -212
- package/include/python3.8/internal/pycore_pystate.h +0 -326
- package/include/python3.8/internal/pycore_traceback.h +0 -96
- package/include/python3.8/internal/pycore_tupleobject.h +0 -19
- package/include/python3.8/internal/pycore_warnings.h +0 -25
- package/include/python3.8/interpreteridobject.h +0 -17
- package/include/python3.8/intrcheck.h +0 -33
- package/include/python3.8/iterobject.h +0 -25
- package/include/python3.8/listobject.h +0 -81
- package/include/python3.8/longintrepr.h +0 -99
- package/include/python3.8/longobject.h +0 -242
- package/include/python3.8/marshal.h +0 -28
- package/include/python3.8/memoryobject.h +0 -72
- package/include/python3.8/methodobject.h +0 -131
- package/include/python3.8/modsupport.h +0 -248
- package/include/python3.8/moduleobject.h +0 -90
- package/include/python3.8/namespaceobject.h +0 -19
- package/include/python3.8/node.h +0 -48
- package/include/python3.8/object.h +0 -753
- package/include/python3.8/objimpl.h +0 -284
- package/include/python3.8/odictobject.h +0 -43
- package/include/python3.8/opcode.h +0 -148
- package/include/python3.8/osdefs.h +0 -51
- package/include/python3.8/osmodule.h +0 -17
- package/include/python3.8/parsetok.h +0 -110
- package/include/python3.8/patchlevel.h +0 -35
- package/include/python3.8/picklebufobject.h +0 -31
- package/include/python3.8/py_curses.h +0 -100
- package/include/python3.8/pyarena.h +0 -64
- package/include/python3.8/pycapsule.h +0 -59
- package/include/python3.8/pyconfig.h +0 -1665
- package/include/python3.8/pyctype.h +0 -39
- package/include/python3.8/pydebug.h +0 -40
- package/include/python3.8/pydtrace.h +0 -59
- package/include/python3.8/pydtrace_probes.h +0 -228
- package/include/python3.8/pyerrors.h +0 -335
- package/include/python3.8/pyexpat.h +0 -55
- package/include/python3.8/pyfpe.h +0 -12
- package/include/python3.8/pyhash.h +0 -145
- package/include/python3.8/pylifecycle.h +0 -75
- package/include/python3.8/pymacconfig.h +0 -102
- package/include/python3.8/pymacro.h +0 -106
- package/include/python3.8/pymath.h +0 -230
- package/include/python3.8/pymem.h +0 -150
- package/include/python3.8/pyport.h +0 -850
- package/include/python3.8/pystate.h +0 -136
- package/include/python3.8/pystrcmp.h +0 -23
- package/include/python3.8/pystrhex.h +0 -22
- package/include/python3.8/pystrtod.h +0 -45
- package/include/python3.8/pythonrun.h +0 -210
- package/include/python3.8/pythread.h +0 -161
- package/include/python3.8/pytime.h +0 -246
- package/include/python3.8/rangeobject.h +0 -27
- package/include/python3.8/setobject.h +0 -108
- package/include/python3.8/sliceobject.h +0 -65
- package/include/python3.8/structmember.h +0 -74
- package/include/python3.8/structseq.h +0 -49
- package/include/python3.8/symtable.h +0 -123
- package/include/python3.8/sysmodule.h +0 -41
- package/include/python3.8/token.h +0 -92
- package/include/python3.8/traceback.h +0 -28
- package/include/python3.8/tracemalloc.h +0 -38
- package/include/python3.8/tupleobject.h +0 -48
- package/include/python3.8/typeslots.h +0 -85
- package/include/python3.8/ucnhash.h +0 -36
- package/include/python3.8/unicodeobject.h +0 -1044
- package/include/python3.8/warnings.h +0 -67
- package/include/python3.8/weakrefobject.h +0 -86
- package/src/components/theme/ContactForm/ContactForm.stories.mdx +0 -39
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/* Generated by Parser/pgen */
|
|
2
|
-
|
|
3
|
-
#define single_input 256
|
|
4
|
-
#define file_input 257
|
|
5
|
-
#define eval_input 258
|
|
6
|
-
#define decorator 259
|
|
7
|
-
#define decorators 260
|
|
8
|
-
#define decorated 261
|
|
9
|
-
#define async_funcdef 262
|
|
10
|
-
#define funcdef 263
|
|
11
|
-
#define parameters 264
|
|
12
|
-
#define typedargslist 265
|
|
13
|
-
#define tfpdef 266
|
|
14
|
-
#define varargslist 267
|
|
15
|
-
#define vfpdef 268
|
|
16
|
-
#define stmt 269
|
|
17
|
-
#define simple_stmt 270
|
|
18
|
-
#define small_stmt 271
|
|
19
|
-
#define expr_stmt 272
|
|
20
|
-
#define annassign 273
|
|
21
|
-
#define testlist_star_expr 274
|
|
22
|
-
#define augassign 275
|
|
23
|
-
#define del_stmt 276
|
|
24
|
-
#define pass_stmt 277
|
|
25
|
-
#define flow_stmt 278
|
|
26
|
-
#define break_stmt 279
|
|
27
|
-
#define continue_stmt 280
|
|
28
|
-
#define return_stmt 281
|
|
29
|
-
#define yield_stmt 282
|
|
30
|
-
#define raise_stmt 283
|
|
31
|
-
#define import_stmt 284
|
|
32
|
-
#define import_name 285
|
|
33
|
-
#define import_from 286
|
|
34
|
-
#define import_as_name 287
|
|
35
|
-
#define dotted_as_name 288
|
|
36
|
-
#define import_as_names 289
|
|
37
|
-
#define dotted_as_names 290
|
|
38
|
-
#define dotted_name 291
|
|
39
|
-
#define global_stmt 292
|
|
40
|
-
#define nonlocal_stmt 293
|
|
41
|
-
#define assert_stmt 294
|
|
42
|
-
#define compound_stmt 295
|
|
43
|
-
#define async_stmt 296
|
|
44
|
-
#define if_stmt 297
|
|
45
|
-
#define while_stmt 298
|
|
46
|
-
#define for_stmt 299
|
|
47
|
-
#define try_stmt 300
|
|
48
|
-
#define with_stmt 301
|
|
49
|
-
#define with_item 302
|
|
50
|
-
#define except_clause 303
|
|
51
|
-
#define suite 304
|
|
52
|
-
#define namedexpr_test 305
|
|
53
|
-
#define test 306
|
|
54
|
-
#define test_nocond 307
|
|
55
|
-
#define lambdef 308
|
|
56
|
-
#define lambdef_nocond 309
|
|
57
|
-
#define or_test 310
|
|
58
|
-
#define and_test 311
|
|
59
|
-
#define not_test 312
|
|
60
|
-
#define comparison 313
|
|
61
|
-
#define comp_op 314
|
|
62
|
-
#define star_expr 315
|
|
63
|
-
#define expr 316
|
|
64
|
-
#define xor_expr 317
|
|
65
|
-
#define and_expr 318
|
|
66
|
-
#define shift_expr 319
|
|
67
|
-
#define arith_expr 320
|
|
68
|
-
#define term 321
|
|
69
|
-
#define factor 322
|
|
70
|
-
#define power 323
|
|
71
|
-
#define atom_expr 324
|
|
72
|
-
#define atom 325
|
|
73
|
-
#define testlist_comp 326
|
|
74
|
-
#define trailer 327
|
|
75
|
-
#define subscriptlist 328
|
|
76
|
-
#define subscript 329
|
|
77
|
-
#define sliceop 330
|
|
78
|
-
#define exprlist 331
|
|
79
|
-
#define testlist 332
|
|
80
|
-
#define dictorsetmaker 333
|
|
81
|
-
#define classdef 334
|
|
82
|
-
#define arglist 335
|
|
83
|
-
#define argument 336
|
|
84
|
-
#define comp_iter 337
|
|
85
|
-
#define sync_comp_for 338
|
|
86
|
-
#define comp_for 339
|
|
87
|
-
#define comp_if 340
|
|
88
|
-
#define encoding_decl 341
|
|
89
|
-
#define yield_expr 342
|
|
90
|
-
#define yield_arg 343
|
|
91
|
-
#define func_body_suite 344
|
|
92
|
-
#define func_type_input 345
|
|
93
|
-
#define func_type 346
|
|
94
|
-
#define typelist 347
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Grammar interface */
|
|
3
|
-
|
|
4
|
-
#ifndef Py_GRAMMAR_H
|
|
5
|
-
#define Py_GRAMMAR_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
#include "bitset.h" /* Sigh... */
|
|
11
|
-
|
|
12
|
-
/* A label of an arc */
|
|
13
|
-
|
|
14
|
-
typedef struct {
|
|
15
|
-
int lb_type;
|
|
16
|
-
const char *lb_str;
|
|
17
|
-
} label;
|
|
18
|
-
|
|
19
|
-
#define EMPTY 0 /* Label number 0 is by definition the empty label */
|
|
20
|
-
|
|
21
|
-
/* A list of labels */
|
|
22
|
-
|
|
23
|
-
typedef struct {
|
|
24
|
-
int ll_nlabels;
|
|
25
|
-
const label *ll_label;
|
|
26
|
-
} labellist;
|
|
27
|
-
|
|
28
|
-
/* An arc from one state to another */
|
|
29
|
-
|
|
30
|
-
typedef struct {
|
|
31
|
-
short a_lbl; /* Label of this arc */
|
|
32
|
-
short a_arrow; /* State where this arc goes to */
|
|
33
|
-
} arc;
|
|
34
|
-
|
|
35
|
-
/* A state in a DFA */
|
|
36
|
-
|
|
37
|
-
typedef struct {
|
|
38
|
-
int s_narcs;
|
|
39
|
-
const arc *s_arc; /* Array of arcs */
|
|
40
|
-
|
|
41
|
-
/* Optional accelerators */
|
|
42
|
-
int s_lower; /* Lowest label index */
|
|
43
|
-
int s_upper; /* Highest label index */
|
|
44
|
-
int *s_accel; /* Accelerator */
|
|
45
|
-
int s_accept; /* Nonzero for accepting state */
|
|
46
|
-
} state;
|
|
47
|
-
|
|
48
|
-
/* A DFA */
|
|
49
|
-
|
|
50
|
-
typedef struct {
|
|
51
|
-
int d_type; /* Non-terminal this represents */
|
|
52
|
-
char *d_name; /* For printing */
|
|
53
|
-
int d_nstates;
|
|
54
|
-
state *d_state; /* Array of states */
|
|
55
|
-
bitset d_first;
|
|
56
|
-
} dfa;
|
|
57
|
-
|
|
58
|
-
/* A grammar */
|
|
59
|
-
|
|
60
|
-
typedef struct {
|
|
61
|
-
int g_ndfas;
|
|
62
|
-
const dfa *g_dfa; /* Array of DFAs */
|
|
63
|
-
const labellist g_ll;
|
|
64
|
-
int g_start; /* Start symbol of the grammar */
|
|
65
|
-
int g_accel; /* Set if accelerators present */
|
|
66
|
-
} grammar;
|
|
67
|
-
|
|
68
|
-
/* FUNCTIONS */
|
|
69
|
-
const dfa *PyGrammar_FindDFA(grammar *g, int type);
|
|
70
|
-
const char *PyGrammar_LabelRepr(label *lb);
|
|
71
|
-
void PyGrammar_AddAccelerators(grammar *g);
|
|
72
|
-
void PyGrammar_RemoveAccelerators(grammar *);
|
|
73
|
-
|
|
74
|
-
#ifdef __cplusplus
|
|
75
|
-
}
|
|
76
|
-
#endif
|
|
77
|
-
#endif /* !Py_GRAMMAR_H */
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
/* Module definition and import interface */
|
|
3
|
-
|
|
4
|
-
#ifndef Py_IMPORT_H
|
|
5
|
-
#define Py_IMPORT_H
|
|
6
|
-
#ifdef __cplusplus
|
|
7
|
-
extern "C" {
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
#ifndef Py_LIMITED_API
|
|
11
|
-
PyMODINIT_FUNC PyInit__imp(void);
|
|
12
|
-
#endif /* !Py_LIMITED_API */
|
|
13
|
-
PyAPI_FUNC(long) PyImport_GetMagicNumber(void);
|
|
14
|
-
PyAPI_FUNC(const char *) PyImport_GetMagicTag(void);
|
|
15
|
-
PyAPI_FUNC(PyObject *) PyImport_ExecCodeModule(
|
|
16
|
-
const char *name, /* UTF-8 encoded string */
|
|
17
|
-
PyObject *co
|
|
18
|
-
);
|
|
19
|
-
PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleEx(
|
|
20
|
-
const char *name, /* UTF-8 encoded string */
|
|
21
|
-
PyObject *co,
|
|
22
|
-
const char *pathname /* decoded from the filesystem encoding */
|
|
23
|
-
);
|
|
24
|
-
PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleWithPathnames(
|
|
25
|
-
const char *name, /* UTF-8 encoded string */
|
|
26
|
-
PyObject *co,
|
|
27
|
-
const char *pathname, /* decoded from the filesystem encoding */
|
|
28
|
-
const char *cpathname /* decoded from the filesystem encoding */
|
|
29
|
-
);
|
|
30
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
31
|
-
PyAPI_FUNC(PyObject *) PyImport_ExecCodeModuleObject(
|
|
32
|
-
PyObject *name,
|
|
33
|
-
PyObject *co,
|
|
34
|
-
PyObject *pathname,
|
|
35
|
-
PyObject *cpathname
|
|
36
|
-
);
|
|
37
|
-
#endif
|
|
38
|
-
PyAPI_FUNC(PyObject *) PyImport_GetModuleDict(void);
|
|
39
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
|
|
40
|
-
PyAPI_FUNC(PyObject *) PyImport_GetModule(PyObject *name);
|
|
41
|
-
#endif
|
|
42
|
-
#ifndef Py_LIMITED_API
|
|
43
|
-
PyAPI_FUNC(int) _PyImport_IsInitialized(PyInterpreterState *);
|
|
44
|
-
PyAPI_FUNC(PyObject *) _PyImport_GetModuleId(struct _Py_Identifier *name);
|
|
45
|
-
PyAPI_FUNC(PyObject *) _PyImport_AddModuleObject(PyObject *name,
|
|
46
|
-
PyObject *modules);
|
|
47
|
-
PyAPI_FUNC(int) _PyImport_SetModule(PyObject *name, PyObject *module);
|
|
48
|
-
PyAPI_FUNC(int) _PyImport_SetModuleString(const char *name, PyObject* module);
|
|
49
|
-
#endif
|
|
50
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
51
|
-
PyAPI_FUNC(PyObject *) PyImport_AddModuleObject(
|
|
52
|
-
PyObject *name
|
|
53
|
-
);
|
|
54
|
-
#endif
|
|
55
|
-
PyAPI_FUNC(PyObject *) PyImport_AddModule(
|
|
56
|
-
const char *name /* UTF-8 encoded string */
|
|
57
|
-
);
|
|
58
|
-
PyAPI_FUNC(PyObject *) PyImport_ImportModule(
|
|
59
|
-
const char *name /* UTF-8 encoded string */
|
|
60
|
-
);
|
|
61
|
-
PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(
|
|
62
|
-
const char *name /* UTF-8 encoded string */
|
|
63
|
-
);
|
|
64
|
-
PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevel(
|
|
65
|
-
const char *name, /* UTF-8 encoded string */
|
|
66
|
-
PyObject *globals,
|
|
67
|
-
PyObject *locals,
|
|
68
|
-
PyObject *fromlist,
|
|
69
|
-
int level
|
|
70
|
-
);
|
|
71
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03050000
|
|
72
|
-
PyAPI_FUNC(PyObject *) PyImport_ImportModuleLevelObject(
|
|
73
|
-
PyObject *name,
|
|
74
|
-
PyObject *globals,
|
|
75
|
-
PyObject *locals,
|
|
76
|
-
PyObject *fromlist,
|
|
77
|
-
int level
|
|
78
|
-
);
|
|
79
|
-
#endif
|
|
80
|
-
|
|
81
|
-
#define PyImport_ImportModuleEx(n, g, l, f) \
|
|
82
|
-
PyImport_ImportModuleLevel(n, g, l, f, 0)
|
|
83
|
-
|
|
84
|
-
PyAPI_FUNC(PyObject *) PyImport_GetImporter(PyObject *path);
|
|
85
|
-
PyAPI_FUNC(PyObject *) PyImport_Import(PyObject *name);
|
|
86
|
-
PyAPI_FUNC(PyObject *) PyImport_ReloadModule(PyObject *m);
|
|
87
|
-
PyAPI_FUNC(void) PyImport_Cleanup(void);
|
|
88
|
-
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
|
89
|
-
PyAPI_FUNC(int) PyImport_ImportFrozenModuleObject(
|
|
90
|
-
PyObject *name
|
|
91
|
-
);
|
|
92
|
-
#endif
|
|
93
|
-
PyAPI_FUNC(int) PyImport_ImportFrozenModule(
|
|
94
|
-
const char *name /* UTF-8 encoded string */
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
#ifndef Py_LIMITED_API
|
|
98
|
-
PyAPI_FUNC(void) _PyImport_AcquireLock(void);
|
|
99
|
-
PyAPI_FUNC(int) _PyImport_ReleaseLock(void);
|
|
100
|
-
|
|
101
|
-
PyAPI_FUNC(void) _PyImport_ReInitLock(void);
|
|
102
|
-
|
|
103
|
-
PyAPI_FUNC(PyObject *) _PyImport_FindBuiltin(
|
|
104
|
-
const char *name, /* UTF-8 encoded string */
|
|
105
|
-
PyObject *modules
|
|
106
|
-
);
|
|
107
|
-
PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObject(PyObject *, PyObject *);
|
|
108
|
-
PyAPI_FUNC(PyObject *) _PyImport_FindExtensionObjectEx(PyObject *, PyObject *,
|
|
109
|
-
PyObject *);
|
|
110
|
-
PyAPI_FUNC(int) _PyImport_FixupBuiltin(
|
|
111
|
-
PyObject *mod,
|
|
112
|
-
const char *name, /* UTF-8 encoded string */
|
|
113
|
-
PyObject *modules
|
|
114
|
-
);
|
|
115
|
-
PyAPI_FUNC(int) _PyImport_FixupExtensionObject(PyObject*, PyObject *,
|
|
116
|
-
PyObject *, PyObject *);
|
|
117
|
-
|
|
118
|
-
struct _inittab {
|
|
119
|
-
const char *name; /* ASCII encoded string */
|
|
120
|
-
PyObject* (*initfunc)(void);
|
|
121
|
-
};
|
|
122
|
-
PyAPI_DATA(struct _inittab *) PyImport_Inittab;
|
|
123
|
-
PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
|
|
124
|
-
#endif /* Py_LIMITED_API */
|
|
125
|
-
|
|
126
|
-
PyAPI_DATA(PyTypeObject) PyNullImporter_Type;
|
|
127
|
-
|
|
128
|
-
PyAPI_FUNC(int) PyImport_AppendInittab(
|
|
129
|
-
const char *name, /* ASCII encoded string */
|
|
130
|
-
PyObject* (*initfunc)(void)
|
|
131
|
-
);
|
|
132
|
-
|
|
133
|
-
#ifndef Py_LIMITED_API
|
|
134
|
-
struct _frozen {
|
|
135
|
-
const char *name; /* ASCII encoded string */
|
|
136
|
-
const unsigned char *code;
|
|
137
|
-
int size;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/* Embedding apps may change this pointer to point to their favorite
|
|
141
|
-
collection of frozen modules: */
|
|
142
|
-
|
|
143
|
-
PyAPI_DATA(const struct _frozen *) PyImport_FrozenModules;
|
|
144
|
-
#endif
|
|
145
|
-
|
|
146
|
-
#ifdef __cplusplus
|
|
147
|
-
}
|
|
148
|
-
#endif
|
|
149
|
-
#endif /* !Py_IMPORT_H */
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
#ifndef Py_LIMITED_API
|
|
2
|
-
#ifndef Py_INTERNAL_ACCU_H
|
|
3
|
-
#define Py_INTERNAL_ACCU_H
|
|
4
|
-
#ifdef __cplusplus
|
|
5
|
-
extern "C" {
|
|
6
|
-
#endif
|
|
7
|
-
|
|
8
|
-
/*** This is a private API for use by the interpreter and the stdlib.
|
|
9
|
-
*** Its definition may be changed or removed at any moment.
|
|
10
|
-
***/
|
|
11
|
-
|
|
12
|
-
#ifndef Py_BUILD_CORE
|
|
13
|
-
# error "this header requires Py_BUILD_CORE define"
|
|
14
|
-
#endif
|
|
15
|
-
|
|
16
|
-
/*
|
|
17
|
-
* A two-level accumulator of unicode objects that avoids both the overhead
|
|
18
|
-
* of keeping a huge number of small separate objects, and the quadratic
|
|
19
|
-
* behaviour of using a naive repeated concatenation scheme.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
#undef small /* defined by some Windows headers */
|
|
23
|
-
|
|
24
|
-
typedef struct {
|
|
25
|
-
PyObject *large; /* A list of previously accumulated large strings */
|
|
26
|
-
PyObject *small; /* Pending small strings */
|
|
27
|
-
} _PyAccu;
|
|
28
|
-
|
|
29
|
-
PyAPI_FUNC(int) _PyAccu_Init(_PyAccu *acc);
|
|
30
|
-
PyAPI_FUNC(int) _PyAccu_Accumulate(_PyAccu *acc, PyObject *unicode);
|
|
31
|
-
PyAPI_FUNC(PyObject *) _PyAccu_FinishAsList(_PyAccu *acc);
|
|
32
|
-
PyAPI_FUNC(PyObject *) _PyAccu_Finish(_PyAccu *acc);
|
|
33
|
-
PyAPI_FUNC(void) _PyAccu_Destroy(_PyAccu *acc);
|
|
34
|
-
|
|
35
|
-
#ifdef __cplusplus
|
|
36
|
-
}
|
|
37
|
-
#endif
|
|
38
|
-
#endif /* !Py_INTERNAL_ACCU_H */
|
|
39
|
-
#endif /* !Py_LIMITED_API */
|