Kyle Fuller
9d7c0d050b
python: Allow iterating over CModules
...
Closes #137
2012-02-28 18:05:49 +00:00
Kyle Fuller
f4c2f911ae
modpython: Remove some global module hooks which won't work
...
OnLoginAttempt
OnClientCapLs
OnGetAvailableMods
2012-02-28 15:51:16 +00:00
Kyle Fuller
5995fc530e
Remove references to CAres from mod{python,perl}
2012-02-28 14:16:53 +00:00
Kyle Fuller
961e3a81c6
modpython: Support global module hooks #98
...
The commit doesn't add support for the following module hooks:
void OnClientCapLs(CClient* pClient, SCString& ssCaps)
EModRet OnLoginAttempt(CSmartPtr<CAuthBase> Auth)
The reason for this is they do not currently work with codegen.pl
2012-02-26 15:03:25 +00:00
Alexey Sokolov
259be0c174
Fix compilation of modpython.
...
After previous commit compiler.cpp depends on python headers, because it
includes them. Therefore g++ tries to write a depend file about them.
If there's no such dir .depend yet, it'll fail.
Thanks to SilverLeo for noticing this.
2012-02-05 23:50:49 +07:00
Alexey Sokolov
be81853b24
Depend on changes of headers too, not only sources.
2012-02-05 17:24:14 +07:00
Alexey Sokolov
f374874b1a
Fix several issues in modpython.
...
1. In several cases CString wasn't handled properly.
2. Some container-like object didn't return from functions properly.
3. Buffer.h was missing
2012-01-02 14:40:50 +07:00
Alexey Sokolov
13bfec0809
Python and Perl should know that off_t is integer type.
2012-01-02 02:44:09 +07:00
Alexey Sokolov
78c6b1edd2
Fix moddata path for python modules.
...
How did it ever work before? ><
2012-01-01 22:04:22 +07:00
Alexey Sokolov
a0cd9d4cee
Merge branch 'master' of github.com:znc/znc
2012-01-01 16:59:36 +07:00
Alexey Sokolov
c8a4668bbf
Unload all python modules when modpython is unloaded.
...
Only user modules were unloaded before.
2012-01-01 16:46:21 +07:00
Un1matr1x
73270ff023
Welcome in 2012
2012-01-01 09:30:19 +01:00
Alexey Sokolov
6443563bd5
Python modules are network mods by default.
2011-12-29 18:58:46 +07:00
Alexey Sokolov
3fd0429e1e
Python: Use znc.Socket if no socket class is specified in CreateSocket()
...
Thanks to Azelphur for giving this idea.
2011-11-19 11:47:47 +07:00
Uli Schlachter
962c10795d
Disable some more warnings on mod{perl,python}
...
It seems to me like swig is trying to trigger every warning that exists...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-10-30 13:37:11 +01:00
Alexey Sokolov
c00ad1a2ff
Ups, forgot to change message for python compiler.
2011-10-30 02:21:11 +07:00
Alexey Sokolov
f4097e6fd5
Separate compilation and linking for modules.
...
To gain more benefits from distcc.
2011-10-30 02:15:26 +07:00
Alexey Sokolov
e354c24ac1
Move ZNC headers into own directory.
...
Yes, this breaks backwards compatibility, so what?
It's already broken with network stuff anyway.
2011-09-23 03:31:58 +07:00
Alexey Sokolov
508ca27a4c
Move CConfigEntry out of CConfig.
...
This exposes CConfigEntry to SWIG, and therefore to modperl/modpython.
2011-09-07 02:09:40 +07:00
Kyle Fuller
b75e0b71ae
modpython: Supress "Nested struct not currently supported (ignored)." warnings from
2011-09-05 21:39:59 +00:00
Kyle Fuller
12d1a5a422
modpython: Show (module/__init__.py) in listavailmods
2011-09-05 17:38:37 +00:00
Alexey Sokolov
5e73af632a
Install .py files along with .pyc
2011-09-01 02:55:13 +07:00
Kyle Fuller
d14528b59e
Allow loading python modules with modpython (ex. modname/__init__.py)
...
Fixes #58
2011-08-31 17:26:04 +00:00
Kyle Fuller
e70b6854a3
Fix modp{erl,ython}, these modules should set a "default" module type for its submodules
...
These modules were broken by d48ae679c4
2011-08-30 20:50:06 +00:00
Kyle Fuller
260421e6e8
Make modpython support network modules
2011-08-25 21:17:28 +01:00
Alexey Sokolov
fca0d83de8
Fix modpython about renaming EModuleType.
2011-08-22 00:55:45 +07:00
Uli Schlachter
80c76c97a6
Remove GLOBALMODCONSTRUCTOR
...
MODCONSTRUCTOR does that job just fine (now).
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-08-21 18:01:58 +02:00
Alexey Sokolov
c2cc57cbf4
Fix compilation of modpython.
2011-08-21 21:51:28 +07:00
Uli Schlachter
cce40e9f71
Move the EModuleType into CModInfo
...
This also renames the values to shorter and more "well sounding" names.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-08-21 16:30:36 +02:00
Kyle Fuller
f44f307b24
Add a config writer
2011-08-21 13:40:14 +01:00
Kyle Fuller
274d3eb2ec
Make modpython support different module types
2011-08-21 13:34:23 +01:00
Alexey Sokolov
9e33e4bf59
Fix dependencies between modpython parts.
2011-08-21 13:34:23 +01:00
Alexey Sokolov
289cfa5eff
Fix enum handling in modpython callbacks params.
2011-08-21 13:34:23 +01:00
Kyle Fuller
b2d8f2ed62
Add CModInfo::SupportsType(EModuleType) and supply a module type with CModules::LoadModule
...
This would allow a module support multiple module types but CModule's do
not support this currently
2011-08-21 13:34:23 +01:00
Alexey Sokolov
0c9eae226e
Fix global python modules.
2011-08-21 13:34:23 +01:00
Kyle Fuller
c456d20b21
Merge CGlobalModule(s) into CModule(s)
2011-08-21 13:34:22 +01:00
Kyle Fuller
a4b155995c
Create EModuleType, creating SetType which replaces SetGlobal
2011-08-21 13:34:22 +01:00
Uli Schlachter
8f53d3fbb0
Fix modp{erl,ython} installation
...
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-08-06 10:43:39 +02:00
Alexey Sokolov
ea58912093
Hide every symbol except ZNCModInfo from modules.
...
This means that now it's possible to have the same class names in
different modules, which reduces chances of weird errors.
Thanks to mclc for noticing this.
2011-07-15 22:56:47 +07:00
Alexey Sokolov
d683aea48d
Merge branch 'modinfo'
2011-06-11 18:32:09 +07:00
Alexey Sokolov
f7c4f5459c
Support wiki pages names in python modules.
...
Also this fixes showing python modules in available modules list.
2011-06-11 18:28:46 +07:00
Un1matr1x
708366d9ae
remove some more of the evil trailing white spaces & tabs
2011-06-09 21:29:13 +02:00
Alexey Sokolov
4dbd088fd7
Support compiling python modules in cwd
2011-06-08 14:14:53 +07:00
Kyle Fuller
e83e14ab67
Do not include DCCSock in mod(perl|python)
2011-06-01 22:19:30 +01:00
Kyle Fuller
8f508cb4a5
Migrate dcc bouncing to its own module
2011-06-01 20:21:27 +01:00
Kyle Fuller
0b360c0102
Remove OnDCCUserSend module hook
2011-06-01 20:21:27 +01:00
Alexey Sokolov
e51b7daedc
Merge branch 'py' of https://github.com/kylef/znc into kylef-py
...
Conflicts:
modules/modpython/znc.py
2011-04-03 20:13:17 +07:00
Alexey Sokolov
299e1f1b4c
Rearrange compiler/linker flags for modpython.
...
This should fix some issues with --as-needed.
Thanks to wired for reporting this.
2011-04-03 19:28:17 +07:00
Alexey Sokolov
e746438022
Parse new ExecSock.h and ZNCDebug.h with SWIG.
...
That functionality was accessible by perl and python modules before.
Now that stuff is in own headers, so let's parse them too,
to have them still be able to use this.
2011-04-03 19:13:47 +07:00
Uli Schlachter
f0bf7134ec
Improve the handling of module load messages
...
Instead of doing ugly stuff to shorten the "Loaded Module [foo]" message, we now
just always generate the shorter version of that message. The code paths which
didn't do this shortening now prepend that message themselves.
The result is that every message looks the same as it did before, but the code
for generating these is a little nicer.
Signed-off-by: Uli Schlachter <psychon@znc.in >
2011-04-02 16:52:52 +02:00